1 .\" Copyright (c) 2018 Yubico AB. All rights reserved.
3 .\" Redistribution and use in source and binary forms, with or without
4 .\" modification, are permitted provided that the following conditions are
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in
11 .\" the documentation and/or other materials provided with the
14 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15 .\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17 .\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
18 .\" HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
19 .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
20 .\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 .\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 .\" SPDX-License-Identifier: BSD-2-Clause
28 .Dd $Mdocdate: May 25 2018 $
33 .Nm fido_set_log_handler
34 .Nd initialise the FIDO2 library
38 typedef void fido_log_handler_t(const char *);
42 .Fn fido_init "int flags"
44 .Fn fido_set_log_handler "fido_log_handler_t *handler"
48 function initialises the
51 Its invocation must precede that of any other
53 function in the context of the executing thread.
60 debug output will be emitted by
66 environment variable may be set.
69 .Dv FIDO_DISABLE_U2F_FALLBACK
74 will not fallback to U2F in
76 if a device claims to support FIDO2 but fails to respond to
80 .Fn fido_set_log_handler
83 to be called for each log line generated in the context of the
87 include a trailing newline character and are not printed by
92 .Xr fido_assert_new 3 ,
94 .Xr fido_dev_info_manifest 3 ,