Fix bug in pkcs11-tool.c that prevented it from displaying CKA_DERIVE key usage for EC public keys

This commit is contained in:
Mouse 2017-04-20 20:54:06 -04:00 committed by Frank Morgner
parent 13f61eee7b
commit 0cb91fd68c

View File

@ -3369,7 +3369,7 @@ show_key(CK_SESSION_HANDLE sess, CK_OBJECT_HANDLE obj)
printf("%sunwrap", sepa);
sepa = ", ";
}
if ((!pub || sec) && getDERIVE(sess, obj)) {
if (getDERIVE(sess, obj)) {
printf("%sderive", sepa);
sepa = ", ";
}