]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/dh/dh_lib.c
Deprecate DH_new as well as i2d_DHparams and d2i_DHparams
[thirdparty/openssl.git] / crypto / dh / dh_lib.c
index e3bbe95ff4d6b471c59db7fdc3102de646c7924d..e687b04259f3f5357b5a906a0e210fb49b6477b9 100644 (file)
@@ -51,11 +51,12 @@ const DH_METHOD *dh_get_method(const DH *dh)
 {
     return dh->meth;
 }
-
+# ifndef OPENSSL_NO_DEPRECATED_3_0
 DH *DH_new(void)
 {
     return dh_new_intern(NULL, NULL);
 }
+# endif
 
 DH *DH_new_method(ENGINE *engine)
 {