For example if you have a DH legacy key stored in an EVP_PKEY, Calling EVP_PKEY_get_bn_parms() to get the p,g etc params does not work. Also see #13522.