[#EVP_PKEY_get1_encoded_public_key] = EVP_PKEY_get1_encoded_public_key :mrdocs: Allocate and return the encoded public‐key octet string for `pkey.` == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- size_t EVP_PKEY_get1_encoded_public_key( xref:EVP_PKEY.adoc[EVP_PKEY]* pkey, unsigned char** ppub); ---- == Return Value Length of the encoded public key in bytes, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *pkey* | Key whose public key is exported. | *ppub* | On success, set to a newly allocated buffer holding the encoded public key; free with OPENSSL_free(). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#