From ef7b6b03355b82621d16f4f02a5a1a4558ae64cc Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 9 Sep 2020 21:37:19 +0200 Subject: List all matching devices in status commmand Previously, the status command would fail if more than one Nitrokey device is connected. With this patch, we list all attached devices that match the specified filter (model, serial number, USB path). This also casues some changes in the test cases: Previously, we assumed that status fails for multiple attached devices. We now use the lock command to produce this behavior. --- doc/nitrocli.1 | 10 ++++++---- doc/nitrocli.1.pdf | Bin 42203 -> 42810 bytes 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/nitrocli.1 b/doc/nitrocli.1 index 6fb1fd9..87b52b4 100644 --- a/doc/nitrocli.1 +++ b/doc/nitrocli.1 @@ -67,10 +67,12 @@ To omit the serial number of Nitrokey Storage devices instead of connecting to them, set the \fB\-\-no-connect\fR option. .TP .B nitrocli status -Print the status of the connected Nitrokey device, including the stick serial -number, the firmware version, and the PIN retry count. If the device is a -Nitrokey Storage, also print storage related information including the SD card -serial number, the encryption status, and the status of the volumes. +Print the status of the attached Nitrokey devices that match the filter +options (see the Device selection section), including the stick serial number, +the firmware version, and the PIN retry count. +For Nitrokey Storage devices, also print storage related information including +the SD card serial number, the encryption status, and the status of the +volumes. .TP .B nitrocli lock Lock the Nitrokey. diff --git a/doc/nitrocli.1.pdf b/doc/nitrocli.1.pdf index d98ab41..d040b6b 100644 Binary files a/doc/nitrocli.1.pdf and b/doc/nitrocli.1.pdf differ -- cgit v1.2.3