mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Merge pull request #52797 from garethgreenaway/52717_debian_tests_segmentation_fault
[2019.2.1] Only run the libcrypto init if less than OpenSSL 1.1.0
This commit is contained in:
commit
e3918c59f7
1 changed files with 3 additions and 1 deletions
|
@ -65,7 +65,9 @@ def _init_libcrypto():
|
|||
libcrypto = _load_libcrypto()
|
||||
|
||||
try:
|
||||
libcrypto.OPENSSL_init_crypto()
|
||||
# If we're greater than OpenSSL 1.1.0, no need to to the init
|
||||
if libcrypto.OpenSSL_version_num < 0x10100000:
|
||||
libcrypto.OPENSSL_init_crypto()
|
||||
except AttributeError:
|
||||
# Support for OpenSSL < 1.1 (OPENSSL_API_COMPAT < 0x10100000L)
|
||||
libcrypto.OPENSSL_no_config()
|
||||
|
|
Loading…
Add table
Reference in a new issue