|
SSL_get_privatekey(3)
Contents
|
SSL_get_privatekey - Get a private-key of the X.509 certificate
loaded in the SSL structure
#include <openssl/ssl.h>
EVP_PKEY *SSL_get_privatekey(
SSL *s );
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.)
The following return values can occur: No private-key is
loaded in the SSL structure. Getting a private-key
failed. The return value points to an EVP_PKEY structure
in the SSL structure.
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)
SSL_get_privatekey(3)
[ Back ] |