diff --git a/src/ChangeLog b/src/ChangeLog index 48cd7215..81c6d362 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,4 +1,8 @@ -2014-11-20 Gisle Vanem +2014-12-03 Gisle Vanem + + * openssl.c (ssl_init): Fix C89 warning + +2014-12-03 Gisle Vanem * mswindows.c (ws_cleanup): Fix compiler error diff --git a/src/openssl.c b/src/openssl.c index 81da5a2b..68cd11a1 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -170,6 +170,7 @@ bool ssl_init (void) { SSL_METHOD const *meth; + long ssl_options = 0; #if OPENSSL_VERSION_NUMBER >= 0x00907000 if (ssl_true_initialized == 0) @@ -203,8 +204,6 @@ ssl_init (void) SSLeay_add_all_algorithms (); SSLeay_add_ssl_algorithms (); - long ssl_options = 0; - switch (opt.secure_protocol) { #ifndef OPENSSL_NO_SSL2