27 lines
798 B
C
27 lines
798 B
C
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||
|
#pragma once
|
||
|
|
||
|
typedef enum EnrollType {
|
||
|
ENROLL_PASSWORD,
|
||
|
ENROLL_RECOVERY,
|
||
|
ENROLL_PKCS11,
|
||
|
ENROLL_FIDO2,
|
||
|
ENROLL_TPM2,
|
||
|
_ENROLL_TYPE_MAX,
|
||
|
_ENROLL_TYPE_INVALID = -1,
|
||
|
} EnrollType;
|
||
|
|
||
|
typedef enum WipeScope {
|
||
|
WIPE_EXPLICIT, /* only wipe the listed slots */
|
||
|
WIPE_ALL, /* wipe all slots */
|
||
|
WIPE_EMPTY_PASSPHRASE, /* wipe slots with empty passphrases plus listed slots */
|
||
|
_WIPE_SCOPE_MAX,
|
||
|
_WIPE_SCOPE_INVALID = -1,
|
||
|
} WipeScope;
|
||
|
|
||
|
const char* enroll_type_to_string(EnrollType t);
|
||
|
EnrollType enroll_type_from_string(const char *s);
|
||
|
|
||
|
const char* luks2_token_type_to_string(EnrollType t);
|
||
|
EnrollType luks2_token_type_from_string(const char *s);
|