xtotpRegisterSecret.h (1492B)
1 /** 2 * @file xtotpRegisterSecret.h 3 * @author Adrian STEINER (steia19@bfh.ch) 4 * @brief Settings state machine to register new secret with a corresponding 5 * althorihm Changing and selecting is as well intergrated in this module 6 * @version 0.1 7 * @date 24-07-2025 8 * 9 * @copyright (C) 2025 Adrian STEINER 10 * This program is free software: you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation, either version 3 of the License, or 13 * (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with this program. If not, see <https: //www.gnu.org/licenses/>. 22 * 23 */ 24 25 #ifndef XTOTP_REGISTER_SECRET_H 26 #define XTOTP_REGISTER_SECRET_H 27 28 #ifdef __cplusplus 29 extern "C" { 30 #endif 31 32 #include "xtotp.h" 33 34 /** 35 * @brief Process the selection or registration of a algorithm with a new secret 36 * 37 * @param appData 38 * @param inputState 39 * @param inputButton 40 */ 41 void settings_processSecretHandling(xtotp_Data *appData, 42 inputLevelState inputState, 43 inputButtonPos inputButton); 44 45 #ifdef __cplusplus 46 } 47 #endif 48 49 #endif /* XTOTP_REGISTER_SECRET_H*/