<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nitrokey-rs/tests, branch v0.3.2</title>
<subtitle>Rust interface to libnitrokey</subtitle>
<id>https://git.ireas.org/nitrokey-rs/atom?h=v0.3.2</id>
<link rel='self' href='https://git.ireas.org/nitrokey-rs/atom?h=v0.3.2'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/'/>
<updated>2019-01-12T17:39:10Z</updated>
<entry>
<title>Add export_firmware method to Storage</title>
<updated>2019-01-12T17:39:10Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-12T17:37:21Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=78f926456a07047c34dc20b97fe04e55ba443528'/>
<id>urn:sha1:78f926456a07047c34dc20b97fe04e55ba443528</id>
<content type='text'>
The export_firmware method writes the firmware of the Nitrokey Storage
to the unencrypted storage.  We only test that the command succeeds as
mounting the unencrypted storage and accessing the file is out of scope
for the tests.
</content>
</entry>
<entry>
<title>Add set_unencrypted_volume_mode to Storage</title>
<updated>2019-01-12T17:16:39Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-12T16:51:47Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=0ee7ef7705ebfc0d419bba9a61db55fccd14b638'/>
<id>urn:sha1:0ee7ef7705ebfc0d419bba9a61db55fccd14b638</id>
<content type='text'>
The new set_unencrypted_volume_mode method sets the access mode of the
unencrypted volume on the Nitrokey Storage.  Depending on the requested
access mode, it calls either NK_set_unencrypted_read_only_admin or
NK_set_unencrypted_read_write_admin.

Note that this function requires firmware version 0.51 or later.
(Earlier firmware versions used the user PIN.)
</content>
</entry>
<entry>
<title>Move the update PIN from tests/util to tests/device</title>
<updated>2019-01-12T15:03:32Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-12T15:00:11Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=87e742b4746e1dc261825f0ca87c64a1ea454b1d'/>
<id>urn:sha1:87e742b4746e1dc261825f0ca87c64a1ea454b1d</id>
<content type='text'>
The update PIN is only used in the Storage tests, so it is moved from
the common tests/util module to the tests/device module.  This fixes
compiler warnings when compiling the other test modules.
</content>
</entry>
<entry>
<title>Add the get_library_version function</title>
<updated>2019-01-11T13:32:01Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-11T13:30:39Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=d2f9e204aacc13c6205a3d0f1022d4fd17073a7b'/>
<id>urn:sha1:d2f9e204aacc13c6205a3d0f1022d4fd17073a7b</id>
<content type='text'>
This patch adds the get_library_version function to the main library
module that queries and returns the libnitrokey version.  As the version
fields are static values, we fetch them all at the same time and do not
provide getters for the individual fields.
</content>
</entry>
<entry>
<title>Check InvalidHexString error in otp test suite</title>
<updated>2019-01-09T15:16:58Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-09T15:14:11Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=77ab66e0c0aca2ee77b64297eeaf609922f2007b'/>
<id>urn:sha1:77ab66e0c0aca2ee77b64297eeaf609922f2007b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix otp::totp_error test case</title>
<updated>2019-01-09T15:16:43Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-09T15:13:08Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=eb1960b1dbaa4432eb65c7f00689146c815db823'/>
<id>urn:sha1:eb1960b1dbaa4432eb65c7f00689146c815db823</id>
<content type='text'>
Previously the totp_error test case in the otp test suite called hotp
methods.  This patch fixes the test case by calling totp metods instead.
</content>
</entry>
<entry>
<title>Do not check for errors in connect tests</title>
<updated>2019-01-09T14:42:40Z</updated>
<author>
<name>Daniel Mueller</name>
<email>deso@posteo.net</email>
</author>
<published>2019-01-09T04:02:09Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=a849924327cc6c07620fa993e4092768829542e0'/>
<id>urn:sha1:a849924327cc6c07620fa993e4092768829542e0</id>
<content type='text'>
The connect_* device tests fail when run in a setup with a Pro and
Storage stick present. The problem is that these tests assume only one
stick to be present, and that the corresponding connect function for the
other stick reports an error.
However, in a two stick setup there is no such guarantee. This patch
removes tests for those assumptions.
</content>
</entry>
<entry>
<title>Add the connect_model function</title>
<updated>2019-01-06T23:29:52Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-06T23:27:06Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=3fab663891d42cfe317125650394c9560639b60c'/>
<id>urn:sha1:3fab663891d42cfe317125650394c9560639b60c</id>
<content type='text'>
This patch adds the global connect_model function that can be used to
connect to a Nitrokey device of a given model.  Contrary to Pro::connect
and Storage::connect, the model does not have to be set at compile time.
</content>
</entry>
<entry>
<title>Add support for the hidden volumes on a Nitrokey Storage</title>
<updated>2019-01-06T22:59:54Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-06T22:56:27Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=30264131262d9e926d3c14b0c92760fdc15ba5c8'/>
<id>urn:sha1:30264131262d9e926d3c14b0c92760fdc15ba5c8</id>
<content type='text'>
This patch introduces the methods enable_hidden_volume,
disable_hidden_volume and create_hidden_volume for the Storage struct to
support the hidden volumes on the Nitrokey Storage.  The enable and
create methods require that the encrypted storage has been enabled.
Contrary to authentication and password safe access, we do not enforce
this requirement in the API as file system operations could have
unwanted side effects and should not performed implicitly.
</content>
</entry>
<entry>
<title>Fix example for GenerateOtp::get_totp_code</title>
<updated>2019-01-05T09:53:25Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-05T09:52:29Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=83063599f4ab1bcbbd9be9166e738a13ae4e4cc6'/>
<id>urn:sha1:83063599f4ab1bcbbd9be9166e738a13ae4e4cc6</id>
<content type='text'>
</content>
</entry>
</feed>
