From 0a8e026e825dda142a8f1552a4b45815cbfd0b48 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sat, 17 Dec 2022 15:46:36 -0500 Subject: [PATCH] cryptsetup-fido2: Relocate to libsystemd-shared --- src/cryptsetup/meson.build | 5 ----- src/{cryptsetup => shared}/cryptsetup-fido2.c | 0 src/{cryptsetup => shared}/cryptsetup-fido2.h | 0 src/shared/meson.build | 5 +++++ 4 files changed, 5 insertions(+), 5 deletions(-) rename src/{cryptsetup => shared}/cryptsetup-fido2.c (100%) rename src/{cryptsetup => shared}/cryptsetup-fido2.h (100%) diff --git a/src/cryptsetup/meson.build b/src/cryptsetup/meson.build index 26267fba510..ba8e01a1982 100644 --- a/src/cryptsetup/meson.build +++ b/src/cryptsetup/meson.build @@ -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 diff --git a/src/cryptsetup/cryptsetup-fido2.c b/src/shared/cryptsetup-fido2.c similarity index 100% rename from src/cryptsetup/cryptsetup-fido2.c rename to src/shared/cryptsetup-fido2.c diff --git a/src/cryptsetup/cryptsetup-fido2.h b/src/shared/cryptsetup-fido2.h similarity index 100% rename from src/cryptsetup/cryptsetup-fido2.h rename to src/shared/cryptsetup-fido2.h diff --git a/src/shared/meson.build b/src/shared/meson.build index 6f8d7f9f49a..0d5e9f2dbbb 100644 --- a/src/shared/meson.build +++ b/src/shared/meson.build @@ -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', -- 2.47.3