fwupd/plugins/redfish/fu-ipmi-device.h
Richard Hughes 1210aa4ae7 redfish: Create user accounts automatically using IPMI
This allows the Redfish plugin to "just work" when there is no username
or password in the SMBIOS data. Using KCS we can create an admin account
from the host OS and then automatically enumerate devices.
2021-09-07 17:25:37 +01:00

36 lines
971 B
C

/*
* Copyright (C) 2021 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include <fwupdplugin.h>
#define FU_TYPE_IPMI_DEVICE (fu_ipmi_device_get_type())
G_DECLARE_FINAL_TYPE(FuIpmiDevice, fu_ipmi_device, FU, IPMI_DEVICE, FuUdevDevice)
FuIpmiDevice *
fu_ipmi_device_new(FuContext *ctx);
gchar *
fu_ipmi_device_get_user_password(FuIpmiDevice *self, guint8 user_id, GError **error);
gboolean
fu_ipmi_device_set_user_name(FuIpmiDevice *self,
guint8 user_id,
const gchar *username,
GError **error);
gboolean
fu_ipmi_device_set_user_password(FuIpmiDevice *self,
guint8 user_id,
const gchar *password,
GError **error);
gboolean
fu_ipmi_device_set_user_enable(FuIpmiDevice *self, guint8 user_id, gboolean enable, GError **error);
gboolean
fu_ipmi_device_set_user_priv(FuIpmiDevice *self,
guint8 user_id,
guint8 priv_limit,
guint8 channel,
GError **error);