Skip to content

Commit 6cebbd9

Browse files
Print no-operation performed when no nk3 found in change-pin
1 parent 05ac293 commit 6cebbd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/operations_ccid.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ int nk3_change_pin(struct Device *dev, const char *old_pin, const char*new_pin)
6868
struct libusb_device_descriptor usb_desc;
6969

7070
if (!dev->mp_devhandle_ccid) {
71+
printf("No Nitrokey 3 found. No operation performed\n");
7172
return RET_NO_ERROR;
7273
}
7374

@@ -81,6 +82,7 @@ int nk3_change_pin(struct Device *dev, const char *old_pin, const char*new_pin)
8182

8283

8384
if (usb_desc.idVendor != NITROKEY_USB_VID || usb_desc.idProduct != NITROKEY_3_USB_PID) {
85+
printf("No Nitrokey 3 found. No operation performed\n");
8486
return RET_NO_ERROR;
8587
}
8688

0 commit comments

Comments
 (0)