fwupd/plugins/intel-me/fu-intel-me-heci-device.h
Richard Hughes 0f8ec55f46 Add a new plugin to get more Intel ME MCA data
This allows us to get the OEM Public Key BootGuard hashes.

Also add a new HSI test for leaked bootguard keys.
2022-10-13 18:34:00 +01:00

30 lines
718 B
C

/*
* Copyright (C) 2022 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include <fwupdplugin.h>
#define FU_TYPE_INTEL_ME_HECI_DEVICE (fu_intel_me_heci_device_get_type())
G_DECLARE_DERIVABLE_TYPE(FuIntelMeHeciDevice,
fu_intel_me_heci_device,
FU,
INTEL_ME_HECI_DEVICE,
FuMeiDevice)
struct _FuIntelMeHeciDeviceClass {
FuMeiDeviceClass parent_class;
};
GByteArray *
fu_intel_me_heci_device_read_file(FuIntelMeHeciDevice *self, const gchar *filename, GError **error);
GByteArray *
fu_intel_me_heci_device_read_file_ex(FuIntelMeHeciDevice *self,
guint32 file_id,
guint32 section,
guint32 datasz_req,
GError **error);