FIDO_CRED_EXCLUDE(3)
π FIDO_CRED_EXCLUDE π
okay bestie, sit down, hydrate, and let me tell you about fido_cred_exclude and fido_cred_empty_exclude_list β the two functions that manage exclude lists in a FIDO2 credential. yes, that's the whole vibe. it's giving gatekeeping but make it cryptography β¨
πΈ SYNOPSIS πΈ
#include <fido.h>
int
fido_cred_exclude(fido_cred_t *cred, const unsigned char *ptr,
size_t len);
int
fido_cred_empty_exclude_list(fido_cred_t *cred);
π¦ DESCRIPTION π¦
β¨ fido_cred_exclude() β¨
so fido_cred_exclude() takes ptr and adds it to the list of credentials that cred is excluding, where ptr points to a credential ID that's len bytes long. it makes a copy of ptr, okay? like it does NOT keep any references to the pointer you passed in. she's independent, she's self-sufficient, she doesn't need you π
and if fido_cred_exclude() fails? no worries bestie, the existing list of excluded credentials is preserved. nothing gets messed up, we don't do chaos here π«Ά
now here's the iconic part: if fido_cred_exclude returns success and cred gets passed to fido_dev_make_cred(3) later, on a device that already contains the credential denoted by ptr... then fido_dev_make_cred(3) will fail. periodt. that's the whole point. it's a vibe check and the device did not pass π
for the format of a FIDO2 credential ID, please refer to the Web Authentication (webauthn) standard. iykyk π
π fido_cred_empty_exclude_list() π
and fido_cred_empty_exclude_list()? she empties the list of credentials excluded by cred. clean slate. reset era. main character energy π
β RETURN VALUES β
the error codes returned by fido_cred_exclude() and fido_cred_empty_exclude_list() are defined in <fido/err.h>. and on success? you get FIDO_OK back, which is honestly the only response we accept in this house π
ngl bestie, check your return values. always. no cap. π
π SEE ALSO π
that's the whole page, bestie β go forth and exclude credentials responsibly β¨πππ¦πΈ
this page came from Debian, dated December 2, 2022, and it lives in the FIDO_CRED_EXCLUDE(3) corner of the manual. mwah, slay, bye π«Άπ
π¦ 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