aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-09-17 18:06:28 -0400
committerRob Austein <sra@hactrn.net>2015-09-17 18:06:28 -0400
commit261e1e35db97e99df38c12f6a48bb28f6b827ac8 (patch)
tree0edcc1b6c8353c2a2d7db796198fd5e44be3d3ae /scripts
parentfcb9943a4f1103768f225395f2ea4d7a2ff0d3a8 (diff)
Enable locking in py11.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/py11-test.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/py11-test.py b/scripts/py11-test.py
index 45d6713..8e189e3 100644
--- a/scripts/py11-test.py
+++ b/scripts/py11-test.py
@@ -64,10 +64,9 @@ ec_curve_oid_p256 = "".join(chr(i) for i in (0x06, 0x08, 0x2a, 0x86, 0x48, 0xce,
ec_curve_oid_p384 = "".join(chr(i) for i in (0x06, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x22))
ec_curve_oid_p521 = "".join(chr(i) for i in (0x06, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x23))
-
p11 = PKCS11("./libpkcs11.so")
-p11.C_Initialize()
+p11.C_Initialize(CKF_OS_LOCKING_OK)
slots = p11.C_GetSlotList()