Skip to content

Commit

Permalink
Retain SSLv2 methods as functions that return NULL
Browse files Browse the repository at this point in the history
This improves ABI compatibility when symbol resolution is not lazy.

Reviewed-by: Richard Levitte <levitte@openssl.org>
  • Loading branch information
Viktor Dukhovni authored and Viktor Dukhovni committed Mar 8, 2016
1 parent a159719 commit 5bac9d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ssl/s2_meth.c
Expand Up @@ -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

0 comments on commit 5bac9d4

Please sign in to comment.