X509_verify_cert(3) | OpenSSL | X509_verify_cert(3) |
#include <openssl/x509.h> int X509_verify_cert(X509_STORE_CTX *ctx);
If the function fails additional error information can be obtained by examining ctx using, for example X509_STORE_CTX_get_error().
A negative return value from X509_verify_cert() can occur if it is invoked incorrectly, such as with no certificate set in ctx, or when it is called twice in succession without reinitialising ctx for the second call. A negative return value can also happen due to internal resource problems or if a retry operation is requested during internal lookups (which never happens with standard lookup methods). Applications must check for <= 0 return value on error.
Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
2018-09-23 | 1.1.1i |