Skip to content

Commit 82d3a39

Browse files
committed
Revert calling OPENSSL_init_ssl(), tiran advises: No need
to call this, OpenSSL calls this function internally and automatically.
1 parent 4809f4c commit 82d3a39

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Modules/_ssl.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5277,9 +5277,7 @@ PyInit__ssl(void)
52775277
return NULL;
52785278
PySocketModule = *socket_api;
52795279

5280-
#ifdef OPENSSL_VERSION_1_1
5281-
OPENSSL_init_ssl(0, NULL);
5282-
#else
5280+
#ifndef OPENSSL_VERSION_1_1
52835281
/* Load all algorithms and initialize cpuid */
52845282
OPENSSL_add_all_algorithms_noconf();
52855283
/* Init OpenSSL */

0 commit comments

Comments
 (0)