FIDO_BIO_ENROLL_NEW(3)

πŸ“¦
version 1.17.0 Β· 2 versions
  • 1.17.0 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.10.0 Β· ubuntu jammy
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 a fido_bio_enroll_t, bestie, that's a different page β€” go look at fido_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