Merge branch 'Python2': Get the changes to fix Kindle key retrieval for Mac OS X Big Sur

This commit is contained in:
Apprentice Harper 2020-11-28 16:07:31 +00:00
commit 036f9007fd
1 changed files with 5 additions and 2 deletions

View File

@ -1174,8 +1174,11 @@ elif isosx:
libcrypto = find_library('crypto')
if libcrypto is None:
raise DrmException("libcrypto not found")
libcrypto = CDLL(libcrypto)
libcrypto = '/usr/lib/libcrypto.dylib'
try:
libcrypto = CDLL(libcrypto)
except Exception as e:
raise DrmException("libcrypto not found: " % e)
# From OpenSSL's crypto aes header
#