SSL_get_certificate(3)SSL_get_certificate(3)NAMESSL_get_certificate - Return an X.509 certificate loaded in the SSL
structure
SYNOPSIS
#include <openssl/ssl.h>
X509 *SSL_get_certificate(
SSL *ssl );
DESCRIPTION
The SSL_get_certificate() function returns an X.509 certificate loaded
in the SSL structure. Before calling this function, an X509 certificate
must be loaded into the SSL structure with another API (for example,
SSL_use_certificate_file(), SSL_CTX_use_certificate_file(), etc.)
RETURN VALUES
The following return values can occur: No X509 certificate is loaded in
the SSL structure. The return value points to an X509 certificate in
the SSL structure.
SEE ALSO
Functions: SSL_CTX_use_certificate(3)SSL_get_certificate(3)