diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-02 13:38:22 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-05 10:17:30 +0200 |
commit | b1fbfa8eede1f2f9d003e49c027d5e4cb8a56bfe (patch) | |
tree | 4bb4e70f50de02ef09824256072f489242a13187 /NK_C_API.cc | |
parent | 24b1ff2b610b3af78bdb894e17a31ea937dd0d3e (diff) | |
download | libnitrokey-b1fbfa8eede1f2f9d003e49c027d5e4cb8a56bfe.tar.gz libnitrokey-b1fbfa8eede1f2f9d003e49c027d5e4cb8a56bfe.tar.bz2 |
Support for command: is_aes_supported
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index 81a18b5..0e3a642 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -415,5 +415,13 @@ extern int NK_erase_password_safe_slot(uint8_t slot_number) { }); } +extern int NK_is_AES_supported(const char *user_password) { + auto m = NitrokeyManager::instance(); + return get_with_result([&](){ + return (uint8_t) m->is_AES_supported(user_password); + }); +} + + } |