PEM_write_RSA_PUBKEY

Write an RSA SubjectPublicKeyInfo to a FILE in PEM form (deprecated).

Synopsis

Declared in <openssl/pem.h>

[[deprecated]]
int
PEM_write_RSA_PUBKEY(
    FILE* fp,
    RSA const* x);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
fpFILE to write to.
xRSA key to encode.