1FIDO_CRED_EXCLUDE(3)     BSD Library Functions Manual     FIDO_CRED_EXCLUDE(3)
2

NAME

4     fido_cred_exclude — appends a credential ID to a credential's list of
5     excluded credentials
6

SYNOPSIS

8     #include <fido.h>
9
10     int
11     fido_cred_exclude(fido_cred_t *cred, const unsigned char *ptr,
12         size_t len);
13

DESCRIPTION

15     The fido_cred_exclude() function adds ptr to the list of credentials
16     excluded by cred, where ptr points to a credential ID of len bytes.  A
17     copy of ptr is made, and no references to the passed pointer are kept.
18     If fido_cred_exclude() fails, the existing list of excluded credentials
19     is preserved.
20
21     If fido_cred_exclude returns success and cred is later passed to
22     fido_dev_make_cred(3) on a device that contains the credential denoted by
23     ptr, then fido_dev_make_cred(3) will fail.
24
25     For the format of a FIDO 2 credential ID, please refer to the Web Authen‐
26     tication (webauthn) standard.
27

RETURN VALUES

29     The error codes returned by fido_cred_exclude() are defined in
30     <fido/err.h>.  On success, FIDO_OK is returned.
31

SEE ALSO

33     fido_cred_new(3), fido_cred_set_authdata(3), fido_dev_make_cred(3)
34
35BSD                              May 10, 2020                              BSD
Impressum