mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
a5b8c0c2de
The libcrypto patch didn't work well with `salt-ssh` (that code failed on remote machines), so let's make Nix-based library lookup as fallback. https://github.com/saltstack/salt/issues/43350
15 lines
434 B
Diff
15 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')
|
|
|
|
|