Clarify the usage of EVP_PKEY_get_raw_[private|public]_key()
authorMatt Caswell <matt@openssl.org>
Thu, 5 Mar 2020 09:21:56 +0000 (09:21 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 6 Mar 2020 20:25:34 +0000 (20:25 +0000)
commit4eca3ec728f328a1b05553814e58ca9aa1cb4e78
tree55c62720fda86425dd93a4da302da16a21bb36ce
parentc11f49016e53bf8e7dadcf791bb85152985dd62d
Clarify the usage of EVP_PKEY_get_raw_[private|public]_key()

EVP_PKEY_get_raw_private_key() and EVP_PKEY_get_raw_public_key() expect
the size of the key buffer to be populated in the |*len| parameter on
entry - but the docs made no mention of this.

Fixes #11245

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11254)

(cherry picked from commit f529fc7d53bf4228fae61cb1efe73d97fe3eb35f)
doc/man3/EVP_PKEY_new.pod