aboutsummaryrefslogtreecommitdiff
path: root/TODO.md
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-23 02:29:00 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-01-23 03:31:45 +0100
commit57e3c6bf010d51842cbc86a9801fd9baee1b22eb (patch)
tree006ee62941ddca15a3622992ee4c2714087a4140 /TODO.md
parent07bb11fec9de6579ffaa8d128796f242f818292f (diff)
downloadnitrokey-rs-57e3c6bf010d51842cbc86a9801fd9baee1b22eb.tar.gz
nitrokey-rs-57e3c6bf010d51842cbc86a9801fd9baee1b22eb.tar.bz2
Prevent direct instantiation of Pro and Storage
The Pro and Storage structs may only be created using the connect functions. This patch adds a private PhantomData field to the structs to ensure that the compiler does not allow direct instantiation.
Diffstat (limited to 'TODO.md')
-rw-r--r--TODO.md1
1 files changed, 0 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md
index 487f56d..8f4e348 100644
--- a/TODO.md
+++ b/TODO.md
@@ -8,7 +8,6 @@
- Fix timing issues with the `totp_no_pin` and `totp_pin` test cases.
- Clear passwords from memory.
- Find a nicer syntax for the `write_config` test.
-- Prevent construction of internal types.
- Check integer conversions.
- Consider implementing `Into<CommandError>` for `(Device, CommandError)`
- Lock password safe in `PasswordSafe::drop()` (see [nitrokey-storage-firmware