From 0de86da7d0766ae716f17f92baa89a05f999fe5d Mon Sep 17 00:00:00 2001 From: Aveen Ismail <42414844+aveenismail@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:16:42 +0100 Subject: [PATCH] CLI: Put back 'verify' action to function as 'verify-pin' for backwards compatibility (#519) --- 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 fb291c0b..503a2a46 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 124d9524..56d92b97 100644 --- a/tool/yubico-piv-tool.c +++ b/tool/yubico-piv-tool.c @@ -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: @@ -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: @@ -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;