diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-01-28 19:42:41 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2020-01-28 21:05:03 +0100 |
commit | 669fbb40d894460e9603dcf6e953373e53a19347 (patch) | |
tree | 0969d9f734fda35a9cb9b21cb063e63b615d1a81 /CHANGELOG.md | |
parent | 817409140a8778215d2d65d614d3672166fff576 (diff) | |
download | nitrokey-rs-669fbb40d894460e9603dcf6e953373e53a19347.tar.gz nitrokey-rs-669fbb40d894460e9603dcf6e953373e53a19347.tar.bz2 |
Use CString to store temporary passwords
This patch changes the generate_password function and the User and Admin
structs to use a CString instead of a Vec<u8> when storing temporary
passwords. This makes sure that the strings that are passed to the C
API are properly null-terminated.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index cba0e83..be65865 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ Copyright (C) 2019-2020 Robin Krahl <robin.krahl@ireas.org> SPDX-License-Identifier: CC0-1.0 --> +# Unreleased +- Use `CString` to store the temporary password instead of `Vec<u8>`. + # v0.5.1 (2020-01-15) - Fix serial number formatting for Nitrokey Pro devices with firmware 0.8 or older in the `list_devices` function. |