From 5bac9d44e712bc4acfbdd156244fca4486285ec9 Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Mon, 7 Mar 2016 21:10:38 +0000 Subject: [PATCH] Retain SSLv2 methods as functions that return NULL This improves ABI compatibility when symbol resolution is not lazy. Reviewed-by: Richard Levitte --- ssl/s2_meth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssl/s2_meth.c b/ssl/s2_meth.c index b312f17266..d46e2f5af8 100644 --- a/ssl/s2_meth.c +++ b/ssl/s2_meth.c @@ -74,8 +74,8 @@ IMPLEMENT_ssl2_meth_func(SSLv2_method, ssl2_accept, ssl2_connect, ssl2_get_method) #else /* !OPENSSL_NO_SSL2 */ -# if PEDANTIC -static void *dummy = &dummy; -# endif +SSL_METHOD *SSLv2_method(void) { return NULL; } +SSL_METHOD *SSLv2_client_method(void) { return NULL; } +SSL_METHOD *SSLv2_server_method(void) { return NULL; } #endif -- 2.25.1