Rename mbedtls_x509_crt_parse_der_ext
new name: mbedtls_x509_crt_parse_der_with_ext_cb Co-authored-by: Gilles Peskine <gilles.peskine@arm.com> Signed-off-by: Nicola Di Lieto <nicola.dilieto@gmail.com>
This commit is contained in:
parent
6e24980cc6
commit
fde98f7773
@ -307,8 +307,8 @@ int mbedtls_x509_crt_parse_der( mbedtls_x509_crt *chain,
|
|||||||
* \brief The type of certificate extension callbacks.
|
* \brief The type of certificate extension callbacks.
|
||||||
*
|
*
|
||||||
* Callbacks of this type are passed to and used by the
|
* Callbacks of this type are passed to and used by the
|
||||||
* mbedtls_x509_crt_parse_der_ext() routine when it encounters
|
* mbedtls_x509_crt_parse_der_with_ext_cb() routine when
|
||||||
* an unsupported extension.
|
* it encounters an unsupported extension.
|
||||||
*
|
*
|
||||||
* \param crt The certificate being parsed.
|
* \param crt The certificate being parsed.
|
||||||
* \param oid The OID of the extension.
|
* \param oid The OID of the extension.
|
||||||
@ -354,10 +354,10 @@ typedef int (*mbedtls_x509_crt_ext_cb_t)( mbedtls_x509_crt const *crt,
|
|||||||
* \return \c 0 if successful.
|
* \return \c 0 if successful.
|
||||||
* \return A negative error code on failure.
|
* \return A negative error code on failure.
|
||||||
*/
|
*/
|
||||||
int mbedtls_x509_crt_parse_der_ext( mbedtls_x509_crt *chain,
|
int mbedtls_x509_crt_parse_der_with_ext_cb( mbedtls_x509_crt *chain,
|
||||||
const unsigned char *buf,
|
const unsigned char *buf,
|
||||||
size_t buflen,
|
size_t buflen,
|
||||||
mbedtls_x509_crt_ext_cb_t cb );
|
mbedtls_x509_crt_ext_cb_t cb );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Parse a single DER formatted certificate and add it
|
* \brief Parse a single DER formatted certificate and add it
|
||||||
|
@ -1384,10 +1384,10 @@ int mbedtls_x509_crt_parse_der_nocopy( mbedtls_x509_crt *chain,
|
|||||||
return( mbedtls_x509_crt_parse_der_internal( chain, buf, buflen, 0, NULL ) );
|
return( mbedtls_x509_crt_parse_der_internal( chain, buf, buflen, 0, NULL ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
int mbedtls_x509_crt_parse_der_ext( mbedtls_x509_crt *chain,
|
int mbedtls_x509_crt_parse_der_with_ext_cb( mbedtls_x509_crt *chain,
|
||||||
const unsigned char *buf,
|
const unsigned char *buf,
|
||||||
size_t buflen,
|
size_t buflen,
|
||||||
mbedtls_x509_crt_ext_cb_t cb )
|
mbedtls_x509_crt_ext_cb_t cb )
|
||||||
{
|
{
|
||||||
return( mbedtls_x509_crt_parse_der_internal( chain, buf, buflen, 1, cb ) );
|
return( mbedtls_x509_crt_parse_der_internal( chain, buf, buflen, 1, cb ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user