depot/third_party/nixpkgs/pkgs/tools/admin/salt/fix-libcrypto-loading.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

14 lines
434 B
Diff

diff --git a/salt/utils/rsax931.py b/salt/utils/rsax931.py
index f827cc6db8..b728595186 100644
--- a/salt/utils/rsax931.py
+++ b/salt/utils/rsax931.py
@@ -47,6 +47,9 @@ def _load_libcrypto():
lib = lib[0] if len(lib) > 0 else None
if lib:
return cdll.LoadLibrary(lib)
+ else:
+ return cdll.LoadLibrary('@libcrypto@')
+
raise OSError('Cannot locate OpenSSL libcrypto')