Path: blob/main/contrib/libfido2/src/fido/config.h
39507 views
/*1* Copyright (c) 2020 Yubico AB. All rights reserved.2* SPDX-License-Identifier: BSD-2-Clause3*4* Redistribution and use in source and binary forms, with or without5* modification, are permitted provided that the following conditions are6* met:7*8* 1. Redistributions of source code must retain the above copyright9* notice, this list of conditions and the following disclaimer.10* 2. Redistributions in binary form must reproduce the above copyright11* notice, this list of conditions and the following disclaimer in12* the documentation and/or other materials provided with the13* distribution.14*15* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS16* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT17* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR18* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT19* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,20* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT21* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,22* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY23* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE25* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.26*/2728#ifndef _FIDO_CONFIG_H29#define _FIDO_CONFIG_H3031#ifdef _FIDO_INTERNAL32#include "blob.h"33#include "fido/err.h"34#include "fido/param.h"35#include "fido/types.h"36#else37#include <fido.h>38#include <fido/err.h>39#include <fido/param.h>40#endif4142#ifdef __cplusplus43extern "C" {44#endif /* __cplusplus */4546int fido_dev_enable_entattest(fido_dev_t *, const char *);47int fido_dev_force_pin_change(fido_dev_t *, const char *);48int fido_dev_toggle_always_uv(fido_dev_t *, const char *);49int fido_dev_set_pin_minlen(fido_dev_t *, size_t, const char *);50int fido_dev_set_pin_minlen_rpid(fido_dev_t *, const char * const *, size_t,51const char *);5253#ifdef __cplusplus54} /* extern "C" */55#endif /* __cplusplus */5657#endif /* !_FIDO_CONFIG_H */585960