From 6df2e35458d5f8d388615b2df897279ae2cac819 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 20 Feb 2023 15:22:48 +0000 Subject: [PATCH] dfu: Allow DFU devices to declare the payload in the XML metadata The DFU protocol can be used to transfer both signed and unsigned content, and it's up to the device to do the right thing. --- plugins/dfu/fu-dfu-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/dfu/fu-dfu-device.c b/plugins/dfu/fu-dfu-device.c index 9fdb73287..50a8a6dd4 100644 --- a/plugins/dfu/fu-dfu-device.c +++ b/plugins/dfu/fu-dfu-device.c @@ -1689,6 +1689,7 @@ fu_dfu_device_init(FuDfuDevice *self) fu_device_add_flag(FU_DEVICE(self), FWUPD_DEVICE_FLAG_UPDATABLE); fu_device_add_flag(FU_DEVICE(self), FWUPD_DEVICE_FLAG_ADD_COUNTERPART_GUIDS); fu_device_add_internal_flag(FU_DEVICE(self), FU_DEVICE_INTERNAL_FLAG_REPLUG_MATCH_GUID); + fu_device_add_internal_flag(FU_DEVICE(self), FU_DEVICE_INTERNAL_FLAG_MD_SET_SIGNED); fu_device_set_remove_delay(FU_DEVICE(self), FU_DEVICE_REMOVE_DELAY_RE_ENUMERATE); fu_device_register_private_flag(FU_DEVICE(self),