<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/libnitrokey/unittest, branch 141-cmake-hidapi-pkgconfig</title>
<subtitle>Communicate with Nitrokey devices in a clean and easy manner (GitHub mirror)
</subtitle>
<id>https://git.ireas.org/mirrors/libnitrokey/atom?h=141-cmake-hidapi-pkgconfig</id>
<link rel='self' href='https://git.ireas.org/mirrors/libnitrokey/atom?h=141-cmake-hidapi-pkgconfig'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/'/>
<updated>2020-06-13T17:39:14Z</updated>
<entry>
<title>Merge branch 'read-config-struct'</title>
<updated>2020-06-13T17:39:14Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2020-06-13T17:39:14Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=9849224e27c3c82e2f4efb6e491b6975bb4ecb25'/>
<id>urn:sha1:9849224e27c3c82e2f4efb6e491b6975bb4ecb25</id>
<content type='text'>
Add NK_config struct and read/write functions

Fixes #176
</content>
</entry>
<entry>
<title>Merge branch 'free'</title>
<updated>2020-06-13T17:20:02Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2020-06-13T17:20:02Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=9b929a0bacd03657ddc232e6b4a9ed0fade82f68'/>
<id>urn:sha1:9b929a0bacd03657ddc232e6b4a9ed0fade82f68</id>
<content type='text'>
Add functions for freeing memory of some C API results

Fixes #175
</content>
</entry>
<entry>
<title>Merge branch 'serial-number-u32'</title>
<updated>2020-06-13T16:50:34Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2020-06-13T16:50:34Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=8009c37af6198e712e458d0810fe5eae4b2f0ee6'/>
<id>urn:sha1:8009c37af6198e712e458d0810fe5eae4b2f0ee6</id>
<content type='text'>
Return serial number as uint32_t

Fixes #174
</content>
</entry>
<entry>
<title>Make proper call to install pip package</title>
<updated>2020-06-13T16:44:07Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2020-06-13T16:29:58Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=f3cffe7245f25d6a8b0651987a9e412c374027e9'/>
<id>urn:sha1:f3cffe7245f25d6a8b0651987a9e412c374027e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add NK_config struct and read/write functions</title>
<updated>2020-04-02T14:29:27Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-04-02T14:29:27Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=0270a9b3de4b45fcfcb83f8e20a78702811d4192'/>
<id>urn:sha1:0270a9b3de4b45fcfcb83f8e20a78702811d4192</id>
<content type='text'>
This patch adds the NK_config struct to the C API that stores the
general configuration of a Nitrokey device.  It also adds the
NK_read_config_struct and NK_write_config_struct functions to make the
API easier to use.  While NK_write_config_struct is only a convenience
method, NK_read_config_struct makes the API more safe as the user no
longer has to read the data from a pointer to an array.

This patch also extends the test_read_write_config test case with the
two new functions.
</content>
</entry>
<entry>
<title>Add missing free functions to C API</title>
<updated>2020-04-02T13:53:15Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-04-02T13:51:25Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=2a7b3f4e2ae09d665f9783030323dfb1a4c5ee9f'/>
<id>urn:sha1:2a7b3f4e2ae09d665f9783030323dfb1a4c5ee9f</id>
<content type='text'>
This patch adds two missing free functions, NK_free_config and
NK_free_password_safe_slot_status, to enable memory-safe use of the C
API.

Fixes #173.
</content>
</entry>
<entry>
<title>Add test_memory test case</title>
<updated>2020-04-02T13:53:05Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-04-02T13:38:39Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=b482abe3bf62ef46816e81ccdab68bc24f498ce6'/>
<id>urn:sha1:b482abe3bf62ef46816e81ccdab68bc24f498ce6</id>
<content type='text'>
This patch adds a test_memory test case that demonstrates new[]/free
mismatches with the NK_read_config and NK_get_password_safe_slot_status
functions if run with valgrind, see #173.
</content>
</entry>
<entry>
<title>Return serial number as uint32_t from C API</title>
<updated>2020-04-02T13:20:59Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-04-02T13:19:00Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=fedf828e394938fb6f84407b4de7412a3fb6ec40'/>
<id>urn:sha1:fedf828e394938fb6f84407b4de7412a3fb6ec40</id>
<content type='text'>
This patch adds the function NK_device_serial_number_as_u32 to the C
API.  It is similar to NK_device_serial_number but returns the raw
unsigned integer instead of a formatted string.  This patch also adds a
simple test case that ensures that the number is not zero.

Fixes #172.
</content>
</entry>
<entry>
<title>NitrokeyManager: Also return serial number as u32</title>
<updated>2020-04-02T13:20:29Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2020-04-02T13:02:36Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=67b14773cf4ab1812af85d3aaf99bdc6119c5a8a'/>
<id>urn:sha1:67b14773cf4ab1812af85d3aaf99bdc6119c5a8a</id>
<content type='text'>
This patch adds the get_serial_number_as_u32 method to NitrokeyManager.
It returns the serial number as a 32-bit unsigned integer.  Previously,
we only returned it as a string generated from the integer value,
get_serial_number.

While get_serial_number returns an empty string if no device is
connected and "NA" if an unknown model is connected, the new method
throws a DeviceNotConnected exception in the first case and returns zero
in the second case as we cannot express the three states in one integer
return value.
</content>
</entry>
<entry>
<title>Add missing skip for lower firmware version</title>
<updated>2020-02-26T11:26:42Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2020-02-25T13:11:58Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=f37b771bbb8b665f4c0c1fe6f8336cf4fb458e5d'/>
<id>urn:sha1:f37b771bbb8b665f4c0c1fe6f8336cf4fb458e5d</id>
<content type='text'>
</content>
</entry>
</feed>
