ossl_dh_is_foreign
if (ossl_dh_is_foreign(dh))
&& ossl_dh_is_foreign(pkey->pkey.dh);
int ossl_dh_is_foreign(const DH *dh);