mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Only run the libcrypto init if less than OpenSSL 1.1.0.
This commit is contained in:
parent
35094653c9
commit
e24f2f8f21
@ -65,6 +65,8 @@ def _init_libcrypto():
|
||||
libcrypto = _load_libcrypto()
|
||||
|
||||
try:
|
||||
# If we're greater than OpenSSL 1.1.0, no need to to the init
|
||||
if libcrypto.OpenSSL_version_num < 0x10100000L:
|
||||
libcrypto.OPENSSL_init_crypto()
|
||||
except AttributeError:
|
||||
# Support for OpenSSL < 1.1 (OPENSSL_API_COMPAT < 0x10100000L)
|
||||
|
Loading…
Reference in New Issue
Block a user