1FIDO_CRED_EXCLUDE(3) BSD Library Functions Manual FIDO_CRED_EXCLUDE(3)
2
4 fido_cred_exclude — appends a credential ID to a credential's list of ex‐
5 cluded credentials
6
8 #include <fido.h>
9
10 int
11 fido_cred_exclude(fido_cred_t *cred, const unsigned char *ptr,
12 size_t len);
13
15 The fido_cred_exclude() function adds ptr to the list of credentials ex‐
16 cluded by cred, where ptr points to a credential ID of len bytes. A copy
17 of ptr is made, and no references to the passed pointer are kept. If
18 fido_cred_exclude() fails, the existing list of excluded credentials is
19 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 FIDO2 credential ID, please refer to the Web Authen‐
26 tication (webauthn) standard.
27
29 The error codes returned by fido_cred_exclude() are defined in
30 <fido/err.h>. On success, FIDO_OK is returned.
31
33 fido_cred_new(3), fido_cred_set_authdata(3), fido_dev_make_cred(3)
34
35BSD May 23, 2018 BSD