aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.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 /CHANGELOG.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 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a4df5c6..1e962e0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,8 @@
- Return `CommunicationError::NotConnected` instead of
`CommandError::Undefined` from the connect functions.
- Remove the `CommandError::Undefined` variant.
+- Add a private `PhantomData` field to `Pro` and `Storage` to make direct
+ instantiation impossible.
# v0.3.4 (2019-01-20)
- Fix authentication methods that assumed that `char` is signed.