DH: add internal dh_get_method()
authorRichard Levitte <levitte@openssl.org>
Sat, 29 Feb 2020 07:57:34 +0000 (08:57 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 9 Mar 2020 09:54:34 +0000 (10:54 +0100)
commitc518117b99bc4aad62990e8a31b7bc1dae06d16c
tree4b1e1277beb7253a73ae832a01a6dc2d84e249dd
parentdf13defd4fd4c5a7afff69bc9733e7526e07959a
DH: add internal dh_get_method()

This should have been publically present a long time ago, to be
consistent with the RSA, DSA and EC_KEY APIs.  However, since we've
now deprecated that kind of function for the other key types, there's
no point in adding a public function, but we still need it internally.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11193)
crypto/dh/dh_lib.c
include/crypto/dh.h