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

NAME

4     fido_assert_allow_cred — appends a credential ID to the list of creden‐
5     tials allowed in an 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

DESCRIPTION

15     The fido_assert_allow_cred() function adds ptr to the list of credentials
16     allowed in assert, 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_assert_allow_cred() fails, the existing list of allowed creden‐
19     tials is preserved.
20
21     For the format of a FIDO 2 credential ID, please refer to the Web Authen‐
22     tication (webauthn) standard.
23

RETURN VALUES

25     The error codes returned by fido_assert_allow_cred() are defined in
26     <fido/err.h>.  On success, FIDO_OK is returned.
27

SEE ALSO

29     fido_assert_new(3), fido_assert_set_authdata(3), fido_dev_get_assert(3)
30
31BSD                              May 10, 2020                              BSD
Impressum