diff options
author | Stef Walter <stef@memberwebs.com> | 2009-01-03 14:15:06 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-01-03 14:15:06 +0000 |
commit | 1220a0745cb8674e5ce0506a1ad298fe08b0f745 (patch) | |
tree | 08f067363464e24d6bee1fabfa108340d9ee1b2e /src | |
parent | f74e6747fbddcae866333d8dcb207cb8a2e4f280 (diff) |
Active operations can be cancelled by starting another operation.
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto.c | 12 | ||||
-rw-r--r-- | src/object.c | 6 |
2 files changed, 0 insertions, 18 deletions
diff --git a/src/crypto.c b/src/crypto.c index 0f946d8..bef8a1e 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -372,9 +372,6 @@ p11t_crypto_test_encrypt (CK_SESSION_HANDLE session, CK_MECHANISM_TYPE mech) rv = (p11t_module_funcs->C_EncryptInit)(session, &mechanism, handle); P11T_CHECK_RV ("A normal call", rv, CKR_OK); - rv = (p11t_module_funcs->C_EncryptInit)(session, &mechanism, handle); - P11T_CHECK_RV ("Double call", rv, CKR_OPERATION_ACTIVE); - /* All other crypto operations shouldn't be valid */ test_without_init (session, CKA_ENCRYPT); @@ -574,9 +571,6 @@ p11t_crypto_test_decrypt (CK_SESSION_HANDLE session, CK_MECHANISM_TYPE mech) rv = (p11t_module_funcs->C_DecryptInit)(session, &mechanism, handle); P11T_CHECK_RV ("A normal call", rv, CKR_OK); - rv = (p11t_module_funcs->C_DecryptInit)(session, &mechanism, handle); - P11T_CHECK_RV ("Double call", rv, CKR_OPERATION_ACTIVE); - /* All other crypto operations shouldn't be valid */ test_without_init (session, CKA_DECRYPT); @@ -738,9 +732,6 @@ p11t_crypto_test_sign (CK_SESSION_HANDLE session, CK_MECHANISM_TYPE mech) rv = (p11t_module_funcs->C_SignInit)(session, &mechanism, handle); P11T_CHECK_RV ("A normal call", rv, CKR_OK); - rv = (p11t_module_funcs->C_SignInit)(session, &mechanism, handle); - P11T_CHECK_RV ("Double call", rv, CKR_OPERATION_ACTIVE); - /* All other crypto operations shouldn't be valid */ test_without_init (session, CKA_SIGN); @@ -962,9 +953,6 @@ p11t_crypto_test_verify (CK_SESSION_HANDLE session, CK_MECHANISM_TYPE mech) rv = (p11t_module_funcs->C_VerifyInit)(session, &mechanism, handle); P11T_CHECK_RV ("A normal call", rv, CKR_OK); - rv = (p11t_module_funcs->C_VerifyInit)(session, &mechanism, handle); - P11T_CHECK_RV ("Double call", rv, CKR_OPERATION_ACTIVE); - /* All other crypto operations shouldn't be valid */ test_without_init (session, CKA_VERIFY); diff --git a/src/object.c b/src/object.c index accb444..9b36b93 100644 --- a/src/object.c +++ b/src/object.c @@ -108,12 +108,6 @@ test_find_objects(CK_SESSION_HANDLE session) rv = (p11t_module_funcs->C_FindObjectsInit)(session, &attr, 0); P11T_CHECK_RV("Find all objects", rv, CKR_OK); - if(p11t_test_unexpected) - { - rv = (p11t_module_funcs->C_FindObjectsInit)(session, &attr, 0); - P11T_CHECK_RV("Double call", rv, CKR_OPERATION_ACTIVE); - - } P11T_SECTION("C_FindObjects"); |