Fix incomplete deprecation guard in test/sslapitest.c
authorRichard Levitte <levitte@openssl.org>
Wed, 13 Jan 2021 23:00:41 +0000 (00:00 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 15 Jan 2021 10:19:25 +0000 (11:19 +0100)
OPENSSL_NO_DEPRECATED_3_0 should be used rather than OPENSSL_NO_DEPRECATED,
as the latter doesn't take the configuration option '--api=' in account.

Fixes #13865

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13866)

test/sslapitest.c

index 984c6a8764b30ab441fc007a5d49b63c4bd12784..c6520482f6122c0d2b4e6dbd6063014d6bbc07e5 100644 (file)
@@ -8157,7 +8157,7 @@ static EVP_PKEY *get_tmp_dh_params(void)
     return tmp_dh_params;
 }
 
-#  ifndef OPENSSL_NO_DEPRECATED
+#  ifndef OPENSSL_NO_DEPRECATED_3_0
 /* Callback used by test_set_tmp_dh() */
 static DH *tmp_dh_callback(SSL *s, int is_export, int keylen)
 {