From: GitHub <no...@gi...> - 2015-08-23 10:59:52
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 4df35b922c8eb7e0776a23260b65e570b33e4d42 https://github.com/OpenSC/OpenSC/commit/4df35b922c8eb7e0776a23260b65e570b33e4d42 Author: Nicholas Wilson <nic...@re...> Date: 2015-08-23 (Sun, 23 Aug 2015) Changed paths: M src/tools/pkcs11-tool.c Log Message: ----------- pkcs11: Fix to CKA_PRIVATE handling pcks11-tool There's a copy-and-paste bug in there, where the CKA_PRIVATE attribute is being set on the wrong variables! As well as fixing that, we should explicitly set CKA_PRIVATE to "false" for certificates and public keys, since the PKCS#11 spec doesn't specify a default and some drivers use "private" as the default, making it impossible to add a public key/cert using pkcs11-tool. |