 |
Index for Section 3 |
|
 |
Alphabetical listing for S |
|
 |
Bottom of page |
|
SSL_get_privatekey(3)
NAME
SSL_get_privatekey - Get a private-key of the X.509 certificate loaded in
the SSL structure
SYNOPSIS
#include <openssl/ssl.h>
EVP_PKEY *SSL_get_privatekey(
SSL *s );
DESCRIPTION
The SSL_get_privatekey() function returns a pointer to a private-key of the
X.509 certificate loaded in the SSL structure. Before calling this
function, a private-key must be loaded into the SSL structure with another
API (for example, SSL_use_PrivateKey_file(), SSL_CTX_use_PrivateKey_file(),
etc.)
RETURN VALUES
The following return values can occur:
NULL No private-key is loaded in the SSL structure. Getting a private-
key failed.
Pointer to an EVP_PKEY structure
The return value points to an EVP_PKEY structure in the SSL
structure.
SEE ALSO
Functions: SSL_use_PrivateKey(3), SSL_use_PrivateKey_ASN1(3),
SSL_use_PrivateKey_file(3), SSL_use_RSAPrivateKey(3),
SSL_use_RSAPrivateKey_ASN1(3), SSL_use_RSAPrivateKey_file(3),
SSL_CTX_use_PrivateKey(3), SSL_CTX_use_PrivateKey_ASN1(3),
SSL_CTX_use_PrivateKey_file(3), SSL_CTX_use_RSAPrivateKey(3),
SSL_CTX_use_RSAPrivateKey_ASN1(3), SSL_CTX_use_RSAPrivateKey_file(3)
 |
Index for Section 3 |
|
 |
Alphabetical listing for S |
|
 |
Top of page |
|