PEM_read_bio_X509_PUBKEY

Read an X.509 SubjectPublicKeyInfo from a PEM-encoded BIO.

Synopsis

Declared in <openssl/pem.h>

X509_PUBKEY*
PEM_read_bio_X509_PUBKEY(
    BIO* bp,
    X509_PUBKEY** x,
    pem_password_cb* cb,
    void* u);

Return Value

Public key on success, or NULL on failure.

Parameters

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