Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

101.12. libfido2-1.17.0

FIDO2/U2F over USB and NFC — what an ed25519-sk SSH key talks to

1.17.0-1 · BSD-2-Clause · 0.2 SBU · 632.6 KiB, 319 files · 41_system, 320 of 1047 · ports/core/crypto/libfido2

Homepage: https://developers.yubico.com/libfido2/

Depends on: cmake, libcbor, openssl, zlib, eudev, pcsc-lite.

Required by (2): libssh, openssh.

Sources: libfido2-1.17.0.tar.gz (694.0 KiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libfido2'

build.sh:

mkdir -p build && cd build
cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF \
	-DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_MANPAGES=ON \
	-DUSE_HIDAPI=OFF -DNFC_LINUX=ON -DUSE_PCSC=ON \
	-DMANDOC_PATH=OFF
make
make DESTDIR=$PKG install

Programs: fido2-assert, fido2-cred, fido2-token.

Libraries: libfido2.so.

Directories: /usr/include/fido, /usr/share/licenses/libfido2.