<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nitrokey-rs/src, branch v0.4.0-alpha.0</title>
<subtitle>Rust interface to libnitrokey</subtitle>
<id>https://git.ireas.org/nitrokey-rs/atom?h=v0.4.0-alpha.0</id>
<link rel='self' href='https://git.ireas.org/nitrokey-rs/atom?h=v0.4.0-alpha.0'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/'/>
<updated>2019-01-27T14:04:24Z</updated>
<entry>
<title>Use if instead of match for boolean expression</title>
<updated>2019-01-27T14:04:24Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-27T14:04:24Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=41a2303ad06f409cb932cf570ff6cc04dd6692fe'/>
<id>urn:sha1:41a2303ad06f409cb932cf570ff6cc04dd6692fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace or with or_else in get_cstring</title>
<updated>2019-01-27T13:42:12Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-27T13:42:12Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=3cab3525e9c0bd743aa419d286de38d346776fbd'/>
<id>urn:sha1:3cab3525e9c0bd743aa419d286de38d346776fbd</id>
<content type='text'>
To avoid unnecessary function calls, we replace the or with an or_else
in get_cstring.
</content>
</entry>
<entry>
<title>Remove the static lifetime modifier from constants</title>
<updated>2019-01-27T13:38:16Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-27T13:38:16Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=e311ee31b819092a119fa24930ab5777d3c4fd71'/>
<id>urn:sha1:e311ee31b819092a119fa24930ab5777d3c4fd71</id>
<content type='text'>
The DEFAULT_{ADMIN,USER}_PIN constants implicitly have static lifetime.
Therefore we can remove the static lifetime modifiers.
</content>
</entry>
<entry>
<title>Rename Error::Unknown to Error::UnknownError</title>
<updated>2019-01-27T13:38:07Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-27T13:36:13Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=33a65c1635e54ae51089ef3c37a749d67853be02'/>
<id>urn:sha1:33a65c1635e54ae51089ef3c37a749d67853be02</id>
<content type='text'>
For consistency with the other Error variants, we rename Unknown to
UnknownError.
</content>
</entry>
<entry>
<title>Remove the Result typedef</title>
<updated>2019-01-27T13:31:36Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-27T13:31:36Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=a30562638aed90d113739bb36dd6814f6cf7ace2'/>
<id>urn:sha1:a30562638aed90d113739bb36dd6814f6cf7ace2</id>
<content type='text'>
Many of our functions do not return a Result&lt;_, Error&gt;, but for example
a Result&lt;_, (Device, Error)&gt;.  We only use the typedef in one function,
but it makes the other functions more complicated as we have to use
result::Result (if crate::Result is imported).  Therefore, this patch
removes the typedef.  Applications or libraries can still redefine it if
they want to.
</content>
</entry>
<entry>
<title>Remove rand_core::Error from public API</title>
<updated>2019-01-25T18:49:35Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-25T18:46:57Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=809d31a4273505487febb2dd281376d2bb3766ab'/>
<id>urn:sha1:809d31a4273505487febb2dd281376d2bb3766ab</id>
<content type='text'>
rand_core does not have a stable release yet, and it is unlikely that
there will be one soon.  To be able to stabilize nitrokey without
waiting for a stable rand_core version, we remove the rand_core::Error
type from the public API and replace it with a Box&lt;dyn error::Error&gt;.
</content>
</entry>
<entry>
<title>Add license and copyright information</title>
<updated>2019-01-23T15:33:26Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-23T15:33:26Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=fdb7bac3063e62776bfc13f184cf786da19f42d1'/>
<id>urn:sha1:fdb7bac3063e62776bfc13f184cf786da19f42d1</id>
<content type='text'>
This patch adds license and copyright information to all files to make
nitrokey-rs compliant with the REUSE practices [0].

[0] https://reuse.software/practices/2.0/
</content>
</entry>
<entry>
<title>Implement From&lt;(T: Device, Error)&gt; for Error</title>
<updated>2019-01-23T04:38:30Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-23T04:36:57Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=b00bbaa5603504597729ed2ce0d1e8ff50ea078d'/>
<id>urn:sha1:b00bbaa5603504597729ed2ce0d1e8ff50ea078d</id>
<content type='text'>
Not all users of the authenticate methods want to use the device after
an error, so implementing From&lt;(T: Device, Error)&gt; for Error makes it
easier for them to discard the device.
</content>
</entry>
<entry>
<title>Return UTF-8 error if libnitrokey returns an invalid string</title>
<updated>2019-01-23T04:30:23Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-23T04:27:14Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=d4663961c41a0fb6f81f4a54aefd0fedce49d350'/>
<id>urn:sha1:d4663961c41a0fb6f81f4a54aefd0fedce49d350</id>
<content type='text'>
Previously, we used lossy UTF-8 conversion.  Yet the user should be
notified if we have a problem instead of silently changing the data.
Therefore, we now return an error if we enocunter an invalid UTF-8
string.  This leads to a change in `get_library_version`’s signature.
</content>
</entry>
<entry>
<title>Add Error::Utf8Error variant</title>
<updated>2019-01-23T04:26:15Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-23T04:16:59Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=c79ddf8116659efd1aa7de42bb85337632f238dd'/>
<id>urn:sha1:c79ddf8116659efd1aa7de42bb85337632f238dd</id>
<content type='text'>
Previously, we just ignored UTF-8 errors.  This patch prepares the
Utf8Error variant so that we are able to return UTF-8 errors.
</content>
</entry>
</feed>
