diff options
author | Eneas U de Queiroz <cote2004-github@yahoo.com> | 2018-06-05 10:36:51 -0300 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-06-05 11:02:02 -0700 |
commit | bca4ff53aef16d38aeb1569edaaca6ac4feac6e8 (patch) | |
tree | dbf1ad93997f6f7eb855204f5613e86887060708 /lib | |
parent | 9f4aacc3624abec064a970a9cc038f0ee0942896 (diff) | |
download | openvswitch-bca4ff53aef16d38aeb1569edaaca6ac4feac6e8.tar.gz |
Removed calls to AP deprecated in openssl 1.1
In openssl 1.1, there is no need to initialize the library. It is
automatically done when first used. This allows to compile openvswitch
with openssl 1.1.0 with deprecated API disabled.
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/stream-ssl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stream-ssl.c b/lib/stream-ssl.c index ebb6f3a6c..c7443470f 100644 --- a/lib/stream-ssl.c +++ b/lib/stream-ssl.c @@ -947,12 +947,14 @@ do_ssl_init(void) { SSL_METHOD *method; +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER) #ifdef _WIN32 /* The following call is needed if we "#include <openssl/applink.c>". */ CRYPTO_malloc_init(); #endif SSL_library_init(); SSL_load_error_strings(); +#endif if (!RAND_status()) { /* We occasionally see OpenSSL fail to seed its random number generator |