diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-23 04:27:14 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-23 05:30:23 +0100 |
commit | d4663961c41a0fb6f81f4a54aefd0fedce49d350 (patch) | |
tree | 2622fdecee2dd3c2926118cad296e2c0772fedd1 /CHANGELOG.md | |
parent | c79ddf8116659efd1aa7de42bb85337632f238dd (diff) | |
download | nitrokey-rs-d4663961c41a0fb6f81f4a54aefd0fedce49d350.tar.gz nitrokey-rs-d4663961c41a0fb6f81f4a54aefd0fedce49d350.tar.bz2 |
Return UTF-8 error if libnitrokey returns an invalid string
Previously, we used lossy UTF-8 conversion. Yet the user should be
notified if we have a problem instead of silently changing the data.
Therefore, we now return an error if we enocunter an invalid UTF-8
string. This leads to a change in `get_library_version`’s signature.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index c800521..70bd7cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,8 @@ - Add `Pro::new` and `Storage::new` functions. - Implement `From<Pro>` and `From<Storage>` for `DeviceWrapper`. - Add `Error::Utf8Error` variant. + - Return `Result<Version>` instead of `Version` from `get_library_version`. + - Return `Error::Utf8Error` if libnitrokey returns an invalid UTF-8 string. # v0.3.4 (2019-01-20) - Fix authentication methods that assumed that `char` is signed. |