diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-20 13:54:20 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-20 14:58:11 +0100 |
commit | 9e97ffad01e1b81c87f2926bd7bab823219b07c7 (patch) | |
tree | 212541036afd85ab28861a2e8769719d76ce5dbb /src/device/pro.rs | |
parent | 7cf747d56ddc0b7eeedc3caf36dcc909907a171c (diff) | |
download | nitrokey-rs-9e97ffad01e1b81c87f2926bd7bab823219b07c7.tar.gz nitrokey-rs-9e97ffad01e1b81c87f2926bd7bab823219b07c7.tar.bz2 |
Pass temporary password as *const c_char
The random number generator used for the temporary password produces a
Vec<u8>. The libnitrokey functions using the temporary password require
a pointer to a c_char. Previously, we cast the u8 pointer to the
Vec<u8> to a i8 pointer (unsigned to signed). This leads to a type
mismatch if the char type is not signed. Therefore we now cast to
c_char instead of i8.
Diffstat (limited to 'src/device/pro.rs')
0 files changed, 0 insertions, 0 deletions