Skip to content

Commit

Permalink
Merge pull request #173 from jcj83429/master
Browse files Browse the repository at this point in the history
Fix unix login with yescrypt hashed passwords
  • Loading branch information
jedisct1 authored Jun 24, 2024
2 parents 3296864 + 9d806fd commit 3294249
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ftpd.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@

#ifdef HAVE_CRYPT_H
# include <crypt.h>
# ifdef XCRYPT_VERSION_NUM
# define HAVE_YESCRYPT 1
# endif
#endif

#ifdef USE_SHADOW
Expand Down Expand Up @@ -558,8 +561,10 @@ Your platform has a very large PATH_MAX, we should not trust it.
#ifndef MAX_DATA_SIZE
# ifdef HAVE_LIBSODIUM
# define MAX_DATA_SIZE (70 * 1024 * 1024)
# elif defined(HAVE_YESCRYPT)
# define MAX_DATA_SIZE (32 * 1024 * 1024) /* Max memory usage - yescrypt needs 32M */
# elif defined(WITH_LDAP) || defined(WITH_MYSQL) || defined(WITH_PGSQL)
# define MAX_DATA_SIZE (16 * 1024 * 1024) /* Max memory usage - SQL/LDAP need more */
# define MAX_DATA_SIZE (16 * 1024 * 1024) /* Max memory usage - SQL/LDAP need 16M */
# else
# define MAX_DATA_SIZE (8 * 1024 * 1024) /* Max memory usage */
# endif
Expand Down

0 comments on commit 3294249

Please sign in to comment.