diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-05 13:01:27 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-05 13:22:40 +0200 |
commit | 994eeab788b1de606f365fc42c523ac966b6555f (patch) | |
tree | 1388c9c9aede213ea1c8b513ce9c8af65f63fc47 /NK_C_API.h | |
parent | 8f095c90866579b08a0b3a3e160f49b7e5d5220b (diff) | |
download | libnitrokey-994eeab788b1de606f365fc42c523ac966b6555f.tar.gz libnitrokey-994eeab788b1de606f365fc42c523ac966b6555f.tar.bz2 |
Update general config commands - bool -> uint8_t
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.h')
-rw-r--r-- | NK_C_API.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -85,19 +85,21 @@ extern int NK_unlock_user_password(const char *admin_password, const char *new_u /** * Write general config to the device - * @param numlock set True to send OTP code after double pressing numlock - * @param capslock set True to send OTP code after double pressing capslock - * @param scrolllock set True to send OTP code after double pressing scrolllock + * @param numlock set value in range [0-1] to send HOTP code from slot 'numlock' after double pressing numlock + * or outside the range to disable this function + * @param capslock similar to numlock but with capslock + * @param scrolllock similar to numlock but with scrolllock * @param enable_user_password set True to enable OTP PIN protection (request PIN each OTP code request) * @param delete_user_password set True to disable OTP PIN protection (request PIN each OTP code request) * @param admin_temporary_password current admin temporary password * @return command processing error code */ -extern int NK_write_config(bool numlock, bool capslock, bool scrolllock, +extern int NK_write_config(uint8_t numlock, uint8_t capslock, uint8_t scrolllock, bool enable_user_password, bool delete_user_password, const char *admin_temporary_password); /** - * Get currently set config - status of function Numlock/Capslock/Scrollock OTP sending and PIN protected OTP + * Get currently set config - status of function Numlock/Capslock/Scrollock OTP sending and is enabled PIN protected OTP + * @see NK_write_config * @return uint8_t general_config[5]: * uint8_t numlock; uint8_t capslock; |