1
0
mirror of https://github.com/systemd/systemd synced 2025-10-05 16:03:15 +02:00

Revert "Bump required minimum version of libfido2 to 1.5.0" and add missing def instead

It helps nobody to break compatibility for a missing definition
for printing an error.
Just add the missing definition if not present, as it is already
done for thousands of others from the kernel, glibc, etc.

This partially reverts commit d8b60944f5.
This commit is contained in:
Luca Boccassi
2025-09-18 17:29:41 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent d15343d561
commit 463f0a027a
3 changed files with 6 additions and 2 deletions

2
README
View File

@@ -245,7 +245,7 @@ REQUIREMENTS:
gnutls >= 3.1.4 (optional)
openssl >= 1.1.0 (optional, required to support DNS-over-TLS)
p11-kit >= 0.23.3 (optional)
libfido2 >= 1.5.0 (optional)
libfido2 (optional)
tpm2-tss (optional)
elfutils >= 158 (optional)
polkit (optional)

View File

@@ -1354,7 +1354,6 @@ feature = get_option('libfido2').require(
conf.get('HAVE_OPENSSL') == 1,
error_message : 'openssl required')
libfido2 = dependency('libfido2',
version : '>=1.5.0',
required : feature)
conf.set10('HAVE_LIBFIDO2', libfido2.found())

View File

@@ -16,6 +16,11 @@
#include "strv.h"
#include "unistd.h"
/* Added in version 1.5.0 */
#ifndef FIDO_ERR_UV_BLOCKED
#define FIDO_ERR_UV_BLOCKED 0x3c
#endif
static void *libfido2_dl = NULL;
DLSYM_PROTOTYPE(fido_assert_allow_cred) = NULL;