1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #16936 from mtausig/update_tinyasn1

Update tiny-asn1 package
This commit is contained in:
benpicco 2021-10-05 00:04:23 +02:00 committed by GitHub
commit 88b495906b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
PKG_NAME = tiny-asn1
PKG_URL = https://gitlab.com/mtausig/tiny-asn1.git
PKG_VERSION = 5155ee9c8f0908af955ca2026c349ba8a5e12bc2
PKG_VERSION = 7005fcff4706e96b857f257ef94b8518211c9fbc
PKG_LICENSE = LGPL-3
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -359,8 +359,8 @@ static int _parse_ecc_point(const asn1_tree *key, const void **x, const void **y
}
size_t coords_len = (key->length - 2) / 2;
uint8_t *_x = &key->data[2]; /* skip format specifier and unused bits */
uint8_t *_y = &_x[coords_len];
const uint8_t *_x = &key->data[2]; /* skip format specifier and unused bits */
const uint8_t *_y = &_x[coords_len];
*x = _x;
*y = _y;

View File

@ -14,7 +14,7 @@
#include "tiny-asn1.h"
void print_hex(uint8_t *data, unsigned int len)
void print_hex(const uint8_t *data, unsigned int len)
{
unsigned int count = 0;
unsigned int blockCount = 0;