pkcs11: Fixed a bug when creating public keys.
authorTobias Brunner <tobias@strongswan.org>
Wed, 9 Nov 2011 16:39:24 +0000 (17:39 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 9 Nov 2011 16:39:24 +0000 (17:39 +0100)
src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c

index d49a038..f6782ba 100644 (file)
@@ -810,7 +810,7 @@ static private_pkcs11_public_key_t *find_key_by_keyid(pkcs11_library_t *p11,
        bool found = FALSE;
        size_t keylen;
 
-       switch (type)
+       switch (key_type)
        {
                case KEY_RSA:
                        type = CKK_RSA;