summaryrefslogtreecommitdiff
path: root/nitrokey-sys/wrapper.h
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-28 19:42:41 +0100
committerRobin Krahl <robin.krahl@ireas.org>2020-01-28 21:05:03 +0100
commit669fbb40d894460e9603dcf6e953373e53a19347 (patch)
tree0969d9f734fda35a9cb9b21cb063e63b615d1a81 /nitrokey-sys/wrapper.h
parent817409140a8778215d2d65d614d3672166fff576 (diff)
downloadnitrokey-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 'nitrokey-sys/wrapper.h')
0 files changed, 0 insertions, 0 deletions