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)
return 1;
}
+const DH_METHOD *dh_get_method(const DH *dh)
+{
+ return dh->meth;
+}
+
DH *DH_new(void)
{
return dh_new_intern(NULL, NULL);
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);