-fix size check for RSA-8k

This commit is contained in:
Christian Grothoff 2021-11-27 14:21:36 +01:00
parent f493122033
commit f795e32b01
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1167,10 +1167,10 @@ import_key (void *cls,
GNUNET_break (0 == close (fd)); GNUNET_break (0 == close (fd));
return GNUNET_OK; return GNUNET_OK;
} }
if (sbuf.st_size > 2048) if (sbuf.st_size > 16 * 1024)
{ {
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"File `%s' to big to be a private key\n", "File `%s' too big to be a private key\n",
filename); filename);
GNUNET_DISK_file_close (fh); GNUNET_DISK_file_close (fh);
return GNUNET_OK; return GNUNET_OK;