added dh_param checks.