| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "shared-forward.h" |
| 5 |
|
| 6 |
typedef enum EnrollType { |
| 7 |
ENROLL_PASSWORD, |
| 8 |
ENROLL_RECOVERY, |
| 9 |
ENROLL_PKCS11, |
| 10 |
ENROLL_FIDO2, |
| 11 |
ENROLL_TPM2, |
| 12 |
_ENROLL_TYPE_MAX, |
| 13 |
_ENROLL_TYPE_INVALID = -EINVAL, |
| 14 |
} EnrollType; |
| 15 |
|
| 16 |
typedef enum UnlockType { |
| 17 |
UNLOCK_PASSWORD, |
| 18 |
UNLOCK_KEYFILE, |
| 19 |
UNLOCK_FIDO2, |
| 20 |
UNLOCK_TPM2, |
| 21 |
_UNLOCK_TYPE_MAX, |
| 22 |
_UNLOCK_TYPE_INVALID = -EINVAL, |
| 23 |
} UnlockType; |
| 24 |
|
| 25 |
typedef enum WipeScope { |
| 26 |
WIPE_EXPLICIT, /* only wipe the listed slots */ |
| 27 |
WIPE_ALL, /* wipe all slots */ |
| 28 |
WIPE_EMPTY_PASSPHRASE, /* wipe slots with empty passphrases plus listed slots */ |
| 29 |
_WIPE_SCOPE_MAX, |
| 30 |
_WIPE_SCOPE_INVALID = -EINVAL, |
| 31 |
} WipeScope; |
| 32 |
|
| 33 |
DECLARE_STRING_TABLE_LOOKUP(enroll_type, EnrollType); |
| 34 |
DECLARE_STRING_TABLE_LOOKUP(luks2_token_type, EnrollType); |