]> granicus.if.org Git - p11-kit/commitdiff
Fix typo in mock.c
authorStef Walter <stef@thewalter.net>
Wed, 8 Jan 2014 14:04:57 +0000 (15:04 +0100)
committerStef Walter <stef@thewalter.net>
Wed, 8 Jan 2014 14:05:37 +0000 (15:05 +0100)
Reported-by: Tijl Coosemans <tijl@FreeBSD.org>
common/mock.c

index f1d1c03e3731aebe81d7bc085a7dc049cdf0ea48..51b32b6505f136d5562182eef67cfe18dfe3e46a 100644 (file)
@@ -2526,7 +2526,7 @@ prefix_mechanism_init (CK_SESSION_HANDLE session,
        if (method == CKA_SIGN || method == CKA_SIGN_RECOVER) {
                if (key != MOCK_PRIVATE_KEY_PREFIX)
                        return CKR_KEY_HANDLE_INVALID;
-       } else if (method == CKA_VERIFY || CKA_VERIFY_RECOVER) {
+       } else if (method == CKA_VERIFY || method == CKA_VERIFY_RECOVER) {
                if (key != MOCK_PUBLIC_KEY_PREFIX)
                        return CKR_KEY_HANDLE_INVALID;
        } else {