Index Index for
Section 3
Index Alphabetical
listing for S
Bottom of page Bottom of
page

SSL_get_certificate(3)

NAME

SSL_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: NULL No X509 certificate is loaded in the SSL structure. Pointer to an X509 structure The return value points to an X509 certificate in the SSL structure.

SEE ALSO

Functions: SSL_CTX_use_certificate(3)

Index Index for
Section 3
Index Alphabetical
listing for S
Top of page Top of
page