Skip to content

Commit 0dc94bd

Browse files
authored
Merge pull request #87 from ronf/nogil-sign
Change SignMixin to release GIL when calling C_Sign/C_SignFinal
2 parents b0495cd + 489dccd commit 0dc94bd

File tree

3 files changed

+413
-230
lines changed

3 files changed

+413
-230
lines changed

pkcs11/_errors.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ cdef ERROR_MAP = {
8282
}
8383

8484

85-
cpdef void assertRV(CK_RV rv) except *:
85+
cpdef void assertRV(CK_RV rv) nogil except *:
8686
"""Check for an acceptable RV value or thrown an exception."""
8787
if rv != CKR_OK:
8888
raise ERROR_MAP.get(rv,

0 commit comments

Comments
 (0)