summaryrefslogtreecommitdiff
path: root/src/util/taler-exchange-secmod-rsa.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-27 14:21:36 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-27 14:21:36 +0100
commitf795e32b010346ac571b65cd0bfa725a7ae9d3fb (patch)
treef792c507d019f0894ade7e87296fc300a4b0db6d /src/util/taler-exchange-secmod-rsa.c
parentf493122033ca813d571624745ebb38bb037a5e66 (diff)
downloadexchange-f795e32b010346ac571b65cd0bfa725a7ae9d3fb.tar.gz
exchange-f795e32b010346ac571b65cd0bfa725a7ae9d3fb.tar.bz2
exchange-f795e32b010346ac571b65cd0bfa725a7ae9d3fb.zip
-fix size check for RSA-8k
Diffstat (limited to 'src/util/taler-exchange-secmod-rsa.c')
-rw-r--r--src/util/taler-exchange-secmod-rsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c
index b384be138..343ae3c43 100644
--- a/src/util/taler-exchange-secmod-rsa.c
+++ b/src/util/taler-exchange-secmod-rsa.c
@@ -1167,10 +1167,10 @@ import_key (void *cls,
GNUNET_break (0 == close (fd));
return GNUNET_OK;
}
- if (sbuf.st_size > 2048)
+ if (sbuf.st_size > 16 * 1024)
{
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);
GNUNET_DISK_file_close (fh);
return GNUNET_OK;