Zephyr API
4.5.99
A Scalable Open Source RTOS
Toggle main menu visibility
Loading...
Searching...
No Matches
fido2.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2026 Siratul Islam <
[email protected]
>
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
16
#include <
zephyr/authentication/fido2/fido2_types.h
>
17
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
32
enum
fido2_runtime_state
{
34
FIDO2_RUNTIME_STATE_STOPPED
= 0,
36
FIDO2_RUNTIME_STATE_IDLE
,
38
FIDO2_RUNTIME_STATE_WAITING_USER_PRESENCE
,
40
FIDO2_RUNTIME_STATE_PROCESSING
,
41
};
42
55
typedef
void (*
fido2_state_callback_t
)(
enum
fido2_runtime_state
state
,
void
*user_data);
56
65
int
fido2_init
(
void
);
66
75
int
fido2_start
(
void
);
76
85
int
fido2_stop
(
void
);
86
100
int
fido2_set_state_callback
(
fido2_state_callback_t
cb,
void
*user_data);
101
109
enum
fido2_runtime_state
fido2_get_state
(
void
);
110
121
int
fido2_reset
(
void
);
122
123
#ifdef __cplusplus
124
}
125
#endif
126
128
129
#endif
/* ZEPHYR_INCLUDE_AUTHENTICATION_FIDO2_FIDO2_H_ */
fido2_types.h
FIDO2 shared type definitions.
fido2_init
int fido2_init(void)
Initialize the FIDO2 subsystem.
fido2_stop
int fido2_stop(void)
Stop the FIDO2 authenticator.
fido2_runtime_state
fido2_runtime_state
Runtime states exposed by the FIDO2 subsystem.
Definition
fido2.h:32
fido2_set_state_callback
int fido2_set_state_callback(fido2_state_callback_t cb, void *user_data)
Set or clear a single FIDO2 runtime state callback.
fido2_state_callback_t
void(* fido2_state_callback_t)(enum fido2_runtime_state state, void *user_data)
FIDO2 runtime state callback.
Definition
fido2.h:55
fido2_start
int fido2_start(void)
Start the FIDO2 authenticator.
fido2_get_state
enum fido2_runtime_state fido2_get_state(void)
Get the current FIDO2 runtime state.
fido2_reset
int fido2_reset(void)
Perform a factory reset.
FIDO2_RUNTIME_STATE_PROCESSING
@ FIDO2_RUNTIME_STATE_PROCESSING
FIDO2 is processing a command after user presence.
Definition
fido2.h:40
FIDO2_RUNTIME_STATE_IDLE
@ FIDO2_RUNTIME_STATE_IDLE
FIDO2 is running and idle.
Definition
fido2.h:36
FIDO2_RUNTIME_STATE_WAITING_USER_PRESENCE
@ FIDO2_RUNTIME_STATE_WAITING_USER_PRESENCE
FIDO2 is waiting for user presence confirmation.
Definition
fido2.h:38
FIDO2_RUNTIME_STATE_STOPPED
@ FIDO2_RUNTIME_STATE_STOPPED
FIDO2 is stopped and not handling commands.
Definition
fido2.h:34
state
state
Definition
parser_state.h:29
zephyr
authentication
fido2
fido2.h
Generated on
for Zephyr API by
1.17.0