Fix declaration/implementation mismatch

This commit is contained in:
Kawe Mazidjatari 2023-11-25 11:21:51 +01:00
parent 16156ffd3a
commit e2b231f4e0
2 changed files with 3 additions and 2 deletions

View File

@ -377,9 +377,10 @@ static int asn1_get_sequence_of_cb(void *ctx,
int mbedtls_asn1_get_sequence_of(unsigned char **p,
const unsigned char *end,
mbedtls_asn1_sequence *cur,
int tag)
const int tag)
{
asn1_get_sequence_of_cb_ctx_t cb_ctx = { tag, cur };
memset(cur, 0, sizeof(mbedtls_asn1_sequence));
return mbedtls_asn1_traverse_sequence_of(
p, end, 0xFF, tag, 0, 0,

View File

@ -410,7 +410,7 @@ int mbedtls_asn1_get_bitstring_null(unsigned char **p,
int mbedtls_asn1_get_sequence_of(unsigned char **p,
const unsigned char *end,
mbedtls_asn1_sequence *cur,
int tag);
const int tag);
/**
* \brief Free a heap-allocated linked list presentation of
* an ASN.1 sequence, including the first element.