PEM_read_bio_ECPrivateKey

Read an EC private key from a PEM-encoded BIO (deprecated).

Synopsis

Declared in <openssl/pem.h>

[[deprecated]]
EC_KEY*
PEM_read_bio_ECPrivateKey(
    BIO* bp,
    EC_KEY** x,
    pem_password_cb* cb,
    void* u);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

EC_KEY on success, or NULL on failure.

Parameters

NameDescription
bpBIO to read from.
xOptional address of an EC_KEY pointer to reuse, or NULL.
cbPassword callback for encrypted PEM, or NULL.
uApplication data passed to cb.