mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-18 18:24:45 +00:00

Since the Redfish service may use a self-signed certificate without specifying the hostname, we could have the problem to verify such certificate. A new option, CACheck, is introduced so that the user can decide whether to ignore the CA verification or not. Signed-off-by: Gary Lin <glin@suse.com>
49 lines
1.5 KiB
C
49 lines
1.5 KiB
C
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
|
*
|
|
* Copyright (C) 2017-2018 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#ifndef __FU_REDFISH_CLIENT_H
|
|
#define __FU_REDFISH_CLIENT_H
|
|
|
|
#include <glib-object.h>
|
|
#include <gio/gio.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define REDFISH_TYPE_CLIENT (fu_redfish_client_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (FuRedfishClient, fu_redfish_client, FU, REDFISH_CLIENT, GObject)
|
|
|
|
FuRedfishClient *fu_redfish_client_new (void);
|
|
void fu_redfish_client_set_hostname (FuRedfishClient *self,
|
|
const gchar *hostname);
|
|
void fu_redfish_client_set_username (FuRedfishClient *self,
|
|
const gchar *username);
|
|
void fu_redfish_client_set_password (FuRedfishClient *self,
|
|
const gchar *password);
|
|
void fu_redfish_client_set_port (FuRedfishClient *self,
|
|
guint port);
|
|
void fu_redfish_client_set_https (FuRedfishClient *self,
|
|
gboolean use_https);
|
|
void fu_redfish_client_set_cacheck (FuRedfishClient *self,
|
|
gboolean cacheck);
|
|
gboolean fu_redfish_client_update (FuRedfishClient *self,
|
|
FuDevice *device,
|
|
GBytes *blob_fw,
|
|
GError **error);
|
|
gboolean fu_redfish_client_setup (FuRedfishClient *self,
|
|
GBytes *smbios_table,
|
|
GError **error);
|
|
gboolean fu_redfish_client_coldplug (FuRedfishClient *self,
|
|
GError **error);
|
|
GPtrArray *fu_redfish_client_get_devices (FuRedfishClient *self);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __FU_REDFISH_CLIENT_H */
|
|
|
|
/* vim: set noexpandtab: */
|