Read an EC private key from a PEM‐encoded FILE (deprecated).

Synopsis

Declared in <openssl/pem.h>

[[deprecated]]
EC_KEY*
PEM_read_ECPrivateKey(
    FILE* fp,
    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

Name

Description

fp

FILE to read from.

x

Optional address of an EC_KEY pointer to reuse, or NULL.

cb

Password callback for encrypted PEM, or NULL.

u

Application data passed to cb.

Created with MrDocs