Skip to content

Commit

Permalink
Merge pull request #32 from fupduck/loadOpenSSL1.0
Browse files Browse the repository at this point in the history
check for OpenSLL 1.0
  • Loading branch information
cocagne authored Nov 17, 2017
2 parents 8f0362d + 72cbcea commit 1a2fdd4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions srp/_ctsrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,13 @@
except:
pass
else:
dlls.append( ctypes.cdll.LoadLibrary('libssl.so') )

try:
dlls.append( ctypes.cdll.LoadLibrary('libssl.so.10') )
except OSError:
try:
dlls.append( ctypes.cdll.LoadLibrary('libssl.so.1.0.0') )
except OSError:
dlls.append( ctypes.cdll.LoadLibrary('libssl.so') )

class BIGNUM_Struct (ctypes.Structure):
_fields_ = [ ("d", ctypes.c_void_p),
Expand Down

0 comments on commit 1a2fdd4

Please sign in to comment.