]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/dh/dh_ameth.c
DH: Move the code to set the DH sub-type
[thirdparty/openssl.git] / crypto / dh / dh_ameth.c
index 49e65e4d6c8db37bfcdedfe90a67ff4c90a82d11..1efbb403cbe73aa2dd462d90fabb86fe3e558242 100644 (file)
@@ -42,10 +42,6 @@ static DH *d2i_dhp(const EVP_PKEY *pkey, const unsigned char **pp,
     else
         dh = d2i_DHparams(NULL, pp, length);
 
-    if (dh != NULL) {
-        DH_clear_flags(dh, DH_FLAG_TYPE_MASK);
-        DH_set_flags(dh, is_dhx ? DH_FLAG_TYPE_DHX : DH_FLAG_TYPE_DH);
-    }
     return dh;
 }