Skip to content

Commit

Permalink
Removed calls to AP deprecated in openssl 1.1
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
cotequeiroz authored and blp committed Jun 5, 2018
1 parent 9f4aacc commit bca4ff5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/stream-ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bca4ff5

Please sign in to comment.