summaryrefslogtreecommitdiff
path: root/src/otp.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-06-05 22:19:53 +0200
committerRobin Krahl <robin.krahl@ireas.org>2018-06-05 22:19:53 +0200
commit95d18c5b06399fa4109de808f70b1048d4494d39 (patch)
tree4b7cc832b85e9eeeb96a814dae7de598e16bd94c /src/otp.rs
parent7a89b3dbf2f8d8f882edb6298d011cdd3d7add3c (diff)
downloadnitrokey-rs-95d18c5b06399fa4109de808f70b1048d4494d39.tar.gz
nitrokey-rs-95d18c5b06399fa4109de808f70b1048d4494d39.tar.bz2
Use a Device reference in PasswordSafe
Instead of wrapping an owned Device instance, PasswordSafe now only requires a reference to a Device. The lifetime parameter makes sure that the device lives at least as long as the password safe. Using a reference instead of an owned device allows us to implement Drop on PasswordSafe to make sure that the password safe is disabled once it is destructed.
Diffstat (limited to 'src/otp.rs')
0 files changed, 0 insertions, 0 deletions