From 6cebbd90d041bf9c77c87c97aeb3d8fe9f615831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Mon, 9 Dec 2024 17:46:41 +0100 Subject: [PATCH] Print no-operation performed when no nk3 found in change-pin --- src/operations_ccid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/operations_ccid.c b/src/operations_ccid.c index 1ca6f54..a9cf1c9 100644 --- a/src/operations_ccid.c +++ b/src/operations_ccid.c @@ -68,6 +68,7 @@ int nk3_change_pin(struct Device *dev, const char *old_pin, const char*new_pin) struct libusb_device_descriptor usb_desc; if (!dev->mp_devhandle_ccid) { + printf("No Nitrokey 3 found. No operation performed\n"); return RET_NO_ERROR; } @@ -81,6 +82,7 @@ int nk3_change_pin(struct Device *dev, const char *old_pin, const char*new_pin) if (usb_desc.idVendor != NITROKEY_USB_VID || usb_desc.idProduct != NITROKEY_3_USB_PID) { + printf("No Nitrokey 3 found. No operation performed\n"); return RET_NO_ERROR; }