typedef enum PatternCompileCase PatternCompileCase;
typedef enum ResolveSupport ResolveSupport;
typedef enum TPM2Flags TPM2Flags;
+typedef enum Tpm2Support Tpm2Support;
+typedef enum Tpm2UserspaceEventType Tpm2UserspaceEventType;
typedef enum UnitFileFlags UnitFileFlags;
typedef enum UnitFilePresetMode UnitFilePresetMode;
typedef enum UnitFileState UnitFileState;
typedef struct OpenFile OpenFile;
typedef struct Pkcs11EncryptedKey Pkcs11EncryptedKey;
typedef struct Table Table;
+typedef struct Tpm2Context Tpm2Context;
+typedef struct Tpm2Handle Tpm2Handle;
typedef struct Tpm2PCRValue Tpm2PCRValue;
typedef struct UnitInfo UnitInfo;
typedef struct UserRecord UserRecord;
int dlopen_tpm2(void);
-typedef struct {
+typedef struct Tpm2Context {
unsigned n_ref;
void *tcti_dl;
Tpm2Context *tpm2_context_unref(Tpm2Context *context);
DEFINE_TRIVIAL_CLEANUP_FUNC(Tpm2Context*, tpm2_context_unref);
-typedef struct {
+typedef struct Tpm2Handle {
Tpm2Context *tpm2_context;
ESYS_TR esys_handle;
Tpm2Handle *tpm2_handle_free(Tpm2Handle *handle);
DEFINE_TRIVIAL_CLEANUP_FUNC(Tpm2Handle*, tpm2_handle_free);
-typedef struct {
+typedef struct Tpm2PCRValue {
unsigned index;
TPMI_ALG_HASH hash;
TPM2B_DIGEST value;
})
#else /* HAVE_TPM2 */
-typedef struct {} Tpm2Context;
-typedef struct {} Tpm2Handle;
-typedef struct {} Tpm2PCRValue;
+typedef struct Tpm2Context {} Tpm2Context;
+typedef struct Tpm2Handle {} Tpm2Handle;
+typedef struct Tpm2PCRValue {} Tpm2PCRValue;
#define TPM2_PCR_VALUE_MAKE(i, h, v) (Tpm2PCRValue) {}
extern const uint16_t tpm2_hash_algorithms[];
-typedef struct {
+typedef struct systemd_tpm2_plugin_params {
uint32_t search_pcr_mask;
const char *device;
const char *signature_path;