<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libnitrokey, 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>Add NK_device_info, NK_list_devices and NK_free_device_info</title>
<updated>2019-01-13T12:27:38Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:05:37Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=5d94dece0392ce0d5486097abf8918b6922f85d2'/>
<id>urn:sha1:5d94dece0392ce0d5486097abf8918b6922f85d2</id>
<content type='text'>
NK_list_devices corresponds to NitrokeyManager::list_devices.  It
returns a linked list of NK_device_info, which has to be freed using the
NK_free_device_info 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 NK_connect_with_path to C API</title>
<updated>2019-01-13T12:27:24Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:05:18Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=2c79c15dc9aa4ec7eca454b793bf43a9a3ba85db'/>
<id>urn:sha1:2c79c15dc9aa4ec7eca454b793bf43a9a3ba85db</id>
<content type='text'>
NK_connect_with_path corresponds to NitrokeyManager::connect_with_path.
</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>Change NitrokeyManager::connect_with_path to also work with Pro</title>
<updated>2019-01-13T12:27:12Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:05:00Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=8979b7301f79e167a8060772cf83913703f70f2c'/>
<id>urn:sha1:8979b7301f79e167a8060772cf83913703f70f2c</id>
<content type='text'>
Previously, Stick20 was hardcoded in connect_with_path.  Now we first
use hid_enumerate to find out the model on that path, then we connect to
that model.

We also could have added the model as a parameter to connect_with_path.
Yet we cannot directly check the model after connecting, so this would
be error-prone.
</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>Implement operator&lt;&lt; for DeviceModel</title>
<updated>2019-01-13T12:26:59Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2019-01-13T11:04:42Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/libnitrokey/commit/?id=66763febd7990f35d34345175257b2ad9401e829'/>
<id>urn:sha1:66763febd7990f35d34345175257b2ad9401e829</id>
<content type='text'>
</content>
</entry>
</feed>
