Skip to content

Commit

Permalink
get_PYKCS11LIB.py: Add Fedora lib path
Browse files Browse the repository at this point in the history
Add Fedora PyKCS11 library location search path.
  • Loading branch information
tim77 authored and LudovicRousseau committed May 4, 2024
1 parent a9cacea commit d78b729
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions get_PYKCS11LIB.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def get_PYKCS11LIB():
LIBS = [
"/usr/local/lib/pkcs11-spy.so", # macOS or local build
"/usr/lib/x86_64-linux-gnu/pkcs11-spy.so", # Debian amd64
"/usr/lib64/pkcs11/pkcs11-spy.so", # Fedora Linux
]
else:
if sys.maxsize > 2 ** 32:
Expand All @@ -31,6 +32,7 @@ def get_PYKCS11LIB():
"/usr/lib/softhsm/libsofthsm.so", # Debian libsofthsm
"/usr/lib/libsofthsm.so", # Ubuntu 12.04 libsofthsm
"/usr/lib/x86_64-linux-gnu/softhsm/libsofthsm2.so", # Ubuntu 16.04 libsofthsm2
"/usr/lib64/pkcs11/libsofthsm2.so", # Fedora Linux
WINDOWS_SOFTHSM, # Windows
]

Expand Down

0 comments on commit d78b729

Please sign in to comment.