FIDO_BIO_ENROLL_NEW(3)
π FIDO_BIO_ENROLL_NEW π β like, the FIDO2 biometric enrollment API, bestie
okay so this is fido_bio_enroll_new and friends, straight out of the Library Functions Manual, section 3. yes, we're doing C library lore today and honestly? iconic. π«Ά
β¨ NAME β¨
fido_bio_enroll_new, fido_bio_enroll_free, fido_bio_enroll_last_status, fido_bio_enroll_remaining_samples β FIDO2 biometric enrollment API πΈ
π SYNOPSIS π
#include <fido.h>
#include <fido/bio.h>
#define FIDO_BIO_ENROLL_FP_GOOD 0x00
#define FIDO_BIO_ENROLL_FP_TOO_HIGH 0x01
#define FIDO_BIO_ENROLL_FP_TOO_LOW 0x02
#define FIDO_BIO_ENROLL_FP_TOO_LEFT 0x03
#define FIDO_BIO_ENROLL_FP_TOO_RIGHT 0x04
#define FIDO_BIO_ENROLL_FP_TOO_FAST 0x05
#define FIDO_BIO_ENROLL_FP_TOO_SLOW 0x06
#define FIDO_BIO_ENROLL_FP_POOR_QUALITY 0x07
#define FIDO_BIO_ENROLL_FP_TOO_SKEWED 0x08
#define FIDO_BIO_ENROLL_FP_TOO_SHORT 0x09
#define FIDO_BIO_ENROLL_FP_MERGE_FAILURE 0x0a
#define FIDO_BIO_ENROLL_FP_EXISTS 0x0b
#define FIDO_BIO_ENROLL_FP_DATABASE_FULL 0x0c
#define FIDO_BIO_ENROLL_NO_USER_ACTIVITY 0x0d
#define FIDO_BIO_ENROLL_NO_USER_PRESENCE_TRANSITION 0x0e
fido_bio_enroll_t *
fido_bio_enroll_new(void);
void
fido_bio_enroll_free(fido_bio_enroll_t **enroll_p);
uint8_t
fido_bio_enroll_last_status(const fido_bio_enroll_t *enroll);
uint8_t
fido_bio_enroll_remaining_samples(const fido_bio_enroll_t *enroll);
π¦ DESCRIPTION π¦
so like, an ongoing FIDO2 biometric enrollment? in libfido2 it gets abstracted into the fido_bio_enroll_t type. that's the whole vibe. π
the functions on this page let you allocate, deallocate, and inspect a fido_bio_enroll_t type. periodt.
and if you wanna do actual device operations on afido_bio_enroll_t, bestie, that's a different page β go look atfido_bio_dev_get_info(3). iykyk. π
π fido_bio_enroll_new() π
returns a pointer to a newly allocated, empty fido_bio_enroll_t type. fresh out the box, no cap. β¨
but if memory cannot be allocated? NULL is returned. that's it. that's the deal. π
π fido_bio_enroll_free() π
releases the memory backing *enroll_p, and *enroll_p must have been previously allocated by fido_bio_enroll_new(). like, don't just hand it a random pointer, babe, that's not the move. π
on return, *enroll_p is set to NULL. tidy. clean. we love a responsible cleanup moment. π§
and plot twist: either enroll_p or *enroll_p may be NULL, in which case fido_bio_enroll_free() is a NOP. literally nothing happens. it's giving "no thoughts, head empty," and honestly, valid. π
β fido_bio_enroll_last_status() β
returns the enrollment status of enroll. that's the tea. π₯
π fido_bio_enroll_remaining_samples() π
returns the number of samples left</> for enroll to complete. like a countdown but for your fingertip. πΈ
π SEE ALSO π
go read those too, bestie, they're part of the lore. π«Ά
mwah π that's the page!! this one came from Debian, dated September 13, 2019, and yes the header/footer both say FIDO_BIO_ENROLL_NEW(3) because we keep it consistent in this house. slay, stay safe, and always free your pointers. β¨π
π¦ 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 bookworm: libfido2-doc 1.12.0-2 Β· BSD-2-Clause
- 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) 2019 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