We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 62ecdfa + 8f69f83 commit 3629924Copy full SHA for 3629924
2 files changed
docs/api.rst
@@ -59,6 +59,12 @@ Classes
59
60
:rtype: Token
61
62
+ .. method:: reinitialize()
63
+
64
+ Reinitializes the loaded PKCS#11 library.
65
66
+ :rtype: None
67
68
.. attribute:: cryptoki_version
69
70
PKCS#11 Cryptoki standard version (:class:`tuple`).
pkcs11/_pkcs11.pyx
@@ -1355,6 +1355,11 @@ cdef class lib:
1355
except StopIteration:
1356
return token
1357
1358
+ def reinitialize(self):
1359
+ if _funclist != NULL:
1360
+ assertRV(_funclist.C_Finalize(NULL))
1361
+ assertRV(_funclist.C_Initialize(NULL))
1362
1363
def __dealloc__(self):
1364
if _funclist != NULL:
1365
assertRV(_funclist.C_Finalize(NULL))
0 commit comments