<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nitrokey-rs/tests, branch authentication-error</title>
<subtitle>Rust interface to libnitrokey</subtitle>
<id>https://git.ireas.org/nitrokey-rs/atom?h=authentication-error</id>
<link rel='self' href='https://git.ireas.org/nitrokey-rs/atom?h=authentication-error'/>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/'/>
<updated>2019-07-20T08:24:51Z</updated>
<entry>
<title>Return AuthenticationError from authenticate_*</title>
<updated>2019-07-20T08:24:51Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-02-05T14:47:14Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=3a0ed1b3b81b29530c0dd5d65a5409c349f85aae'/>
<id>urn:sha1:3a0ed1b3b81b29530c0dd5d65a5409c349f85aae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Check retry count before building AES key in test</title>
<updated>2019-07-09T11:37:42Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-07-09T11:34:53Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=fe8161ba51d65382a20650a75f06e1cc7b753e68'/>
<id>urn:sha1:fe8161ba51d65382a20650a75f06e1cc7b753e68</id>
<content type='text'>
Due to a timing issue, some calls to the build_aes_key function may fail
after a factory reset.  As a workaround for this firmware bug, we check
the user retry count before building the aes key in the factory_reset
test.  For details, see the upstream issue:
	https://github.com/Nitrokey/nitrokey-pro-firmware/issues/57
</content>
</entry>
<entry>
<title>Use into_manager in device connection tests</title>
<updated>2019-07-09T11:07:52Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-07-09T11:03:01Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=a0ebd37765027121b85dfd6b78b453a50adc69c9'/>
<id>urn:sha1:a0ebd37765027121b85dfd6b78b453a50adc69c9</id>
<content type='text'>
To avoid a ConcurrentAccessError, we have to use the
Device::into_manager function instead of calling take to obtain a
Manager instance.
</content>
</entry>
<entry>
<title>Use Manager in device connection tests</title>
<updated>2019-07-09T08:43:11Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-27T19:14:51Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=0ac9c401c9968d39581fe2bc3a6610cb9a7a22d8'/>
<id>urn:sha1:0ac9c401c9968d39581fe2bc3a6610cb9a7a22d8</id>
<content type='text'>
The previous patches refactored the connection handling to use the
Manager struct.  This patch changes the tests to use the new Manager
methods instead of the deprecated functions.
</content>
</entry>
<entry>
<title>Introduce into_manager for Device</title>
<updated>2019-07-09T08:27:55Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-07-09T08:09:02Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=12fa62483cf45d868099d5d4020333af492eebde'/>
<id>urn:sha1:12fa62483cf45d868099d5d4020333af492eebde</id>
<content type='text'>
To enable applications like nitrokey-test to go back to a manager
instance from a Device instance, we add the into_manager function to the
Device trait.  To do that, we have to keep track of the Manager’s
lifetime by adding a lifetime to Device (and then to some other traits
that use Device).
</content>
</entry>
<entry>
<title>Move {Pro, Storage}::connect into Manager</title>
<updated>2019-07-08T21:33:13Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-27T18:21:08Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=379bc798477a1de7ffda923c5d10ca63aebae25f'/>
<id>urn:sha1:379bc798477a1de7ffda923c5d10ca63aebae25f</id>
<content type='text'>
As part of the connection refactoring, this patch moves the connect
methods of the Pro and Storage structs into the Manager struct.  To
maintain compatibility with nitrokey-test, the old methods are not
removed but marked as deprecated.
</content>
</entry>
<entry>
<title>Move the connect_model function into Manager</title>
<updated>2019-07-08T21:31:40Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-27T18:07:59Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=bd7c7a5fdf0ae66a1ff2f00beb5ed4c2e6994ca1'/>
<id>urn:sha1:bd7c7a5fdf0ae66a1ff2f00beb5ed4c2e6994ca1</id>
<content type='text'>
As part of the connection refactoring, this patch moves the
connect_model function to the Manager struct.  As the connect_model
function is not used by nitrokey-test, it is removed.
</content>
</entry>
<entry>
<title>Add Manager struct to manage Nitrokey connections</title>
<updated>2019-07-08T21:27:11Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-01-27T15:43:32Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=588066f415e956fdcd2c6f6216c52b25911a3b1d'/>
<id>urn:sha1:588066f415e956fdcd2c6f6216c52b25911a3b1d</id>
<content type='text'>
As part of the connection refactoring, we introduce the Manager struct
that deals with connection management.  To make sure there can be only
once instance of the manager, we add a global static Mutex that holds
the single Manager instance.  We use the struct to ensure that the user
can only connect to one device at a time.

This also changes the Error::PoisonError variant to store the
sync::PoisonError.  This allows the user to call into_inner on the
PoisonError to retrieve the MutexGuard and to ignore the error (for
example useful during testing).
</content>
</entry>
<entry>
<title>Revert "Store mutable reference to Device in PasswordSafe"</title>
<updated>2019-02-05T14:52:54Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-02-05T12:48:01Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=d95355e3d76c0c0022629e635f36a2dc325c0af2'/>
<id>urn:sha1:d95355e3d76c0c0022629e635f36a2dc325c0af2</id>
<content type='text'>
This reverts commit 13006c00dcbd570cf8347d89557834e320427377.
</content>
</entry>
<entry>
<title>Revert "Refactor User and Admin to use a mutable reference"</title>
<updated>2019-02-05T14:48:24Z</updated>
<author>
<name>Robin Krahl</name>
<email>robin.krahl@ireas.org</email>
</author>
<published>2019-02-05T12:47:24Z</published>
<link rel='alternate' type='text/html' href='https://git.ireas.org/nitrokey-rs/commit/?id=83641ca0518e4c766c63e40d0787e4f0b436652a'/>
<id>urn:sha1:83641ca0518e4c766c63e40d0787e4f0b436652a</id>
<content type='text'>
This reverts commit 0972bbe82623c3d9649b6023d8f50d304aa0cde6.
</content>
</entry>
</feed>
