1FIDO_ASSERT_ALLOW_CRE... BSD Library Functions Manual FIDO_ASSERT_ALLOW_CRE...
2

NAME

4     fido_assert_allow_cred, fido_assert_empty_allow_list — manage allow lists
5     in a FIDO2 assertion
6

SYNOPSIS

8     #include <fido.h>
9
10     int
11     fido_assert_allow_cred(fido_assert_t *assert, const unsigned char *ptr,
12         size_t len);
13
14     int
15     fido_assert_empty_allow_list(fido_assert_t *assert);
16

DESCRIPTION

18     The fido_assert_allow_cred() function adds ptr to the list of credentials
19     allowed in assert, where ptr points to a credential ID of len bytes.  A
20     copy of ptr is made, and no references to the passed pointer are kept.
21     If fido_assert_allow_cred() fails, the existing list of allowed creden‐
22     tials is preserved.
23
24     For the format of a FIDO2 credential ID, please refer to the Web Authen‐
25     tication (webauthn) standard.
26
27     The fido_assert_empty_allow_list() function empties the list of creden‐
28     tials allowed in assert.
29

RETURN VALUES

31     The error codes returned by fido_assert_allow_cred() and
32     fido_assert_empty_allow_list() are defined in <fido/err.h>.  On success,
33     FIDO_OK is returned.
34

SEE ALSO

36     fido_assert_new(3), fido_assert_set_authdata(3), fido_dev_get_assert(3)
37
38BSD                            December 1, 2022                            BSD
Impressum