Write a SubjectPublicKeyInfo public key to a BIO with a library context.
Declared in <openssl/pem.h>
int
PEM_write_bio_PUBKEY_ex(
BIO* bp,
EVP_PKEY const* x,
OSSL_LIB_CTX* libctx,
char const* propq);
1 on success, or 0 on failure.
| 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. |