DH_get0_pub_key
const BIGNUM *pub_key = DH_get0_pub_key(dh);
ctx->p2 = (void *)DH_get0_pub_key(EVP_PKEY_get0_DH(pkey));
OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh);
if ((bn = DH_get0_pub_key(dh)) == NULL) {
pub_key = DH_get0_pub_key(dh);
ok = ok && (DH_get0_pub_key(dh) != NULL);
const BIGNUM *pa = DH_get0_pub_key(dh1);
const BIGNUM *pb = DH_get0_pub_key(dh2);
if (!TEST_ptr_eq(DH_get0_pub_key(dh), pub_key2)