Correctly import PKCS-7 remote metadata

The PEM data is larger than 2kB, which was a crazy-small max size for a
signature. Make this a more respectable 1Mb so that we can load PKCS-7
signatures with full certificate info included.

This wasn't being tested in the self tests as it only affects data read from
the remote file descriptor.
This commit is contained in:
Richard Hughes 2020-01-17 17:40:00 +00:00
parent 4959baa65b
commit 64d868a77b

View File

@ -3060,7 +3060,7 @@ fu_engine_update_metadata (FuEngine *self, const gchar *remote_id,
return FALSE;
/* read signature */
bytes_sig = g_input_stream_read_bytes (stream_sig, 0x800, NULL, error);
bytes_sig = g_input_stream_read_bytes (stream_sig, 0x100000, NULL, error);
if (bytes_sig == NULL)
return FALSE;