aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-16 00:02:44 -0400
committerRob Austein <sra@hactrn.net>2016-05-16 00:02:44 -0400
commitdddf744a3cfb4f58f07eb983a4788d83f261b860 (patch)
tree17be11f4caf3c13a01557d7c704a1d04f0464f8d
parent4be4d40a2af0aecd4b3fe41e33500cfc35442da2 (diff)
Identical CKA_ID values no longer constitute a conflict, adjust test.
-rw-r--r--unit_tests.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/unit_tests.py b/unit_tests.py
index 62de2cf..f5553d4 100644
--- a/unit_tests.py
+++ b/unit_tests.py
@@ -236,20 +236,6 @@ class TestKeys(unittest.TestCase):
p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN, CKA_TOKEN = True,
CKA_ID = "EC-P256", CKA_EC_PARAMS = self.oid_p256,
CKA_SIGN = True, CKA_VERIFY = True))
- with self.assertRaises(CKR_Exception):
- self.assertIsKeypair(
- p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN,
- public_CKA_TOKEN = False, private_CKA_TOKEN = True,
- CKA_ID = "EC-P256", CKA_EC_PARAMS = self.oid_p256,
- CKA_SIGN = True, CKA_VERIFY = True))
- with self.assertRaises(CKR_Exception):
- self.assertIsKeypair(
- p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN,
- public_CKA_TOKEN = True, private_CKA_TOKEN = False,
- CKA_ID = "EC-P256", CKA_EC_PARAMS = self.oid_p256,
- CKA_SIGN = True, CKA_VERIFY = True))
- for handle in p11.FindObjects(self.session):
- p11.C_DestroyObject(self.session, handle)
self.assertIsKeypair(
p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN,
public_CKA_TOKEN = False, private_CKA_TOKEN = True,