libressl-X509_verify_cert3
Discover and verify x509 certificate chain
Usage
Crypto Library
(libcrypto,
-lcrypto)
int
Overview
The X509_verify_cert() function attempts to discover and validate a certificate chain based on parameters in ctx.
Applications rarely call this function directly, but it is used by OpenSSL internally for certificate validation, in both the S/MIME and SSL/TLS code.
Return values
If a complete chain can be built and validated this function returns 1, otherwise it returns a value <= 0 indicating failure.
Additional error information can be obtained by examining ctx, using X509_STORE_CTX_get_error(3).