EVP: Make the KEYEXCH implementation leaner
authorRichard Levitte <levitte@openssl.org>
Wed, 30 Oct 2019 17:03:07 +0000 (18:03 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 5 Nov 2019 21:20:06 +0000 (22:20 +0100)
commitc0e0984f125ee30820520829c4c112b1e166f871
treefbc23f98d35454a4b83bd08b11dea17acd0e8460
parent677c4a012a7e72b5f2dd239639034f01fad850bf
EVP: Make the KEYEXCH implementation leaner

Because the algorithm to use is decided already when creating an
EVP_PKEY_CTX regardless of how it was created, it turns out that it's
unnecessary to provide the KEYEXCH method explicitly, and rather
always have it be fetched implicitly.

This means fewer changes for applications that want to use new key
exchange algorithms / implementations.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10305)
crypto/evp/evp_local.h
crypto/evp/exchange.c
crypto/evp/pmeth_lib.c
doc/man3/EVP_PKEY_derive.pod
include/crypto/evp.h
include/openssl/evp.h
util/libcrypto.num