module/credman: Adapt to tiny-asn1 changes

This commit is contained in:
Mathias Tausig 2021-10-04 21:43:13 +02:00
parent 225b39b6b9
commit 279c584335

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;