Update doc of return value of verify()

This commit is contained in:
Manuel Pégourié-Gonnard 2017-07-06 15:00:32 +02:00
parent 5be13d8fd1
commit 760c9b91d7

View file

@ -295,12 +295,13 @@ int mbedtls_x509_crt_verify_info( char *buf, size_t size, const char *prefix,
* \param f_vrfy verification function * \param f_vrfy verification function
* \param p_vrfy verification parameter * \param p_vrfy verification parameter
* *
* \return 0 if successful or MBEDTLS_ERR_X509_CERT_VERIFY_FAILED * \return 0 (and flags set to 0) if the chain was verified and valid,
* in which case *flags will have one or more * MBEDTLS_ERR_X509_CERT_VERIFY_FAILED if the chain was verified
* MBEDTLS_X509_BADCERT_XXX or MBEDTLS_X509_BADCRL_XXX flags * but found to be invalid, in which case *flags will have one
* set, * or more MBEDTLS_X509_BADCERT_XXX or MBEDTLS_X509_BADCRL_XXX
* or another error in case of a fatal error encountered * flags set, or another error (and flags set to 0xffffffff)
* during the verification process. * in case of a fatal error encountered during the
* verification process.
*/ */
int mbedtls_x509_crt_verify( mbedtls_x509_crt *crt, int mbedtls_x509_crt_verify( mbedtls_x509_crt *crt,
mbedtls_x509_crt *trust_ca, mbedtls_x509_crt *trust_ca,