xref: /freebsd/contrib/libfido2/src/fido/config.h (revision 2008043f386721d58158e37e0d7e50df8095942d)
1 /*
2  * Copyright (c) 2020 Yubico AB. All rights reserved.
3  * SPDX-License-Identifier: BSD-2-Clause
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met:
8  *
9  *    1. Redistributions of source code must retain the above copyright
10  *       notice, this list of conditions and the following disclaimer.
11  *    2. Redistributions in binary form must reproduce the above copyright
12  *       notice, this list of conditions and the following disclaimer in
13  *       the documentation and/or other materials provided with the
14  *       distribution.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20  * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #ifndef _FIDO_CONFIG_H
30 #define _FIDO_CONFIG_H
31 
32 #ifdef _FIDO_INTERNAL
33 #include "blob.h"
34 #include "fido/err.h"
35 #include "fido/param.h"
36 #include "fido/types.h"
37 #else
38 #include <fido.h>
39 #include <fido/err.h>
40 #include <fido/param.h>
41 #endif
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif /* __cplusplus */
46 
47 int fido_dev_enable_entattest(fido_dev_t *, const char *);
48 int fido_dev_force_pin_change(fido_dev_t *, const char *);
49 int fido_dev_toggle_always_uv(fido_dev_t *, const char *);
50 int fido_dev_set_pin_minlen(fido_dev_t *, size_t, const char *);
51 int fido_dev_set_pin_minlen_rpid(fido_dev_t *, const char * const *, size_t,
52     const char *);
53 
54 #ifdef __cplusplus
55 } /* extern "C" */
56 #endif /* __cplusplus */
57 
58 #endif /* !_FIDO_CONFIG_H */
59