fwupd/libfwupdplugin/fu-security-attrs-private.h
Richard Hughes c1f7ac47e8 tpm: Actually add the v1.2 device
Also, add end-to-end tests for this so it can never happen again.

Fixes https://github.com/fwupd/fwupd/issues/3972
2021-11-10 14:08:08 +00:00

39 lines
1.0 KiB
C

/*
* Copyright (C) 2020 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
/**
* FuSecurityAttrsFlags:
* @FU_SECURITY_ATTRS_FLAG_NONE: No flags set
* @FU_SECURITY_ATTRS_FLAG_ADD_VERSION: Add the daemon version to the HSI string
*
* The flags to use when calculating an HSI version.
**/
typedef enum {
FU_SECURITY_ATTRS_FLAG_NONE = 0,
FU_SECURITY_ATTRS_FLAG_ADD_VERSION = 1 << 0,
/*< private >*/
FU_SECURITY_ATTRS_FLAG_LAST
} FuSecurityAttrsFlags;
#include "fu-security-attrs.h"
FuSecurityAttrs *
fu_security_attrs_new(void);
gchar *
fu_security_attrs_calculate_hsi(FuSecurityAttrs *self, FuSecurityAttrsFlags flags);
void
fu_security_attrs_depsolve(FuSecurityAttrs *self);
GVariant *
fu_security_attrs_to_variant(FuSecurityAttrs *self);
GPtrArray *
fu_security_attrs_get_all(FuSecurityAttrs *self);
void
fu_security_attrs_append_internal(FuSecurityAttrs *self, FwupdSecurityAttr *attr);
FwupdSecurityAttr *
fu_security_attrs_get_by_appstream_id(FuSecurityAttrs *self, const gchar *appstream_id);