diff options
author | Robin Krahl <me@robin-krahl.de> | 2018-05-25 12:15:08 +0200 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2018-05-25 12:15:08 +0200 |
commit | 98917cffc50e7934105e874abd4a4b6ed72edc21 (patch) | |
tree | ad6bc14cf0eb0e366b371800f65d43190cf00917 /include/LibraryException.h | |
parent | f6e09cc2fb4541a15a57415439b575d7bf44b07f (diff) | |
download | libnitrokey-98917cffc50e7934105e874abd4a4b6ed72edc21.tar.gz libnitrokey-98917cffc50e7934105e874abd4a4b6ed72edc21.tar.bz2 |
Add getter for Storage status to C API
The C++ API currently provides the Storage status in
NitrokeyManager::get_status_storage(). The C API only provides a string
version of this data (NK_get_status_storage_as_string). This patch adds
a struct to the C API that can store the storage status and a function
that can retrieve it.
The interpretation of the fields of the internal struct is based on the
following code in the Nitrokey Storage firmware:
- src/HighLevelFunctions/FlashStorage.h, lines 73 to 90 (struct
definition with comments)
- src/OTP/report_protocol.c, lines 241 to 376 (debug output of the
data)
Diffstat (limited to 'include/LibraryException.h')
0 files changed, 0 insertions, 0 deletions