From dddf744a3cfb4f58f07eb983a4788d83f261b860 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 16 May 2016 00:02:44 -0400 Subject: Identical CKA_ID values no longer constitute a conflict, adjust test. --- unit_tests.py | 14 -------------- 1 file changed, 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, -- cgit v1.2.3