diff options
author | Robin Krahl <me@robin-krahl.de> | 2019-01-24 16:01:21 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2019-01-24 16:01:21 +0100 |
commit | 3b0e017c7c87cb93d48e4384d3ef312ba93d9875 (patch) | |
tree | fc83b9f2a747e6f03f6382e770b1fb1cd5efc850 /NK_C_API.h | |
parent | dee882fd21cd932c2642d170620862e783284d3b (diff) | |
download | libnitrokey-3b0e017c7c87cb93d48e4384d3ef312ba93d9875.tar.gz libnitrokey-3b0e017c7c87cb93d48e4384d3ef312ba93d9875.tar.bz2 |
Export PWS slot count in C API
The C++ API already defines the number of slots in device_proto.h. This
patch adds it to the C API. It is especially important to have this
constant in the C API as it is the length of the array returned by
NK_get_password_safe_slot_status.
Diffstat (limited to 'NK_C_API.h')
-rw-r--r-- | NK_C_API.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -37,6 +37,11 @@ extern "C" { #endif + /** + * The number of slots in the password safe. + */ + extern const uint8_t NK_PWS_SLOT_COUNT; + static const int MAXIMUM_STR_REPLY_LENGTH = 8192; /** |