diff options
author | Daniel Mueller <deso@posteo.net> | 2019-10-13 05:13:36 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-10-13 05:13:36 -0700 |
commit | 9f3991a74fa5124e298582afa60b229dd005be40 (patch) | |
tree | 8738fafcad5982c78ace218fd83f84d9ea5c5b3f /libc | |
parent | c46803a4557c9cd14df5e46192384a831b329179 (diff) | |
download | nitrocli-9f3991a74fa5124e298582afa60b229dd005be40.tar.gz nitrocli-9f3991a74fa5124e298582afa60b229dd005be40.tar.bz2 |
Properly pad user supplied hexadecimal strings to otp set subcommand
The library ultimately taking care of communicating with the Nitrokey
device, libnitrokey, unconditionally expects hexadecimal strings
supplied as part of the configuration of an OTP slot to have an even
number of bytes.
Users should not be aware of this detail and so with this change we take
care of padding the supplied string with a leading zero to make such a
configuration go through without an error.
Diffstat (limited to 'libc')
0 files changed, 0 insertions, 0 deletions