Retain SSLv2 methods as functions that return NULL
authorViktor Dukhovni <viktor@twosigma.com>
Mon, 7 Mar 2016 21:10:38 +0000 (21:10 +0000)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Tue, 8 Mar 2016 14:08:28 +0000 (09:08 -0500)
This improves ABI compatibility when symbol resolution is not lazy.

Reviewed-by: Richard Levitte <levitte@openssl.org>
ssl/s2_meth.c

index b312f17266129cb4395ac7ff8efb9970a5e19600..d46e2f5af804099fae9caf4c3d6a20987146d3d1 100644 (file)
@@ -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