#pragma once #include "tpm/tpm_device.hpp" #include class TPM2Interface : public TPMInterface { public: TPM2Interface(sdbusplus::async::context& ctx, uint8_t tpmIndex) : TPMInterface(ctx, tpmIndex) {} bool isUpdateSupported() const final { // Currently, we do not support TPM2 firmware updates return false; } sdbusplus::async::task updateFirmware(const uint8_t* image, size_t image_size) final; sdbusplus::async::task getVersion(std::string& version) final; private: sdbusplus::async::task getProperty(std::string_view property, uint32_t& value); };