mbedtls_x509_crt_verify_restartable() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesmbedTLSmbedtls_x509_crt_verify_restartable()

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 );
Implemented in x509_crt.c:2534

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.

References

LocationReferrerText
x509_crt.c:2534
int mbedtls_x509_crt_verify_restartable( mbedtls_x509_crt *crt,
x509_crt.h:450
int mbedtls_x509_crt_verify_restartable( mbedtls_x509_crt *crt,
ssl_tls.c:5748mbedtls_ssl_parse_certificate()
ret = mbedtls_x509_crt_verify_restartable(
x509_crt.c:2504mbedtls_x509_crt_verify()
return( mbedtls_x509_crt_verify_restartable( crt, trust_ca, ca_crl,
x509_crt.c:2520mbedtls_x509_crt_verify_with_profile()
return( mbedtls_x509_crt_verify_restartable( crt, trust_ca, ca_crl,

Call Tree

Functions calling mbedtls_x509_crt_verify_restartable()
Functions called by mbedtls_x509_crt_verify_restartable()
mbedtls_x509_crt_verify_restartable()
Data read by mbedtls_x509_crt_verify_restartable()
Data written by mbedtls_x509_crt_verify_restartable()
mbedtls_x509_crt_verify_restartable()
mbedtls_x509_crt_verify_restartable()::ret
mbedtls_x509_crt_verify_restartable()::pk_type
mbedtls_x509_crt_verify_restartable()::ee_flags
all items filtered out
Type of mbedtls_x509_crt_verify_restartable()
mbedtls_x509_crt_verify_restartable()