diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-16 03:16:01 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-16 20:17:16 +0100 |
commit | 79a3298ab5973a47cb68ef48e554ec88fb7e99a6 (patch) | |
tree | 1b513b99f19660c74d2b6f20b2ecce9268438ad0 /nitrokey-sys | |
parent | 3c8092cd937d6f449b1959eab9e7e15549970d85 (diff) | |
download | nitrokey-rs-79a3298ab5973a47cb68ef48e554ec88fb7e99a6.tar.gz nitrokey-rs-79a3298ab5973a47cb68ef48e554ec88fb7e99a6.tar.bz2 |
pws: Interpret empty strings as unprogrammed slots
Until the last commit, all empty strings returned by the library were
interepreted as errors. As the PWS functions return empty strings for
unprogrammed slots, the methods to access the PWS data returned an error
when querying a slot that is not programmed. Since the last commit,
they return an empty string instead.
This patch restores the old behavior by returning an error instead of an
empty string. Yet we change the error variant: SlotNotProgrammed
instead of Undefined.
Diffstat (limited to 'nitrokey-sys')
0 files changed, 0 insertions, 0 deletions