PEM_read_RSAPublicKey

Read a traditional PKCS#1 RSA public key from a PEM-encoded FILE (deprecated).

Synopsis

Declared in <openssl/pem.h>

[[deprecated]]
RSA*
PEM_read_RSAPublicKey(
    FILE* fp,
    RSA** x,
    pem_password_cb* cb,
    void* u);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

RSA key on success, or NULL on failure.

Parameters

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