* openUBMC is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
#ifndef __COMPONENT_INTEGRITY_H__
#define __COMPONENT_INTEGRITY_H__
#include "common.h"
#include "measurements/measurement_set.h"
class ComponentIntegrity {
private:
string type;
string version;
uint64_t lastUpdated;
public:
MeasurementSet* measurementSet;
ComponentIntegrity();
ComponentIntegrity(const string& type, const string& version, uint64_t lastUpdated);
string GetType() const;
string GetVersion() const;
uint64_t GetLastUpdated();
void SetType(const string& type);
void SetVersion(const string& version);
void SetLastUpdated(uint64_t lastUpdated);
int32_t InitBaseMeasurements(void* spdm_context, uint8_t slot_id);
};
#endif