diff options
author | Richard Levitte <levitte@openssl.org> | 2020-02-29 08:57:34 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-03-09 10:54:34 +0100 |
commit | c518117b99bc4aad62990e8a31b7bc1dae06d16c (patch) | |
tree | 4b1e1277beb7253a73ae832a01a6dc2d84e249dd /include/crypto | |
parent | df13defd4fd4c5a7afff69bc9733e7526e07959a (diff) |
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)
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/dh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/dh.h b/include/crypto/dh.h index 3af3c5222e..7c7cebdc16 100644 --- a/include/crypto/dh.h +++ b/include/crypto/dh.h @@ -23,3 +23,5 @@ int dh_get0_nid(const DH *dh); int dh_check_pub_key_partial(const DH *dh, const BIGNUM *pub_key, int *ret); int dh_check_priv_key(const DH *dh, const BIGNUM *priv_key, int *ret); int dh_check_pairwise(DH *dh); + +const DH_METHOD *dh_get_method(const DH *dh); |