<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libnitrokey/unittest, branch wip/multiple-devices</title>
<subtitle>Robin Krahl's fork of libnitrokey</subtitle>
<id>https://git.ireas.org/libnitrokey/atom?h=wip%2Fmultiple-devices</id>
<link rel='self' href='https://git.ireas.org/libnitrokey/atom?h=wip%2Fmultiple-devices'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/'/>
<updated>2019-01-13T12:27:59Z</updated>
<entry>
<title>Add test for NK_list_devices to test_multiple_devices</title>
<updated>2019-01-13T12:27:59Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:29:58Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=cd1cfdbfc4113186f80dbadf5eb76543b22e34bd'/>
<id>urn:sha1:cd1cfdbfc4113186f80dbadf5eb76543b22e34bd</id>
<content type='text'>
As we cannot test this function properly in Python (due to missing
struct definitions), we test it in the C++ test suite.
</content>
</entry>
<entry>
<title>Add test for NK_connect_with_path</title>
<updated>2019-01-13T12:27:52Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:06:16Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=e9cfa720d39e0c540fe530f907a84e9a4b5d1240'/>
<id>urn:sha1:e9cfa720d39e0c540fe530f907a84e9a4b5d1240</id>
<content type='text'>
As we cannot read the output of NK_list_devices in the Python tests at
the moment, this test case uses NK_list_devices_by_cpuID instead.
</content>
</entry>
<entry>
<title>Add simple test for NK_list_devices</title>
<updated>2019-01-13T12:27:45Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:05:55Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=cf32902131d4f7bd68622ca9d243fdff5a5ed519'/>
<id>urn:sha1:cf32902131d4f7bd68622ca9d243fdff5a5ed519</id>
<content type='text'>
Unfortunately, I cannot test more as the current ffi implementation does
not allow me to import struct definitions.  Without the definition for
the NK_device_info struct, I cannot inspect the result of the
NK_list_devices function.
</content>
</entry>
<entry>
<title>Change std::wstring to std::string in DeviceInfo</title>
<updated>2019-01-13T12:27:31Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:05:28Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=a80378e0c770a503ddaafc0c7aacb78cac667b8f'/>
<id>urn:sha1:a80378e0c770a503ddaafc0c7aacb78cac667b8f</id>
<content type='text'>
For easier handling, we should use a std::string instead of
std::wstring for the serial number in DeviceInfo.  For the conversion, I
assume that the serial number is valid UTF-8.  As it should be
alphanumeric and ASCII only, this should be true.
</content>
</entry>
<entry>
<title>Add test case for NitrokeyManager::connect_with_path to test_multiple_devices</title>
<updated>2019-01-13T12:27:18Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:05:09Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=a63968570dc99ddf193589270218e6c6df34c460'/>
<id>urn:sha1:a63968570dc99ddf193589270218e6c6df34c460</id>
<content type='text'>
The current test case is renamed to “Use Storage API” as it queries the
storage status.  The new test case, “Use API”, lists all connected
devices and prints their model, path and serial number.
</content>
</entry>
<entry>
<title>Add test case for Device::enumerate to test_multiple_devices</title>
<updated>2019-01-13T12:27:05Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:04:51Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=4f7c1b31191d98904276fecd236e6b68b405c349'/>
<id>urn:sha1:4f7c1b31191d98904276fecd236e6b68b405c349</id>
<content type='text'>
The current test case is renamed to “List Storage devices” as it also
displays the SD card ID.  The new test case, “List devices”, lists all
connected devices and prints their model, path and serial number.
</content>
</entry>
<entry>
<title>Make Device::enumerate static</title>
<updated>2019-01-13T12:26:12Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:04:22Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=1751759356bd64cc78f8f71543c3edd5cdce8376'/>
<id>urn:sha1:1751759356bd64cc78f8f71543c3edd5cdce8376</id>
<content type='text'>
Device::enumerate does not need any instance data, therefore it is made
static.  Note that this not only changes the public API by making the
method static.  We also return all connected Nitrokey devices instead of
only Storage devices.

The NitrokeyManager method list_devices_by_cpuID is changed to check the
device type so that they still only return Storage devices.  The
list_device method now returns both Storage and Pro devices.
</content>
</entry>
<entry>
<title>Change Nitrokey::list_devices return type to use DeviceInfo</title>
<updated>2019-01-13T11:03:43Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:03:43Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=71d4ecc04c23342f207e7f1133ea8824a1dcdd16'/>
<id>urn:sha1:71d4ecc04c23342f207e7f1133ea8824a1dcdd16</id>
<content type='text'>
In the previous commit, we changed the return value of Device::enumerate
to std::vector&lt;DeviceInfo&gt;.  Now we change Nitrokey::list_devices to
also return DeviceInfo instances.
</content>
</entry>
<entry>
<title>Change Device::enumerate return type to use DeviceInfo</title>
<updated>2019-01-13T11:03:34Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:03:34Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=4a7ce051bd4004fb62f1c7022d92efa2ce42b6ab'/>
<id>urn:sha1:4a7ce051bd4004fb62f1c7022d92efa2ce42b6ab</id>
<content type='text'>
The return type of Device::enumerate is changed from
std::vector&lt;std::string&gt; to std::vector&lt;DeviceInfo&gt; to expose the
additional information contained in the DeviceInfo struct.
</content>
</entry>
<entry>
<title>Mention potential test failure cause, when no git version is provided</title>
<updated>2019-01-02T12:35:01Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2019-01-02T12:35:01Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=539aec53df80bb5f5893614ca76a6a2821c20bc2'/>
<id>urn:sha1:539aec53df80bb5f5893614ca76a6a2821c20bc2</id>
<content type='text'>
Related to #133

Signed-off-by: Szczepan Zalega &lt;szczepan@nitrokey.com&gt;
</content>
</entry>
</feed>
