mbedtls_x509_crt_verify_restartable() function
Restartable version of \c mbedtls_crt_verify_with_profile()
Syntax
int mbedtls_x509_crt_verify_restartable( mbedtls_x509_crt *crt,
mbedtls_x509_crt *trust_ca,
mbedtls_x509_crl *ca_crl,
const mbedtls_x509_crt_profile *profile,
const char *cn,
uint32_t *flags,
int (*f_vrfy)(void *, mbedtls_x509_crt *, int, uint32_t *),
void *p_vrfy,
mbedtls_x509_crt_restart_ctx *rs_ctx );
Arguments
crt
a certificate (chain) to be verified
trust_ca
the list of trusted CAs
ca_crl
the list of CRLs for trusted CAs
profile
security profile for verification
cn
expected Common Name (can be set to NULL if the CN must not be verified)
flags
result of the verification
f_vrfy
verification function
p_vrfy
verification parameter
rs_ctx
restart context (NULL to disable restart)
Return value
See \c mbedtls_crt_verify_with_profile(), or #MBEDTLS_ERR_ECP_IN_PROGRESS if maximum number of operations was reached: see \c mbedtls_ecp_set_max_ops().
Notes
Performs the same job as \c mbedtls_crt_verify_with_profile() but can return early and restart according to the limit set with \c mbedtls_ecp_set_max_ops() to reduce blocking.