add f9 slot for attestation

This commit is contained in:
Klas Lindfors
2015-11-18 13:20:41 +01:00
parent e07ddaf08b
commit 0dc8d13922
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ option "action" a "Action to take" values="version","generate","set-mgm-key",
text "
Multiple actions may be given at once and will be executed in order
for example --action=verify-pin --action=request-certificate\n"
option "slot" s "What key slot to operate on" values="9a","9c","9d","9e","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95" enum optional
option "slot" s "What key slot to operate on" values="9a","9c","9d","9e","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","f9" enum optional
text "
9a is for PIV Authentication
9c is for Digital Signature (PIN always checked)
+3
View File
@@ -262,6 +262,9 @@ int get_object_id(enum enum_slot slot) {
case slot_arg_95:
object = YKPIV_OBJ_RETIRED20;
break;
case slot_arg_f9:
object = YKPIV_OBJ_ATTESTATION;
break;
case slot__NULL:
default:
object = 0;