[#PEM_write_bio_PUBKEY_ex] = PEM_write_bio_PUBKEY_ex :mrdocs: Write a SubjectPublicKeyInfo public key to a BIO with a library context. == Synopsis Declared in `<openssl/pem.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int PEM_write_bio_PUBKEY_ex( xref:BIO.adoc[BIO]* bp, xref:EVP_PKEY.adoc[EVP_PKEY] const* x, xref:OSSL_LIB_CTX.adoc[OSSL_LIB_CTX]* libctx, char const* propq); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *bp* | BIO to write to. | *x* | Public key to encode. | *libctx* | Library context used for provider‐backed encoding, or NULL for the default. | *propq* | Property query for algorithm fetches, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#