You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-ftp/pure-ftpd/files/pure-ftpd-1.0.47-MAX_DATA_S...

23 lines
787 B

From 27a5c200f9643ce907118aad169279b3a66a9e8a Mon Sep 17 00:00:00 2001
From: Frank Denis <github@pureftpd.org>
Date: Sat, 4 Nov 2017 20:46:16 +0100
Subject: [PATCH] Increase MAX_DATA_SIZE due to Argon2id requirements
---
src/ftpd.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ftpd.h b/src/ftpd.h
index 1beeab8..5bb1f6b 100644
--- a/src/ftpd.h
+++ b/src/ftpd.h
@@ -557,7 +557,7 @@ Your platform has a very large PATH_MAX, we should not trust it.
#ifndef MAX_DATA_SIZE
# ifdef HAVE_LIBSODIUM
-# define MAX_DATA_SIZE (40 * 1024 * 1024)
+# define MAX_DATA_SIZE (70 * 1024 * 1024)
# elif defined(WITH_LDAP) || defined(WITH_MYSQL) || defined(WITH_PGSQL)
# define MAX_DATA_SIZE (16 * 1024 * 1024) /* Max memory usage - SQL/LDAP need more */
# else