10afa8e06SEd Maste /* 20afa8e06SEd Maste * Copyright (c) 2020 Yubico AB. All rights reserved. 3*2ccfa855SEd Maste * SPDX-License-Identifier: BSD-2-Clause 4*2ccfa855SEd Maste * 5*2ccfa855SEd Maste * Redistribution and use in source and binary forms, with or without 6*2ccfa855SEd Maste * modification, are permitted provided that the following conditions are 7*2ccfa855SEd Maste * met: 8*2ccfa855SEd Maste * 9*2ccfa855SEd Maste * 1. Redistributions of source code must retain the above copyright 10*2ccfa855SEd Maste * notice, this list of conditions and the following disclaimer. 11*2ccfa855SEd Maste * 2. Redistributions in binary form must reproduce the above copyright 12*2ccfa855SEd Maste * notice, this list of conditions and the following disclaimer in 13*2ccfa855SEd Maste * the documentation and/or other materials provided with the 14*2ccfa855SEd Maste * distribution. 15*2ccfa855SEd Maste * 16*2ccfa855SEd Maste * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17*2ccfa855SEd Maste * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18*2ccfa855SEd Maste * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19*2ccfa855SEd Maste * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20*2ccfa855SEd Maste * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21*2ccfa855SEd Maste * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22*2ccfa855SEd Maste * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23*2ccfa855SEd Maste * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24*2ccfa855SEd Maste * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25*2ccfa855SEd Maste * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26*2ccfa855SEd Maste * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 270afa8e06SEd Maste */ 280afa8e06SEd Maste 290afa8e06SEd Maste #ifndef _FIDO_CONFIG_H 300afa8e06SEd Maste #define _FIDO_CONFIG_H 310afa8e06SEd Maste 320afa8e06SEd Maste #ifdef _FIDO_INTERNAL 330afa8e06SEd Maste #include "blob.h" 340afa8e06SEd Maste #include "fido/err.h" 350afa8e06SEd Maste #include "fido/param.h" 360afa8e06SEd Maste #include "fido/types.h" 370afa8e06SEd Maste #else 380afa8e06SEd Maste #include <fido.h> 390afa8e06SEd Maste #include <fido/err.h> 400afa8e06SEd Maste #include <fido/param.h> 410afa8e06SEd Maste #endif 420afa8e06SEd Maste 430afa8e06SEd Maste #ifdef __cplusplus 440afa8e06SEd Maste extern "C" { 450afa8e06SEd Maste #endif /* __cplusplus */ 460afa8e06SEd Maste 470afa8e06SEd Maste int fido_dev_enable_entattest(fido_dev_t *, const char *); 480afa8e06SEd Maste int fido_dev_force_pin_change(fido_dev_t *, const char *); 490afa8e06SEd Maste int fido_dev_toggle_always_uv(fido_dev_t *, const char *); 500afa8e06SEd Maste int fido_dev_set_pin_minlen(fido_dev_t *, size_t, const char *); 51f540a430SEd Maste int fido_dev_set_pin_minlen_rpid(fido_dev_t *, const char * const *, size_t, 52f540a430SEd Maste const char *); 530afa8e06SEd Maste 540afa8e06SEd Maste #ifdef __cplusplus 550afa8e06SEd Maste } /* extern "C" */ 560afa8e06SEd Maste #endif /* __cplusplus */ 570afa8e06SEd Maste 580afa8e06SEd Maste #endif /* !_FIDO_CONFIG_H */ 59