Skip to content

Commit

Permalink
CLI: Put back 'verify' action to function as 'verify-pin' for backwar…
Browse files Browse the repository at this point in the history
…ds compatibility (#519)
  • Loading branch information
aveenismail authored Dec 17, 2024
1 parent 03ed916 commit 0de86da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tool/cmdline.ggo
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ option "reader" r "Only use a matching reader" string optional default="Yubikey"
option "key" k "Management key to use, if no value is specified key will be asked for" string optional default="010203040506070801020304050607080102030405060708" argoptional
option "action" a "Action to take" values="version","generate","set-mgm-key",
"reset","pin-retries","import-key","import-certificate","set-chuid",
"request-certificate","verify-pin","verify-bio","change-pin","change-puk","unblock-pin",
"request-certificate","verify","verify-pin","verify-bio","change-pin","change-puk","unblock-pin",
"selfsign-certificate","delete-certificate","read-certificate","status",
"test-signature","test-decipher","list-readers","set-ccc","write-object",
"read-object","attest", "move-key", "delete-key" enum multiple
Expand Down
5 changes: 4 additions & 1 deletion tool/yubico-piv-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -2504,6 +2504,7 @@ int main(int argc, char *argv[]) {
case action_arg_changeMINUS_pin:
case action_arg_changeMINUS_puk:
case action_arg_unblockMINUS_pin:
case action_arg_verify:
case action_arg_verifyMINUS_pin:
case action_arg_verifyMINUS_bio:
case action_arg_setMINUS_mgmMINUS_key:
Expand Down Expand Up @@ -2625,6 +2626,7 @@ int main(int argc, char *argv[]) {
case action_arg_version:
case action_arg_reset:
case action_arg_requestMINUS_certificate:
case action_arg_verify:
case action_arg_verifyMINUS_pin:
case action_arg_verifyMINUS_bio:
case action_arg_changeMINUS_pin:
Expand Down Expand Up @@ -2744,7 +2746,8 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "Successfully generated a certificate request.\n");
}
break;
case action_arg_verifyMINUS_pin: {
case action_arg_verifyMINUS_pin:
case action_arg_verify: {
char pinbuf[8+2] = {0};
char *pin = args_info.pin_arg;

Expand Down

0 comments on commit 0de86da

Please sign in to comment.