Make EVP_PKEY_[get1|set1]_tls_encodedpoint work with provided keys
authorMatt Caswell <matt@openssl.org>
Wed, 20 May 2020 15:20:27 +0000 (16:20 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 5 Jun 2020 10:04:11 +0000 (11:04 +0100)
commit6a9bd9298bd706e3a4a40ecfa1d89f65f8592c65
tree38fdba8151948162bbaf8df6c073844ee05c1e46
parent0d52ede71685e4176999cc5e52000dcb540747fc
Make EVP_PKEY_[get1|set1]_tls_encodedpoint work with provided keys

EVP_PKEY_[get1|set1]_tls_encodedpoint() only worked if an ameth was present
which isn't the case for provided keys. Support has been added to dh,
ec and ecx keys.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11898)
12 files changed:
crypto/dh/dh_ameth.c
crypto/dh/dh_key.c
crypto/dh/dh_local.h
crypto/evp/p_lib.c
doc/man7/EVP_PKEY-DH.pod
doc/man7/EVP_PKEY-EC.pod
doc/man7/EVP_PKEY-X25519.pod
include/crypto/dh.h
include/openssl/core_names.h
providers/implementations/keymgmt/dh_kmgmt.c
providers/implementations/keymgmt/ec_kmgmt.c
providers/implementations/keymgmt/ecx_kmgmt.c