EVP: make it possible to init EVP_PKEY_CTX with provided EVP_PKEY
authorRichard Levitte <levitte@openssl.org>
Mon, 2 Dec 2019 11:00:58 +0000 (12:00 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 17 Dec 2019 07:13:13 +0000 (08:13 +0100)
commit982efd7765f42ba0329e5db6e3434b072d90842c
treea1aa30c6ad946c062adcb0ff6bae1ae64388ea95
parent19f909856d5cd955493978f1bfaf79c107c20201
EVP: make it possible to init EVP_PKEY_CTX with provided EVP_PKEY

The case when EVP_PKEY_CTX_new() is called with a provided EVP_PKEY
(no legacy data) wasn't handled properly.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10618)
crypto/evp/pmeth_lib.c