dh_pub_is_valid
if (!dh_pub_is_valid(dh, pub_key))
int dh_pub_is_valid(const DH *, const BIGNUM *);
if (!dh_pub_is_valid(kex->dh, dh_pub)) {