openbsd-ports/net/pure-ftpd/patches/patch-src_ftpd_h
sthen d457f17625 backport upstream commit to unbreak pure-ftpd with argon2id, which is now the
default in pure-pw, found the hard way. ok brad (maintainer)
2018-04-06 14:08:12 +00:00

20 lines
724 B
Plaintext

$OpenBSD: patch-src_ftpd_h,v 1.1 2018/04/06 14:08:12 sthen Exp $
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
Index: src/ftpd.h
--- src/ftpd.h.orig
+++ src/ftpd.h
@@ -557,7 +557,7 @@ Your platform has a very large PATH_MAX, we should not
#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