Optimize OpenSSL initialization by removing synonymous calls to SSL_library_init()
This commit is contained in:
parent
5f5568b3c4
commit
2fbd9e93ea
@ -1007,12 +1007,9 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
SSL_library_init ();
|
SSL_library_init ();
|
||||||
SSL_load_error_strings ();
|
SSL_load_error_strings ();
|
||||||
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
|
||||||
OpenSSL_add_all_algorithms ();
|
|
||||||
#else
|
|
||||||
SSLeay_add_all_algorithms ();
|
SSLeay_add_all_algorithms ();
|
||||||
#endif
|
#endif
|
||||||
SSLeay_add_ssl_algorithms ();
|
|
||||||
|
|
||||||
switch (param.ssl_protocol)
|
switch (param.ssl_protocol)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user