<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/libnitrokey, branch pr_116</title>
<subtitle>Communicate with Nitrokey devices in a clean and easy manner (GitHub mirror)
</subtitle>
<id>https://git.ireas.org/mirrors/libnitrokey/atom?h=pr_116</id>
<link rel='self' href='https://git.ireas.org/mirrors/libnitrokey/atom?h=pr_116'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/'/>
<updated>2018-07-07T19:12:03Z</updated>
<entry>
<title>Handle new enum model value in NK_login_enum</title>
<updated>2018-07-07T19:12:03Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-07-07T19:12:03Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=601f43bfa71b479e32a289eaeec75069cbc7c26f'/>
<id>urn:sha1:601f43bfa71b479e32a289eaeec75069cbc7c26f</id>
<content type='text'>
Signed-off-by: Szczepan Zalega &lt;szczepan@nitrokey.com&gt;
</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>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>Merge branch '110-mixed_strings'</title>
<updated>2018-04-19T13:12:28Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-04-19T13:12:28Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=391a276ba35216337b777c65fda62561a6e9383f'/>
<id>urn:sha1:391a276ba35216337b777c65fda62561a6e9383f</id>
<content type='text'>
Make sure all C API strings are deallocable.

Tested with Python's 3.6.5 'pytest -sv test_{pro,storage}.py' on Storage v0.50,
Ubuntu 18.04

Closes #110
</content>
</entry>
<entry>
<title>Correct NK_status() reply length</title>
<updated>2018-04-19T13:01:18Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-04-19T13:01:18Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=9ab13fd0ae3d85dcb9a3fcef0594aacb1946086b'/>
<id>urn:sha1:9ab13fd0ae3d85dcb9a3fcef0594aacb1946086b</id>
<content type='text'>
Signed-off-by: Szczepan Zalega &lt;szczepan@nitrokey.com&gt;
</content>
</entry>
<entry>
<title>Implement suggested tests</title>
<updated>2018-04-19T12:59:50Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-04-19T12:59:50Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=d2db195bbe73044681cd6b1ca242de23c57ea917'/>
<id>urn:sha1:d2db195bbe73044681cd6b1ca242de23c57ea917</id>
<content type='text'>
Signed-off-by: Szczepan Zalega &lt;szczepan@nitrokey.com&gt;
</content>
</entry>
<entry>
<title>Change const char* to char* for functions returning duplicated strings.</title>
<updated>2018-04-19T11:59:44Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-04-19T11:59:27Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=776505c2daa533b0887c7af36cb96e026037cdbe'/>
<id>urn:sha1:776505c2daa533b0887c7af36cb96e026037cdbe</id>
<content type='text'>
All functions returning duplicated C-strings, which needs to be deallocated on caller side, are typed char* instead of const char*
Issue #110

Signed-off-by: Szczepan Zalega &lt;szczepan@nitrokey.com&gt;
</content>
</entry>
<entry>
<title>Return allocated string instead of pointer to a string literal</title>
<updated>2018-04-19T11:40:25Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-04-19T11:40:25Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=7a8550dbeda1d05a57a41e4aa0545c625f02ea7e'/>
<id>urn:sha1:7a8550dbeda1d05a57a41e4aa0545c625f02ea7e</id>
<content type='text'>
Issue #110

Signed-off-by: Szczepan Zalega &lt;szczepan@nitrokey.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'pr_106'</title>
<updated>2018-04-19T11:25:39Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-04-19T11:25:39Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=7f5f471d8f3a67fe109e4c8c241de2e1098d275e'/>
<id>urn:sha1:7f5f471d8f3a67fe109e4c8c241de2e1098d275e</id>
<content type='text'>
Update documentation of C API regarding OTP secret length and type.

Closes #106
</content>
</entry>
<entry>
<title>Remove (Pro) marks from C API docs</title>
<updated>2018-04-19T11:18:40Z</updated>
<author>
<name>Szczepan Zalega</name>
<email>szczepan@nitrokey.com</email>
</author>
<published>2018-04-19T11:17:56Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/mirrors/libnitrokey/commit/?id=9af2bd018b7d5555d52ee256347b06c0f05bea69'/>
<id>urn:sha1:9af2bd018b7d5555d52ee256347b06c0f05bea69</id>
<content type='text'>
These were to meant, that the sizes were confirmed for Pro and not for Storage, during library development. Storage has maintained the compatibility, hence there is no need for the mentioned marks.
Issue #106

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