mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-02 23:37:01 +00:00

The only information that is secret is the `current_value`. Augment the d-bus call to determine whether the caller needs this information. * If `fwupdmgr` is launched as root it will be provided. * If `fwupdmgr` is launched with `--authenticate` it will be requested and PK will be engaged.
19 lines
440 B
C
19 lines
440 B
C
/*
|
|
* Copyright (C) 2022 Mario Limonciello <mario.limonciello@amd.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#include <json-glib/json-glib.h>
|
|
|
|
#include "fwupd-bios-attr.h"
|
|
|
|
#pragma once
|
|
|
|
GVariant *
|
|
fwupd_bios_attr_to_variant(FwupdBiosAttr *self, gboolean trusted);
|
|
void
|
|
fwupd_bios_attr_to_json(FwupdBiosAttr *self, JsonBuilder *builder);
|
|
gboolean
|
|
fwupd_bios_attr_from_json(FwupdBiosAttr *self, JsonNode *json_node, GError **error);
|