mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
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>
This commit is contained in:
committed by
Ben Pfaff
parent
9f4aacc362
commit
bca4ff53ae
@@ -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
|
||||
|
Reference in New Issue
Block a user