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>
This commit is contained in:
Viktor Dukhovni 2016-03-07 21:10:38 +00:00 committed by Viktor Dukhovni
parent a159719440
commit 5bac9d44e7

View 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