summaryrefslogtreecommitdiffstats
path: root/test/dtls_mtu_test.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-09-02 17:15:06 +0200
committerMatt Caswell <matt@openssl.org>2020-09-13 12:09:45 +0200
commit6ac1cd10ba8a1d92d3858e53a7aea2cf444adf26 (patch)
tree9b2ccdb7ea5335deb20cfb4d98ee23b8ae10e299 /test/dtls_mtu_test.c
parentNonStop port updates for 3.0.0. (diff)
downloadopenssl-6ac1cd10ba8a1d92d3858e53a7aea2cf444adf26.tar.xz
openssl-6ac1cd10ba8a1d92d3858e53a7aea2cf444adf26.zip
Fix safestack issues in ssl.h
We fix 3 problems with safestack: - Including an openssl header file without linking against libcrypto can cause compilation failures (even if the app does not otherwise need to link against libcrypto). See issue #8102 - Recent changes means that applications in no-deprecated builds will need to include additional macro calls in the source code for all stacks that they need to use - which is an API break. This changes avoids that necessity. - It is not possible to write code using stacks that works in both a no-deprecated and a normal build of OpenSSL. See issue #12707. Fixes #12707 Contains a partial fix for #8102. A similar PR will be needed for hash to fully fix. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12781)
Diffstat (limited to 'test/dtls_mtu_test.c')
-rw-r--r--test/dtls_mtu_test.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/dtls_mtu_test.c b/test/dtls_mtu_test.c
index b0730077b7..588ca32c79 100644
--- a/test/dtls_mtu_test.c
+++ b/test/dtls_mtu_test.c
@@ -20,8 +20,6 @@
/* for SSL_READ_ETM() */
#include "../ssl/ssl_local.h"
-DEFINE_STACK_OF(SSL_CIPHER)
-
static int debug = 0;
static unsigned int clnt_psk_callback(SSL *ssl, const char *hint,