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

NAME

4     fido_assert_allow_cred — allow a credential in a FIDO2 assertion
5

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUES

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

SEE ALSO

28     fido_assert_new(3), fido_assert_set_authdata(3), fido_dev_get_assert(3)
29
30BSD                              May 23, 2018                              BSD
Impressum