From 39f3427dc1cd8cf72cf4b3c8c26256874a067bfd Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 14 Jan 2021 00:00:41 +0100 Subject: Fix incomplete deprecation guard in test/sslapitest.c 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 (Merged from https://github.com/openssl/openssl/pull/13866) --- test/sslapitest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sslapitest.c b/test/sslapitest.c index 984c6a8764..c6520482f6 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -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) { -- cgit v1.2.3