diff options
author | Daniel Mueller <deso@posteo.net> | 2019-07-14 19:19:04 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-07-14 19:19:04 -0700 |
commit | 49f5194e16db47b6de9847b79840c6fe35e0df8c (patch) | |
tree | 613e28edd2cfc542045ea32ec6e86afc2ccf04e7 /libc/ci/ios/deploy_and_run_on_ios_simulator.rs | |
parent | f3a1b0b3c3cd628ecbfa45c3023956d44a4154a4 (diff) | |
download | nitrocli-49f5194e16db47b6de9847b79840c6fe35e0df8c.tar.gz nitrocli-49f5194e16db47b6de9847b79840c6fe35e0df8c.tar.bz2 |
Introduce with_password_safe function
Similar to the with_*device functions introduced in a previous change,
this change introduces a with_password_safe function that is a short
hand for opening the Nitrokey, retrieving a handle to the password safe,
and invoking a user-supplied function on it.
This function will allow us to prevent life time inference problems
caused by passing around a PasswordSafe object, which will contain an
additional reference (and with that, lifetime) in nitrokey version 0.4.
Diffstat (limited to 'libc/ci/ios/deploy_and_run_on_ios_simulator.rs')
0 files changed, 0 insertions, 0 deletions