FIDO_ASSERT_ALLOW_CRED(3)
π FIDO_ASSERT_ALLOW_CRED π
okay bestie, so this one lives in the Library Functions Manual section 3, and it's called FIDO_ASSERT_ALLOW_CRED(3) β we're talking fido_assert_allow_cred and fido_assert_empty_allow_list, and they're here to manage allow lists in a FIDO2 assertion. π
β¨ NAME β¨
fido_assert_allow_cred, fido_assert_empty_allow_list β manage allow lists in a FIDO2 assertion π¦
πΈ SYNOPSIS πΈ
#include <fido.h>
int
fido_assert_allow_cred(fido_assert_t *assert, const unsigned char *ptr,
size_t len);
int
fido_assert_empty_allow_list(fido_assert_t *assert);
π DESCRIPTION π
so like, fido_assert_allow_cred() adds ptr to the list of credentials allowed in assert, where ptr points to a credential ID of len bytes. it makes a copy of ptr β no references to the pointer you passed in are kept, so you can go do whatever with it afterwards, we don't care, we already have our own. π
and listen, if fido_assert_allow_cred() fails? the existing list of allowed credentials is preserved. nothing gets half-eaten, the vibe stays intact. π
for the format of a FIDO2 credential ID, please refer to the Web Authentication (webauthn) standard. (iykyk π)
then there's fido_assert_empty_allow_list(), which does exactly what it says on the tin: it empties the list of credentials allowed in assert. poof. gone. π«Ά
β RETURN VALUES β
the error codes returned by fido_assert_allow_cred() and fido_assert_empty_allow_list() are defined in <fido/err.h>. and on success? FIDO_OK is returned. slay. π
π SEE ALSO π
and that's the whole page, bestie β this one shipped with Debian, dated December 1, 2022. go forth and allow-list responsibly πβ¨
π¦ where this page comes from
- alpine 3.22: libfido2-doc 1.16.0-r0 Β· BSD-2-Clause
- alpine 3.23: libfido2-doc 1.16.0-r2 Β· BSD-2-Clause
- alpine 3.24: libfido2-doc 1.16.0-r4 Β· BSD-2-Clause
- arch rolling: libfido2 1.17.0-1 Β· BSD-2-Clause
- centos-stream 10: libfido2-devel 1.14.0-7.el10 Β· BSD-2-Clause
- centos-stream 9: libfido2-devel 1.13.0-2.el9 Β· BSD
- centos-stream 9: libfido2-devel 1.13.0-2.el9 Β· BSD
- debian trixie: libfido2-doc 1.15.0-1 Β· BSD-2-Clause
- fedora 43: libfido2-devel 1.16.0-3.fc43 Β· BSD-2-Clause
- fedora 43: libfido2-devel 1.16.0-3.fc43 Β· BSD-2-Clause
- fedora 44: libfido2-devel 1.16.0-5.fc44 Β· BSD-2-Clause
- fedora 44: libfido2-devel 1.16.0-5.fc44 Β· BSD-2-Clause
- nixos 26.05: fido2-manage 0-unstable-2025-06-06
- nixpkgs unstable: fido2-manage 0-unstable-2025-06-06
- nixpkgs unstable: libfido2 1.17.0
- opensuse-leap 16.0: libfido2-devel 1.15.0-160000.3.2 Β· BSD-2-Clause
- opensuse-leap 16.0: libfido2-devel 1.15.0-160000.3.2 Β· BSD-2-Clause
- opensuse-leap 16.0: libfido2-devel 1.15.0-160000.3.2 Β· BSD-2-Clause
- opensuse-leap 16.0: libfido2-devel 1.15.0-160000.3.2 Β· BSD-2-Clause
- ubuntu noble: libfido2-doc 1.14.0-1build3 Β· BSD-2-Clause
- ubuntu questing: libfido2-doc 1.16.0-2
- ubuntu resolute: libfido2-doc 1.16.0-2build1 Β· BSD-2-Clause
- ubuntu stonking: libfido2-doc 1.17.0-2build1 Β· BSD-2-Clause
- π the page's license: BSD-2-Clause
- Copyright (c) 2018-2022 Yubico AB. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms