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

Name

Description

bp

BIO to read from.

x

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

cb

Password callback for encrypted PEM, or NULL.

u

Application data passed to cb.

Created with MrDocs