]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "Bump required minimum version of libfido2 to 1.5.0" and add missing def instead
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 18 Sep 2025 16:29:41 +0000 (17:29 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 27 Sep 2025 13:46:13 +0000 (15:46 +0200)
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 d8b60944f5f752a06ad1553ca77b04b7fea903e9.

README
meson.build
src/shared/libfido2-util.c

diff --git a/README b/README
index 979807cda6e366b7cea006b344f60dd3429e30d5..eea3a55fbb8d1b5161f102adc4a3e56d0785b8a8 100644 (file)
--- a/README
+++ b/README
@@ -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)
index bf58d536f4e6eb110cbd3d42e6197f909da0dc71..5ae8763afdc33edd66734cea61fc9fab113e471f 100644 (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())
 
index bbca00ceeb87df5434b2e78a33498ba39973c340..5bcd5388b0c23b9353fcd06290ce98bb58249303 100644 (file)
 #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;