Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Put back 'verify' action to function as 'verify-pin' for backwar… #519

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -2493,6 +2493,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 @@ -2614,6 +2615,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 @@ -2736,7 +2738,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
Loading