mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-17 19:49:46 +00:00
trivial: Use SHA256 for the store origin
If we're using this for caching it seems a good idea to use a secure cache function.
This commit is contained in:
parent
6b8528632c
commit
fe461b618e
@ -1666,7 +1666,7 @@ fu_main_get_store_from_fd (FuMainPrivate *priv, gint fd, GError **error)
|
||||
}
|
||||
|
||||
/* get a checksum of the file and use it as the origin */
|
||||
checksum = g_compute_checksum_for_data (G_CHECKSUM_SHA1,
|
||||
checksum = g_compute_checksum_for_data (G_CHECKSUM_SHA256,
|
||||
g_bytes_get_data (blob_cab, NULL),
|
||||
g_bytes_get_size (blob_cab));
|
||||
as_store_set_origin (store, checksum);
|
||||
|
Loading…
Reference in New Issue
Block a user