1FIDO_INIT(3) BSD Library Functions Manual FIDO_INIT(3)
2
4 fido_init, fido_set_log_handler — initialise the FIDO2 library
5
7 #include <fido.h>
8
9 typedef void fido_log_handler_t(const char *);
10
11 void
12 fido_init(int flags);
13
14 void
15 fido_set_log_handler(fido_log_handler_t *handler);
16
18 The fido_init() function initialises the libfido2 library. Its invoca‐
19 tion must precede that of any other libfido2 function in the context of
20 the executing thread.
21
22 If FIDO_DEBUG is set in flags, then debug output will be emitted by
23 libfido2 on stderr. Alternatively, the FIDO_DEBUG environment variable
24 may be set.
25
26 If FIDO_DISABLE_U2F_FALLBACK is set in flags, then libfido2 will not
27 fallback to U2F in fido_dev_open(3) if a device claims to support FIDO2
28 but fails to respond to a CTAP 2.0 greeting.
29
30 The fido_set_log_handler() function causes handler to be called for each
31 log line generated in the context of the executing thread. Lines passed
32 to handler include a trailing newline character and are not printed by
33 libfido2 on stderr.
34
36 fido_assert_new(3), fido_cred_new(3), fido_dev_info_manifest(3),
37 fido_dev_open(3)
38
39BSD May 25, 2018 BSD