pub unsafe extern "C" fn NK_write_totp_slot(
    slot_number: u8,
    slot_name: *const c_char,
    secret: *const c_char,
    time_window: u16,
    use_8_digits: bool,
    use_enter: bool,
    use_tokenID: bool,
    token_ID: *const c_char,
    temporary_password: *const c_char
) -> c_int
Expand description

Write TOTP slot data to the device @param slot_number TOTP slot number, slot_number<15, 0-numbered @param slot_name char[15] desired slot name. C string (requires ending ‘\0’; 16 bytes). @param secret char[40] 160-bit or 320-bit (currently Pro v0.8 only) secret as a hex string. C string (requires ending ‘\0’; 41 bytes). See NitrokeyManager::is_320_OTP_secret_supported. @param time_window uint16_t time window for this TOTP @param use_8_digits should returned codes be 6 (false) or 8 digits (true) @param use_enter press ENTER key after sending OTP code using double-pressed scroll/num/capslock @param use_tokenID @see token_ID @param token_ID @see https://openauthentication.org/token-specs/, ‘Class A’ section @param temporary_password char[20] admin temporary password @return command processing error code