]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/cryptenroll/cryptenroll.h
add ipv6 range element creation test cases
[thirdparty/systemd.git] / src / cryptenroll / cryptenroll.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 typedef enum EnrollType {
5 ENROLL_PASSWORD,
6 ENROLL_RECOVERY,
7 ENROLL_PKCS11,
8 ENROLL_FIDO2,
9 ENROLL_TPM2,
10 _ENROLL_TYPE_MAX,
11 _ENROLL_TYPE_INVALID = -1,
12 } EnrollType;
13
14 typedef enum WipeScope {
15 WIPE_EXPLICIT, /* only wipe the listed slots */
16 WIPE_ALL, /* wipe all slots */
17 WIPE_EMPTY_PASSPHRASE, /* wipe slots with empty passphrases plus listed slots */
18 _WIPE_SCOPE_MAX,
19 _WIPE_SCOPE_INVALID = -1,
20 } WipeScope;
21
22 const char* enroll_type_to_string(EnrollType t);
23 EnrollType enroll_type_from_string(const char *s);
24
25 const char* luks2_token_type_to_string(EnrollType t);
26 EnrollType luks2_token_type_from_string(const char *s);