pkcs11: Lookup the public key of a private key by CKA_ID.
authorTobias Brunner <tobias@strongswan.org>
Wed, 2 Nov 2011 18:11:46 +0000 (19:11 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 2 Nov 2011 19:27:55 +0000 (20:27 +0100)
commit30a3ede8cee48adb16ef73c9eddda1b7418d263f
tree82c67d87cbb427820e105db0c799634f6f78d997
parent5d2fccf439de73d2e778beb2c1c43b8034019b72
pkcs11: Lookup the public key of a private key by CKA_ID.

Currently this only works if a public key object with the same ID is
available, if there isn't one we could search for a certificate with the
same ID and extract the key from there.
src/libstrongswan/plugins/pkcs11/pkcs11_private_key.c
src/libstrongswan/plugins/pkcs11/pkcs11_public_key.c