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:22:41 +0000 (20:22 +0000)
commitf529fc7d53bf4228fae61cb1efe73d97fe3eb35f
tree6df52146368747a3a5175793f0a369d57cc4c3f4
parent433deaffce45d58efd6bb014672f7fb95062d458
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)
doc/man3/EVP_PKEY_new.pod