Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
fido2.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Siratul Islam <email@sirat.me>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_AUTHENTICATION_FIDO2_FIDO2_H_
14#define ZEPHYR_INCLUDE_AUTHENTICATION_FIDO2_FIDO2_H_
15
17
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
42
55typedef void (*fido2_state_callback_t)(enum fido2_runtime_state state, void *user_data);
56
65int fido2_init(void);
66
75int fido2_start(void);
76
85int fido2_stop(void);
86
101
110
121int fido2_reset(void);
122
123#ifdef __cplusplus
124}
125#endif
126
128
129#endif /* ZEPHYR_INCLUDE_AUTHENTICATION_FIDO2_FIDO2_H_ */
FIDO2 shared type definitions.
int fido2_init(void)
Initialize the FIDO2 subsystem.
int fido2_stop(void)
Stop the FIDO2 authenticator.
fido2_runtime_state
Runtime states exposed by the FIDO2 subsystem.
Definition fido2.h:32
int fido2_set_state_callback(fido2_state_callback_t cb, void *user_data)
Set or clear a single FIDO2 runtime state callback.
void(* fido2_state_callback_t)(enum fido2_runtime_state state, void *user_data)
FIDO2 runtime state callback.
Definition fido2.h:55
int fido2_start(void)
Start the FIDO2 authenticator.
enum fido2_runtime_state fido2_get_state(void)
Get the current FIDO2 runtime state.
int fido2_reset(void)
Perform a factory reset.
@ FIDO2_RUNTIME_STATE_PROCESSING
FIDO2 is processing a command after user presence.
Definition fido2.h:40
@ FIDO2_RUNTIME_STATE_IDLE
FIDO2 is running and idle.
Definition fido2.h:36
@ FIDO2_RUNTIME_STATE_WAITING_USER_PRESENCE
FIDO2 is waiting for user presence confirmation.
Definition fido2.h:38
@ FIDO2_RUNTIME_STATE_STOPPED
FIDO2 is stopped and not handling commands.
Definition fido2.h:34
state
Definition parser_state.h:29