summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor Dukhovni <viktor@twosigma.com>2016-03-07 21:10:38 +0000
committerViktor Dukhovni <openssl-users@dukhovni.org>2016-03-08 09:07:23 -0500
commit133138569f37d149ed1d7641fe8c75a93fded445 (patch)
treece1e5b14ac26870a95c023835f3546054f9d6b10
parent29cce508972f61511318bf8cf7011fae027cddb2 (diff)
downloadopenssl-new-133138569f37d149ed1d7641fe8c75a93fded445.tar.gz
Retain SSLv2 methods as functions that return NULL
This improves ABI compatibility when symbol resolution is not lazy. Reviewed-by: Richard Levitte <levitte@openssl.org>
-rw-r--r--ssl/s2_meth.c6
1 files 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