mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2019.2.1' into bp-52780
This commit is contained in:
commit
8ac74e2dfb
1 changed files with 4 additions and 1 deletions
|
@ -66,7 +66,10 @@ def _init_libcrypto():
|
|||
|
||||
try:
|
||||
# If we're greater than OpenSSL 1.1.0, no need to to the init
|
||||
if libcrypto.OpenSSL_version_num < 0x10100000:
|
||||
openssl_version_num = libcrypto.OpenSSL_version_num
|
||||
if callable(openssl_version_num):
|
||||
openssl_version_num = openssl_version_num()
|
||||
if openssl_version_num < 0x10100000:
|
||||
libcrypto.OPENSSL_init_crypto()
|
||||
except AttributeError:
|
||||
# Support for OpenSSL < 1.1 (OPENSSL_API_COMPAT < 0x10100000L)
|
||||
|
|
Loading…
Add table
Reference in a new issue