mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 22:15:07 +00:00
Declare CA callback type even if feature is disabled
This commit is contained in:
parent
f53893b00c
commit
e15dae7fcf
|
@ -519,7 +519,6 @@ int mbedtls_x509_crt_verify_restartable( mbedtls_x509_crt *crt,
|
||||||
void *p_vrfy,
|
void *p_vrfy,
|
||||||
mbedtls_x509_crt_restart_ctx *rs_ctx );
|
mbedtls_x509_crt_restart_ctx *rs_ctx );
|
||||||
|
|
||||||
#if defined(MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK)
|
|
||||||
/**
|
/**
|
||||||
* \brief The type of trusted certificate callbacks.
|
* \brief The type of trusted certificate callbacks.
|
||||||
*
|
*
|
||||||
|
@ -553,6 +552,8 @@ int mbedtls_x509_crt_verify_restartable( mbedtls_x509_crt *crt,
|
||||||
typedef int (*mbedtls_x509_crt_ca_cb_t)( void *p_ctx,
|
typedef int (*mbedtls_x509_crt_ca_cb_t)( void *p_ctx,
|
||||||
mbedtls_x509_crt const *child,
|
mbedtls_x509_crt const *child,
|
||||||
mbedtls_x509_crt **candidate_cas );
|
mbedtls_x509_crt **candidate_cas );
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK)
|
||||||
/**
|
/**
|
||||||
* \brief Version of \c mbedtls_x509_crt_verify_with_profile() which
|
* \brief Version of \c mbedtls_x509_crt_verify_with_profile() which
|
||||||
* uses a callback to acquire the list of trusted CA
|
* uses a callback to acquire the list of trusted CA
|
||||||
|
|
Loading…
Reference in a new issue