1 From 48da17d61e38657dfb10f2ac642fd3e6a45ee607 Mon Sep 17 00:00:00 2001
2 From: "P. R. d. O" <d.ol.rod@tutanota.com>
3 Date: Wed, 27 Apr 2022 14:29:53 -0600
4 Subject: [PATCH] OpenSSL path fix
7 proton/srp/_ctsrp.py | 12 ++----------
8 1 file changed, 2 insertions(+), 10 deletions(-)
10 diff --git a/proton/srp/_ctsrp.py b/proton/srp/_ctsrp.py
11 index e19f184..af359c5 100644
12 --- a/proton/srp/_ctsrp.py
13 +++ b/proton/srp/_ctsrp.py
14 @@ -24,22 +24,14 @@ from .util import PM_VERSION, SRP_LEN_BYTES, SALT_LEN_BYTES, hash_password
17 platform = sys.platform
18 -if platform == 'darwin':
19 - dlls.append(ctypes.cdll.LoadLibrary('libssl.dylib'))
20 -elif 'win' in platform:
21 +if 'win' in platform:
22 for d in ('libeay32.dll', 'libssl32.dll', 'ssleay32.dll'):
24 dlls.append(ctypes.cdll.LoadLibrary(d))
29 - dlls.append(ctypes.cdll.LoadLibrary('libssl.so.10'))
32 - dlls.append(ctypes.cdll.LoadLibrary('libssl.so.1.0.0'))
34 - dlls.append(ctypes.cdll.LoadLibrary('libssl.so'))
35 + dlls.append(ctypes.cdll.LoadLibrary('@openssl@/lib/libssl@ext@'))
38 class BIGNUM_Struct(ctypes.Structure):