diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-09 15:15:55 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-09 15:15:55 -0800 |
commit | 886788a95a3c79a7664cbcd0bfffa1e500461adf (patch) | |
tree | 35b5f3704e27c185bd71c7b18f59da57415ec651 /nitrokey-sys/libnitrokey-v3.4.1/libnitrokey/stick20_commands.h | |
parent | ac7025cbe1bc46d25dd978138c6b397d77853232 (diff) | |
download | nitrocli-886788a95a3c79a7664cbcd0bfffa1e500461adf.tar.gz nitrocli-886788a95a3c79a7664cbcd0bfffa1e500461adf.tar.bz2 |
Simplify try_with_pin_and_data function
The try_with_pin_and_data function is a fairly complex beast. Part of
that complexity stems from the returned Result value, whose error part
not only contains the error but also the previously passed in data. As
it turns out, though, this data as returned is never actually consumed
by any client.
Hence, this change simplifies the logic slightly by removing all the
additional complexity that this tuple return entailed.
Diffstat (limited to 'nitrokey-sys/libnitrokey-v3.4.1/libnitrokey/stick20_commands.h')
0 files changed, 0 insertions, 0 deletions