Read a private key from a PEM‐encoded BIO (traditional or PKCS#8).
Synopsis
Declared in <openssl/pem.h>
EVP_PKEY*
PEM_read_bio_PrivateKey(
BIO* bp,
EVP_PKEY** x,
pem_password_cb* cb,
void* u);
Return Value
Private key on success, or NULL on failure.
Parameters
Name |
Description |
bp |
BIO to read from. |
x |
Optional address of an EVP_PKEY pointer to reuse, or NULL. |
cb |
Password callback for encrypted PEM / PKCS#8, or NULL. |
u |
Application data passed to |
Created with MrDocs