<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/libnitrokey/unittest, branch v3.4</title>
<subtitle>Communicate with Nitrokey devices in a clean and easy manner (GitHub mirror)
</subtitle>
<id>https://git.ireas.org/mirrors/libnitrokey/atom?h=v3.4</id>
<link rel='self' href='https://git.ireas.org/mirrors/libnitrokey/atom?h=v3.4'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/'/>
<updated>2018-07-07T19:24:14Z</updated>
<entry>
<title>Merge branch 'pr_116'</title>
<updated>2018-07-07T19:24:14Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-07-07T19:24:14Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=430e4b4116ec00c4875170642f8ae04bc3497d88'/>
<id>urn:sha1:430e4b4116ec00c4875170642f8ae04bc3497d88</id>
<content type='text'>
Allow to connect to device with model specified by enum.

Fixes #116
</content>
</entry>
<entry>
<title>Add a test to ensure valid C code in the C API</title>
<updated>2018-07-05T20:50:51Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2018-07-05T20:44:35Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=63013dee539b33c682dd46ae4a086b2f75f46f16'/>
<id>urn:sha1:63013dee539b33c682dd46ae4a086b2f75f46f16</id>
<content type='text'>
All current tests are written in C++.  Therefore C++-only code in the C
API might not be detected by the tests.  This patch adds a minimal test
written in C that only includes the C API header.  This should make sure
that the C API code is valid.

The new test is called `test_minimal.c` and is added to the CMake
COMPILE_OFFLINE_TESTS option.
</content>
</entry>
<entry>
<title>Merge branch 'pr_123'</title>
<updated>2018-06-22T09:01:21Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-06-22T09:01:21Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=7c06025c9b9c28c642c8acc8bab7cbc974cd5575'/>
<id>urn:sha1:7c06025c9b9c28c642c8acc8bab7cbc974cd5575</id>
<content type='text'>
Fix version getter test

Closes #123
</content>
</entry>
<entry>
<title>Fix unit test for get_library_version for release commits</title>
<updated>2018-06-21T08:40:21Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2018-06-21T08:40:21Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=afb7a48046142fe666eda64338f89677e79db705'/>
<id>urn:sha1:afb7a48046142fe666eda64338f89677e79db705</id>
<content type='text'>
`git describe` may return a tag name or &lt;tag&gt;-&lt;n&gt;-g&lt;hash&gt;, where &lt;n&gt; is
the number of commits since the last tag &lt;tag&gt; and &lt;hash&gt; is the hash of
the current commit.  The current test case only considers the latter
case.  This patch adds a regular expression to handle both cases.
</content>
</entry>
<entry>
<title>Replace *out function parameter with return value</title>
<updated>2018-06-20T10:03:28Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-06-20T10:03:28Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=f0f1691bc741da48bc2e1adfa4535026ae42d6d3'/>
<id>urn:sha1:f0f1691bc741da48bc2e1adfa4535026ae42d6d3</id>
<content type='text'>
Using return value instead of memory manipulation seem to be cleaner solution and less error prone
due to avoiding pointer usage.

Signed-off-by: Szczepan Zalega &lt;szczepan@nitrokey.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'pr_115'</title>
<updated>2018-06-20T08:17:30Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-06-20T08:17:30Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=ee6c9c61b93fae7e041abb19e42134d3a831a846'/>
<id>urn:sha1:ee6c9c61b93fae7e041abb19e42134d3a831a846</id>
<content type='text'>
Fix connect() return value in offline mode

Fixes #115
</content>
</entry>
<entry>
<title>Add extended test for the connect() return value in offline mode</title>
<updated>2018-06-20T08:15:26Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-06-20T08:15:26Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=a71507ba0ca4643201c4ceb3d4dfc0f6dd5ae770'/>
<id>urn:sha1:a71507ba0ca4643201c4ceb3d4dfc0f6dd5ae770</id>
<content type='text'>
Signed-off-by: Szczepan Zalega &lt;szczepan@nitrokey.com&gt;
</content>
</entry>
<entry>
<title>Add offline test for version getter</title>
<updated>2018-06-19T13:04:48Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-06-19T13:04:48Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=57c0b8c1235c5bff3640e85a8e17be20e8f422f3'/>
<id>urn:sha1:57c0b8c1235c5bff3640e85a8e17be20e8f422f3</id>
<content type='text'>
Signed-off-by: Szczepan Zalega &lt;szczepan@nitrokey.com&gt;
</content>
</entry>
<entry>
<title>Expose device model in C API</title>
<updated>2018-05-24T22:15:40Z</updated>
<author>
<name>Robin Krahl</name>
<email>me@robin-krahl.de</email>
</author>
<published>2018-05-24T22:15:40Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=6e44c2b11bd1be9e080f1179283c49f9bb8955a5'/>
<id>urn:sha1:6e44c2b11bd1be9e080f1179283c49f9bb8955a5</id>
<content type='text'>
The C++ API already provides access to the model of the connected device
in NitrokeyManager::get_connected_device_model().  This patch also
exposes this information in the C API by adding NK_get_device_model.  As
there might be no device connected, the function returns a boolean
indicating the connection status and writes the model of the connected
device to a pointer passed as an argument.
</content>
</entry>
<entry>
<title>Skip test for devices with firmware lower than v0.9</title>
<updated>2018-05-24T13:22:48Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-05-24T13:22:48Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=d5afa492be65f509345617f139c1600980bb6cce'/>
<id>urn:sha1:d5afa492be65f509345617f139c1600980bb6cce</id>
<content type='text'>
Signed-off-by: Szczepan Zalega &lt;szczepan@nitrokey.com&gt;
</content>
</entry>
</feed>
