10afa8e06SEd Maste /* 22ccfa855SEd Maste * Copyright (c) 2018-2022 Yubico AB. All rights reserved. 32ccfa855SEd Maste * SPDX-License-Identifier: BSD-2-Clause 42ccfa855SEd Maste * 52ccfa855SEd Maste * Redistribution and use in source and binary forms, with or without 62ccfa855SEd Maste * modification, are permitted provided that the following conditions are 72ccfa855SEd Maste * met: 82ccfa855SEd Maste * 92ccfa855SEd Maste * 1. Redistributions of source code must retain the above copyright 102ccfa855SEd Maste * notice, this list of conditions and the following disclaimer. 112ccfa855SEd Maste * 2. Redistributions in binary form must reproduce the above copyright 122ccfa855SEd Maste * notice, this list of conditions and the following disclaimer in 132ccfa855SEd Maste * the documentation and/or other materials provided with the 142ccfa855SEd Maste * distribution. 152ccfa855SEd Maste * 162ccfa855SEd Maste * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172ccfa855SEd Maste * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182ccfa855SEd Maste * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192ccfa855SEd Maste * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202ccfa855SEd Maste * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212ccfa855SEd Maste * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222ccfa855SEd Maste * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232ccfa855SEd Maste * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242ccfa855SEd Maste * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252ccfa855SEd Maste * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262ccfa855SEd Maste * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 270afa8e06SEd Maste */ 280afa8e06SEd Maste 290afa8e06SEd Maste #ifndef _FIDO_H 300afa8e06SEd Maste #define _FIDO_H 310afa8e06SEd Maste 320afa8e06SEd Maste #include <openssl/ec.h> 330afa8e06SEd Maste #include <openssl/evp.h> 340afa8e06SEd Maste 350afa8e06SEd Maste #include <stdbool.h> 360afa8e06SEd Maste #include <stdint.h> 370afa8e06SEd Maste #include <stdlib.h> 380afa8e06SEd Maste 390afa8e06SEd Maste #ifdef _FIDO_INTERNAL 400afa8e06SEd Maste #include <sys/types.h> 410afa8e06SEd Maste 420afa8e06SEd Maste #include <cbor.h> 430afa8e06SEd Maste #include <limits.h> 440afa8e06SEd Maste 450afa8e06SEd Maste #include "../openbsd-compat/openbsd-compat.h" 460afa8e06SEd Maste #include "blob.h" 470afa8e06SEd Maste #include "iso7816.h" 480afa8e06SEd Maste #include "extern.h" 490afa8e06SEd Maste #endif 500afa8e06SEd Maste 510afa8e06SEd Maste #include "fido/err.h" 520afa8e06SEd Maste #include "fido/param.h" 530afa8e06SEd Maste #include "fido/types.h" 540afa8e06SEd Maste 550afa8e06SEd Maste #ifdef __cplusplus 560afa8e06SEd Maste extern "C" { 570afa8e06SEd Maste #endif /* __cplusplus */ 580afa8e06SEd Maste 590afa8e06SEd Maste fido_assert_t *fido_assert_new(void); 600afa8e06SEd Maste fido_cred_t *fido_cred_new(void); 610afa8e06SEd Maste fido_dev_t *fido_dev_new(void); 620afa8e06SEd Maste fido_dev_t *fido_dev_new_with_info(const fido_dev_info_t *); 630afa8e06SEd Maste fido_dev_info_t *fido_dev_info_new(size_t); 640afa8e06SEd Maste fido_cbor_info_t *fido_cbor_info_new(void); 653e696dfbSEd Maste void *fido_dev_io_handle(const fido_dev_t *); 660afa8e06SEd Maste 670afa8e06SEd Maste void fido_assert_free(fido_assert_t **); 680afa8e06SEd Maste void fido_cbor_info_free(fido_cbor_info_t **); 690afa8e06SEd Maste void fido_cred_free(fido_cred_t **); 700afa8e06SEd Maste void fido_dev_force_fido2(fido_dev_t *); 710afa8e06SEd Maste void fido_dev_force_u2f(fido_dev_t *); 720afa8e06SEd Maste void fido_dev_free(fido_dev_t **); 730afa8e06SEd Maste void fido_dev_info_free(fido_dev_info_t **, size_t); 740afa8e06SEd Maste 750afa8e06SEd Maste /* fido_init() flags. */ 760afa8e06SEd Maste #define FIDO_DEBUG 0x01 770afa8e06SEd Maste #define FIDO_DISABLE_U2F_FALLBACK 0x02 780afa8e06SEd Maste 790afa8e06SEd Maste void fido_init(int); 800afa8e06SEd Maste void fido_set_log_handler(fido_log_handler_t *); 810afa8e06SEd Maste 820afa8e06SEd Maste const unsigned char *fido_assert_authdata_ptr(const fido_assert_t *, size_t); 83*60a517b6SEd Maste const unsigned char *fido_assert_authdata_raw_ptr(const fido_assert_t *, 84*60a517b6SEd Maste size_t); 850afa8e06SEd Maste const unsigned char *fido_assert_clientdata_hash_ptr(const fido_assert_t *); 860afa8e06SEd Maste const unsigned char *fido_assert_hmac_secret_ptr(const fido_assert_t *, size_t); 870afa8e06SEd Maste const unsigned char *fido_assert_id_ptr(const fido_assert_t *, size_t); 880afa8e06SEd Maste const unsigned char *fido_assert_largeblob_key_ptr(const fido_assert_t *, size_t); 890afa8e06SEd Maste const unsigned char *fido_assert_sig_ptr(const fido_assert_t *, size_t); 900afa8e06SEd Maste const unsigned char *fido_assert_user_id_ptr(const fido_assert_t *, size_t); 910afa8e06SEd Maste const unsigned char *fido_assert_blob_ptr(const fido_assert_t *, size_t); 920afa8e06SEd Maste 932ccfa855SEd Maste char **fido_cbor_info_certs_name_ptr(const fido_cbor_info_t *); 940afa8e06SEd Maste char **fido_cbor_info_extensions_ptr(const fido_cbor_info_t *); 950afa8e06SEd Maste char **fido_cbor_info_options_name_ptr(const fido_cbor_info_t *); 960afa8e06SEd Maste char **fido_cbor_info_transports_ptr(const fido_cbor_info_t *); 970afa8e06SEd Maste char **fido_cbor_info_versions_ptr(const fido_cbor_info_t *); 980afa8e06SEd Maste const bool *fido_cbor_info_options_value_ptr(const fido_cbor_info_t *); 990afa8e06SEd Maste const char *fido_assert_rp_id(const fido_assert_t *); 1000afa8e06SEd Maste const char *fido_assert_user_display_name(const fido_assert_t *, size_t); 1010afa8e06SEd Maste const char *fido_assert_user_icon(const fido_assert_t *, size_t); 1020afa8e06SEd Maste const char *fido_assert_user_name(const fido_assert_t *, size_t); 1030afa8e06SEd Maste const char *fido_cbor_info_algorithm_type(const fido_cbor_info_t *, size_t); 1040afa8e06SEd Maste const char *fido_cred_display_name(const fido_cred_t *); 1050afa8e06SEd Maste const char *fido_cred_fmt(const fido_cred_t *); 1060afa8e06SEd Maste const char *fido_cred_rp_id(const fido_cred_t *); 1070afa8e06SEd Maste const char *fido_cred_rp_name(const fido_cred_t *); 1080afa8e06SEd Maste const char *fido_cred_user_name(const fido_cred_t *); 1090afa8e06SEd Maste const char *fido_dev_info_manufacturer_string(const fido_dev_info_t *); 1100afa8e06SEd Maste const char *fido_dev_info_path(const fido_dev_info_t *); 1110afa8e06SEd Maste const char *fido_dev_info_product_string(const fido_dev_info_t *); 1120afa8e06SEd Maste const fido_dev_info_t *fido_dev_info_ptr(const fido_dev_info_t *, size_t); 1130afa8e06SEd Maste const uint8_t *fido_cbor_info_protocols_ptr(const fido_cbor_info_t *); 1142ccfa855SEd Maste const uint64_t *fido_cbor_info_certs_value_ptr(const fido_cbor_info_t *); 1150afa8e06SEd Maste const unsigned char *fido_cbor_info_aaguid_ptr(const fido_cbor_info_t *); 116f540a430SEd Maste const unsigned char *fido_cred_aaguid_ptr(const fido_cred_t *); 117f540a430SEd Maste const unsigned char *fido_cred_attstmt_ptr(const fido_cred_t *); 1180afa8e06SEd Maste const unsigned char *fido_cred_authdata_ptr(const fido_cred_t *); 1190afa8e06SEd Maste const unsigned char *fido_cred_authdata_raw_ptr(const fido_cred_t *); 1200afa8e06SEd Maste const unsigned char *fido_cred_clientdata_hash_ptr(const fido_cred_t *); 1210afa8e06SEd Maste const unsigned char *fido_cred_id_ptr(const fido_cred_t *); 122f540a430SEd Maste const unsigned char *fido_cred_largeblob_key_ptr(const fido_cred_t *); 1230afa8e06SEd Maste const unsigned char *fido_cred_pubkey_ptr(const fido_cred_t *); 1240afa8e06SEd Maste const unsigned char *fido_cred_sig_ptr(const fido_cred_t *); 125f540a430SEd Maste const unsigned char *fido_cred_user_id_ptr(const fido_cred_t *); 1260afa8e06SEd Maste const unsigned char *fido_cred_x5c_ptr(const fido_cred_t *); 1270afa8e06SEd Maste 1280afa8e06SEd Maste int fido_assert_allow_cred(fido_assert_t *, const unsigned char *, size_t); 1292ccfa855SEd Maste int fido_assert_empty_allow_list(fido_assert_t *); 1300afa8e06SEd Maste int fido_assert_set_authdata(fido_assert_t *, size_t, const unsigned char *, 1310afa8e06SEd Maste size_t); 1320afa8e06SEd Maste int fido_assert_set_authdata_raw(fido_assert_t *, size_t, const unsigned char *, 1330afa8e06SEd Maste size_t); 1340afa8e06SEd Maste int fido_assert_set_clientdata(fido_assert_t *, const unsigned char *, size_t); 1350afa8e06SEd Maste int fido_assert_set_clientdata_hash(fido_assert_t *, const unsigned char *, 1360afa8e06SEd Maste size_t); 1370afa8e06SEd Maste int fido_assert_set_count(fido_assert_t *, size_t); 1380afa8e06SEd Maste int fido_assert_set_extensions(fido_assert_t *, int); 1390afa8e06SEd Maste int fido_assert_set_hmac_salt(fido_assert_t *, const unsigned char *, size_t); 1400afa8e06SEd Maste int fido_assert_set_hmac_secret(fido_assert_t *, size_t, const unsigned char *, 1410afa8e06SEd Maste size_t); 1420afa8e06SEd Maste int fido_assert_set_options(fido_assert_t *, bool, bool); 1430afa8e06SEd Maste int fido_assert_set_rp(fido_assert_t *, const char *); 1440afa8e06SEd Maste int fido_assert_set_up(fido_assert_t *, fido_opt_t); 1450afa8e06SEd Maste int fido_assert_set_uv(fido_assert_t *, fido_opt_t); 1460afa8e06SEd Maste int fido_assert_set_sig(fido_assert_t *, size_t, const unsigned char *, size_t); 147*60a517b6SEd Maste int fido_assert_set_winhello_appid(fido_assert_t *, const char *); 1480afa8e06SEd Maste int fido_assert_verify(const fido_assert_t *, size_t, int, const void *); 1490afa8e06SEd Maste int fido_cbor_info_algorithm_cose(const fido_cbor_info_t *, size_t); 1502ccfa855SEd Maste int fido_cred_empty_exclude_list(fido_cred_t *); 1510afa8e06SEd Maste int fido_cred_exclude(fido_cred_t *, const unsigned char *, size_t); 1520afa8e06SEd Maste int fido_cred_prot(const fido_cred_t *); 153f540a430SEd Maste int fido_cred_set_attstmt(fido_cred_t *, const unsigned char *, size_t); 1540afa8e06SEd Maste int fido_cred_set_authdata(fido_cred_t *, const unsigned char *, size_t); 1550afa8e06SEd Maste int fido_cred_set_authdata_raw(fido_cred_t *, const unsigned char *, size_t); 1560afa8e06SEd Maste int fido_cred_set_blob(fido_cred_t *, const unsigned char *, size_t); 1570afa8e06SEd Maste int fido_cred_set_clientdata(fido_cred_t *, const unsigned char *, size_t); 1580afa8e06SEd Maste int fido_cred_set_clientdata_hash(fido_cred_t *, const unsigned char *, size_t); 1590afa8e06SEd Maste int fido_cred_set_extensions(fido_cred_t *, int); 1600afa8e06SEd Maste int fido_cred_set_fmt(fido_cred_t *, const char *); 1610afa8e06SEd Maste int fido_cred_set_id(fido_cred_t *, const unsigned char *, size_t); 1620afa8e06SEd Maste int fido_cred_set_options(fido_cred_t *, bool, bool); 163f540a430SEd Maste int fido_cred_set_pin_minlen(fido_cred_t *, size_t); 1640afa8e06SEd Maste int fido_cred_set_prot(fido_cred_t *, int); 1650afa8e06SEd Maste int fido_cred_set_rk(fido_cred_t *, fido_opt_t); 1660afa8e06SEd Maste int fido_cred_set_rp(fido_cred_t *, const char *, const char *); 1670afa8e06SEd Maste int fido_cred_set_sig(fido_cred_t *, const unsigned char *, size_t); 1680afa8e06SEd Maste int fido_cred_set_type(fido_cred_t *, int); 1690afa8e06SEd Maste int fido_cred_set_uv(fido_cred_t *, fido_opt_t); 1700afa8e06SEd Maste int fido_cred_type(const fido_cred_t *); 1710afa8e06SEd Maste int fido_cred_set_user(fido_cred_t *, const unsigned char *, size_t, 1720afa8e06SEd Maste const char *, const char *, const char *); 1730afa8e06SEd Maste int fido_cred_set_x509(fido_cred_t *, const unsigned char *, size_t); 1740afa8e06SEd Maste int fido_cred_verify(const fido_cred_t *); 1750afa8e06SEd Maste int fido_cred_verify_self(const fido_cred_t *); 1762ccfa855SEd Maste #ifdef _FIDO_SIGSET_DEFINED 1770afa8e06SEd Maste int fido_dev_set_sigmask(fido_dev_t *, const fido_sigset_t *); 1782ccfa855SEd Maste #endif 1790afa8e06SEd Maste int fido_dev_cancel(fido_dev_t *); 1800afa8e06SEd Maste int fido_dev_close(fido_dev_t *); 1810afa8e06SEd Maste int fido_dev_get_assert(fido_dev_t *, fido_assert_t *, const char *); 1820afa8e06SEd Maste int fido_dev_get_cbor_info(fido_dev_t *, fido_cbor_info_t *); 1830afa8e06SEd Maste int fido_dev_get_retry_count(fido_dev_t *, int *); 1840afa8e06SEd Maste int fido_dev_get_uv_retry_count(fido_dev_t *, int *); 1850afa8e06SEd Maste int fido_dev_get_touch_begin(fido_dev_t *); 1860afa8e06SEd Maste int fido_dev_get_touch_status(fido_dev_t *, int *, int); 1870afa8e06SEd Maste int fido_dev_info_manifest(fido_dev_info_t *, size_t, size_t *); 1883e696dfbSEd Maste int fido_dev_info_set(fido_dev_info_t *, size_t, const char *, const char *, 1893e696dfbSEd Maste const char *, const fido_dev_io_t *, const fido_dev_transport_t *); 1900afa8e06SEd Maste int fido_dev_make_cred(fido_dev_t *, fido_cred_t *, const char *); 1910afa8e06SEd Maste int fido_dev_open_with_info(fido_dev_t *); 1920afa8e06SEd Maste int fido_dev_open(fido_dev_t *, const char *); 1930afa8e06SEd Maste int fido_dev_reset(fido_dev_t *); 1940afa8e06SEd Maste int fido_dev_set_io_functions(fido_dev_t *, const fido_dev_io_t *); 1950afa8e06SEd Maste int fido_dev_set_pin(fido_dev_t *, const char *, const char *); 1960afa8e06SEd Maste int fido_dev_set_transport_functions(fido_dev_t *, const fido_dev_transport_t *); 197f540a430SEd Maste int fido_dev_set_timeout(fido_dev_t *, int); 1980afa8e06SEd Maste 1990afa8e06SEd Maste size_t fido_assert_authdata_len(const fido_assert_t *, size_t); 200*60a517b6SEd Maste size_t fido_assert_authdata_raw_len(const fido_assert_t *, size_t); 2010afa8e06SEd Maste size_t fido_assert_clientdata_hash_len(const fido_assert_t *); 2020afa8e06SEd Maste size_t fido_assert_count(const fido_assert_t *); 2030afa8e06SEd Maste size_t fido_assert_hmac_secret_len(const fido_assert_t *, size_t); 2040afa8e06SEd Maste size_t fido_assert_id_len(const fido_assert_t *, size_t); 2050afa8e06SEd Maste size_t fido_assert_largeblob_key_len(const fido_assert_t *, size_t); 2060afa8e06SEd Maste size_t fido_assert_sig_len(const fido_assert_t *, size_t); 2070afa8e06SEd Maste size_t fido_assert_user_id_len(const fido_assert_t *, size_t); 2080afa8e06SEd Maste size_t fido_assert_blob_len(const fido_assert_t *, size_t); 2090afa8e06SEd Maste size_t fido_cbor_info_aaguid_len(const fido_cbor_info_t *); 2100afa8e06SEd Maste size_t fido_cbor_info_algorithm_count(const fido_cbor_info_t *); 2112ccfa855SEd Maste size_t fido_cbor_info_certs_len(const fido_cbor_info_t *); 2120afa8e06SEd Maste size_t fido_cbor_info_extensions_len(const fido_cbor_info_t *); 2130afa8e06SEd Maste size_t fido_cbor_info_options_len(const fido_cbor_info_t *); 2140afa8e06SEd Maste size_t fido_cbor_info_protocols_len(const fido_cbor_info_t *); 2150afa8e06SEd Maste size_t fido_cbor_info_transports_len(const fido_cbor_info_t *); 2160afa8e06SEd Maste size_t fido_cbor_info_versions_len(const fido_cbor_info_t *); 217f540a430SEd Maste size_t fido_cred_aaguid_len(const fido_cred_t *); 218f540a430SEd Maste size_t fido_cred_attstmt_len(const fido_cred_t *); 2190afa8e06SEd Maste size_t fido_cred_authdata_len(const fido_cred_t *); 2200afa8e06SEd Maste size_t fido_cred_authdata_raw_len(const fido_cred_t *); 2210afa8e06SEd Maste size_t fido_cred_clientdata_hash_len(const fido_cred_t *); 2220afa8e06SEd Maste size_t fido_cred_id_len(const fido_cred_t *); 223f540a430SEd Maste size_t fido_cred_largeblob_key_len(const fido_cred_t *); 224f540a430SEd Maste size_t fido_cred_pin_minlen(const fido_cred_t *); 2250afa8e06SEd Maste size_t fido_cred_pubkey_len(const fido_cred_t *); 2260afa8e06SEd Maste size_t fido_cred_sig_len(const fido_cred_t *); 227f540a430SEd Maste size_t fido_cred_user_id_len(const fido_cred_t *); 2280afa8e06SEd Maste size_t fido_cred_x5c_len(const fido_cred_t *); 2290afa8e06SEd Maste 2300afa8e06SEd Maste uint8_t fido_assert_flags(const fido_assert_t *, size_t); 2310afa8e06SEd Maste uint32_t fido_assert_sigcount(const fido_assert_t *, size_t); 2320afa8e06SEd Maste uint8_t fido_cred_flags(const fido_cred_t *); 2330afa8e06SEd Maste uint32_t fido_cred_sigcount(const fido_cred_t *); 2340afa8e06SEd Maste uint8_t fido_dev_protocol(const fido_dev_t *); 2350afa8e06SEd Maste uint8_t fido_dev_major(const fido_dev_t *); 2360afa8e06SEd Maste uint8_t fido_dev_minor(const fido_dev_t *); 2370afa8e06SEd Maste uint8_t fido_dev_build(const fido_dev_t *); 2380afa8e06SEd Maste uint8_t fido_dev_flags(const fido_dev_t *); 2390afa8e06SEd Maste int16_t fido_dev_info_vendor(const fido_dev_info_t *); 2400afa8e06SEd Maste int16_t fido_dev_info_product(const fido_dev_info_t *); 2412ccfa855SEd Maste uint64_t fido_cbor_info_fwversion(const fido_cbor_info_t *); 2420afa8e06SEd Maste uint64_t fido_cbor_info_maxcredbloblen(const fido_cbor_info_t *); 2430afa8e06SEd Maste uint64_t fido_cbor_info_maxcredcntlst(const fido_cbor_info_t *); 2440afa8e06SEd Maste uint64_t fido_cbor_info_maxcredidlen(const fido_cbor_info_t *); 2452ccfa855SEd Maste uint64_t fido_cbor_info_maxlargeblob(const fido_cbor_info_t *); 2462ccfa855SEd Maste uint64_t fido_cbor_info_maxmsgsiz(const fido_cbor_info_t *); 2472ccfa855SEd Maste uint64_t fido_cbor_info_maxrpid_minpinlen(const fido_cbor_info_t *); 2482ccfa855SEd Maste uint64_t fido_cbor_info_minpinlen(const fido_cbor_info_t *); 2492ccfa855SEd Maste uint64_t fido_cbor_info_uv_attempts(const fido_cbor_info_t *); 2502ccfa855SEd Maste uint64_t fido_cbor_info_uv_modality(const fido_cbor_info_t *); 2512ccfa855SEd Maste int64_t fido_cbor_info_rk_remaining(const fido_cbor_info_t *); 2520afa8e06SEd Maste 2530afa8e06SEd Maste bool fido_dev_has_pin(const fido_dev_t *); 2540afa8e06SEd Maste bool fido_dev_has_uv(const fido_dev_t *); 2550afa8e06SEd Maste bool fido_dev_is_fido2(const fido_dev_t *); 2560afa8e06SEd Maste bool fido_dev_is_winhello(const fido_dev_t *); 2570afa8e06SEd Maste bool fido_dev_supports_credman(const fido_dev_t *); 2583e696dfbSEd Maste bool fido_dev_supports_cred_prot(const fido_dev_t *); 2593e696dfbSEd Maste bool fido_dev_supports_permissions(const fido_dev_t *); 2603e696dfbSEd Maste bool fido_dev_supports_pin(const fido_dev_t *); 2610afa8e06SEd Maste bool fido_dev_supports_uv(const fido_dev_t *); 2622ccfa855SEd Maste bool fido_cbor_info_new_pin_required(const fido_cbor_info_t *); 2630afa8e06SEd Maste 2640afa8e06SEd Maste int fido_dev_largeblob_get(fido_dev_t *, const unsigned char *, size_t, 2650afa8e06SEd Maste unsigned char **, size_t *); 2660afa8e06SEd Maste int fido_dev_largeblob_set(fido_dev_t *, const unsigned char *, size_t, 2670afa8e06SEd Maste const unsigned char *, size_t, const char *); 2680afa8e06SEd Maste int fido_dev_largeblob_remove(fido_dev_t *, const unsigned char *, size_t, 2690afa8e06SEd Maste const char *); 2700afa8e06SEd Maste int fido_dev_largeblob_get_array(fido_dev_t *, unsigned char **, size_t *); 2710afa8e06SEd Maste int fido_dev_largeblob_set_array(fido_dev_t *, const unsigned char *, size_t, 2720afa8e06SEd Maste const char *); 2730afa8e06SEd Maste 2740afa8e06SEd Maste #ifdef __cplusplus 2750afa8e06SEd Maste } /* extern "C" */ 2760afa8e06SEd Maste #endif /* __cplusplus */ 2770afa8e06SEd Maste 2780afa8e06SEd Maste #endif /* !_FIDO_H */ 279