summaryrefslogtreecommitdiffstats
path: root/src/cryptenroll
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-09-22 20:36:44 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-09-26 15:35:06 +0200
commit4cc8e81db535cbf576b45aabb77521bf2c6ef60e (patch)
tree2d45d4ca66ba854745956782cd502ae8e78fcb99 /src/cryptenroll
parentman/crypttab: fix indentation (diff)
downloadsystemd-4cc8e81db535cbf576b45aabb77521bf2c6ef60e.tar.xz
systemd-4cc8e81db535cbf576b45aabb77521bf2c6ef60e.zip
cryptenroll: align tables
Diffstat (limited to 'src/cryptenroll')
-rw-r--r--src/cryptenroll/cryptenroll.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/cryptenroll/cryptenroll.c b/src/cryptenroll/cryptenroll.c
index 1ffa2fb5f2..45a058f426 100644
--- a/src/cryptenroll/cryptenroll.c
+++ b/src/cryptenroll/cryptenroll.c
@@ -78,9 +78,9 @@ static bool wipe_requested(void) {
static const char* const enroll_type_table[_ENROLL_TYPE_MAX] = {
[ENROLL_PASSWORD] = "password",
[ENROLL_RECOVERY] = "recovery",
- [ENROLL_PKCS11] = "pkcs11",
- [ENROLL_FIDO2] = "fido2",
- [ENROLL_TPM2] = "tpm2",
+ [ENROLL_PKCS11] = "pkcs11",
+ [ENROLL_FIDO2] = "fido2",
+ [ENROLL_TPM2] = "tpm2",
};
DEFINE_STRING_TABLE_LOOKUP(enroll_type, EnrollType);
@@ -88,9 +88,9 @@ DEFINE_STRING_TABLE_LOOKUP(enroll_type, EnrollType);
static const char *const luks2_token_type_table[_ENROLL_TYPE_MAX] = {
/* ENROLL_PASSWORD has no entry here, as slots of this type do not have a token in the LUKS2 header */
[ENROLL_RECOVERY] = "systemd-recovery",
- [ENROLL_PKCS11] = "systemd-pkcs11",
- [ENROLL_FIDO2] = "systemd-fido2",
- [ENROLL_TPM2] = "systemd-tpm2",
+ [ENROLL_PKCS11] = "systemd-pkcs11",
+ [ENROLL_FIDO2] = "systemd-fido2",
+ [ENROLL_TPM2] = "systemd-tpm2",
};
DEFINE_STRING_TABLE_LOOKUP(luks2_token_type, EnrollType);
@@ -150,7 +150,6 @@ static int help(void) {
}
static int parse_argv(int argc, char *argv[]) {
-
enum {
ARG_VERSION = 0x100,
ARG_PASSWORD,