Skip to content

Commit

Permalink
Merge pull request #87 from ronf/nogil-sign
Browse files Browse the repository at this point in the history
Change SignMixin to release GIL when calling C_Sign/C_SignFinal
  • Loading branch information
danni authored Aug 12, 2020
2 parents b0495cd + 489dccd commit 0dc94bd
Show file tree
Hide file tree
Showing 3 changed files with 413 additions and 230 deletions.
2 changes: 1 addition & 1 deletion pkcs11/_errors.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ cdef ERROR_MAP = {
}


cpdef void assertRV(CK_RV rv) except *:
cpdef void assertRV(CK_RV rv) nogil except *:
"""Check for an acceptable RV value or thrown an exception."""
if rv != CKR_OK:
raise ERROR_MAP.get(rv,
Expand Down
Loading

0 comments on commit 0dc94bd

Please sign in to comment.