Closed
Description
def lib(so):
"""
Wrap the main library call coming from Cython with a preemptive
dynamic loading.
"""
global _lib
global _so
if _lib:
if _so != so:
raise AlreadyInitialized( # noqa: F405
- "Already initialized with %s" % so)
+ "Already initialized with %s" % _so)
else:
return _lib
from . import _pkcs11
_lib = _pkcs11.lib(so)
_so = so
return _lib
Activity
msetina commentedon Feb 13, 2025
Is it possible to switch to another library?
HRio commentedon Feb 14, 2025
This happens when for instance switching between opensc and softhsm
See PR #185
msetina commentedon Feb 14, 2025
Had different libraries, but I agree. I was wondering why switching is not possible. What is it protecting?
If user takes out card while running and inserts another in this case they can not switch library if needed.