From 2bed499e599eae7d20ac8479de053871222e2bbd Mon Sep 17 00:00:00 2001 From: Aveen Ismail Date: Wed, 11 Dec 2024 11:14:33 +0100 Subject: [PATCH] CLI: Put back 'verify' action to function as 'verify-pin' for backwards compatibility --- tool/cmdline.ggo | 2 +- tool/yubico-piv-tool.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tool/cmdline.ggo b/tool/cmdline.ggo index 7fe347f5..70a814b3 100644 --- a/tool/cmdline.ggo +++ b/tool/cmdline.ggo @@ -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 diff --git a/tool/yubico-piv-tool.c b/tool/yubico-piv-tool.c index 9fc0d650..e5dadf6c 100644 --- a/tool/yubico-piv-tool.c +++ b/tool/yubico-piv-tool.c @@ -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: @@ -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: @@ -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;