Zephyr API Documentation 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
11
12#ifndef ZEPHYR_INCLUDE_AUTHENTICATION_FIDO2_FIDO2_H_
13#define ZEPHYR_INCLUDE_AUTHENTICATION_FIDO2_FIDO2_H_
14
16
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
41
54typedef void (*fido2_state_callback_t)(enum fido2_runtime_state state, void *user_data);
55
64int fido2_init(void);
65
74int fido2_start(void);
75
84int fido2_stop(void);
85
100
109
120int fido2_reset(void);
121
122#ifdef __cplusplus
123}
124#endif
125
127
128#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:31
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:54
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:39
@ FIDO2_RUNTIME_STATE_IDLE
FIDO2 is running and idle.
Definition fido2.h:35
@ FIDO2_RUNTIME_STATE_WAITING_USER_PRESENCE
FIDO2 is waiting for user presence confirmation.
Definition fido2.h:37
@ FIDO2_RUNTIME_STATE_STOPPED
FIDO2 is stopped and not handling commands.
Definition fido2.h:33
state
Definition parser_state.h:29