Read a SubjectPublicKeyInfo public key from a PEM‐encoded FILE.

Synopsis

Declared in <openssl/pem.h>

EVP_PKEY*
PEM_read_PUBKEY(
    FILE* fp,
    EVP_PKEY** x,
    pem_password_cb* cb,
    void* u);

Return Value

Public key on success, or NULL on failure.

Parameters

Name

Description

fp

FILE to read from.

x

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

cb

Password callback for encrypted PEM, or NULL.

u

Application data passed to cb.

Created with MrDocs