]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup-fido2: Relocate to libsystemd-shared
authorPeter Cai <peter@typeblog.net>
Sat, 17 Dec 2022 20:46:36 +0000 (15:46 -0500)
committerPeter Cai <peter@typeblog.net>
Thu, 22 Dec 2022 13:43:50 +0000 (08:43 -0500)
src/cryptsetup/meson.build
src/shared/cryptsetup-fido2.c [moved from src/cryptsetup/cryptsetup-fido2.c with 100% similarity]
src/shared/cryptsetup-fido2.h [moved from src/cryptsetup/cryptsetup-fido2.h with 100% similarity]
src/shared/meson.build

index 26267fba510a3821178a9d5dedcdcba90d43bd1d..ba8e01a19827b54dfaccdb6a9704d1fe803cc70a 100644 (file)
@@ -1,7 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 systemd_cryptsetup_sources = files(
-        'cryptsetup-fido2.h',
         'cryptsetup-keyfile.c',
         'cryptsetup-keyfile.h',
         'cryptsetup-pkcs11.h',
@@ -12,10 +11,6 @@ if conf.get('HAVE_P11KIT') == 1
         systemd_cryptsetup_sources += files('cryptsetup-pkcs11.c')
 endif
 
-if conf.get('HAVE_LIBFIDO2') == 1
-        systemd_cryptsetup_sources += files('cryptsetup-fido2.c')
-endif
-
 if conf.get('HAVE_TPM2') == 1
         systemd_cryptsetup_sources += files('cryptsetup-tpm2.c')
 endif
index 6f8d7f9f49a8e60db3cceef5703b13e1b977e0d0..0d5e9f2dbbbe19d22acc06437ef31f0a9d85a4e1 100644 (file)
@@ -85,6 +85,7 @@ shared_sources = files(
         'cpu-set-util.h',
         'creds-util.c',
         'creds-util.h',
+        'cryptsetup-fido2.h',
         'cryptsetup-util.c',
         'cryptsetup-util.h',
         'daemon-util.c',
@@ -405,6 +406,10 @@ if conf.get('ENABLE_NSCD') == 1
         shared_sources += files('nscd-flush.c')
 endif
 
+if conf.get('HAVE_LIBFIDO2') == 1
+        shared_sources += files('cryptsetup-fido2.c')
+endif
+
 generate_ip_protocol_list = find_program('generate-ip-protocol-list.sh')
 ip_protocol_list_txt = custom_target(
         'ip-protocol-list.txt',