Add support for locating ykcs11 library on macOS#334
Add support for locating ykcs11 library on macOS#334ye4241 wants to merge 4 commits intoebourg:masterfrom
Conversation
|
Thank you for the suggestion. Do you know which Homebrew package provides I'm not familiar with macOS, in which case is I'm not convinced by the Also keep in mind that you can replace the |
Ok got it, it comes from the yubico-piv-tool formulae. We could also add the Linux path: |
Let me remove this logic first. |
…library path detection
This pull request enhances the way the
getYkcs11Library()method inYubiKey.javalocates the YubiKey PKCS#11 library, making it more flexible and robust, especially for custom and MacOS environments.Improvements to library discovery:
PKCS11_MODULEenvironment variable, allowing users to override the default search logic.libykcs11.dylib, including paths from theDYLD_LIBRARY_PATHenvironment variable, increasing compatibility with different installation methods.