# HG changeset patch # User Timo Sirainen # Date 1252892633 14400 # Node ID 05eec45994d938085597dc38122177d3af2fd903 # Parent 6df681067e0a3cd5a37b14576f3dfbf16b3f82f9 Increased SASL auth packet max. sizes for GSSAPI. diff -r 6df681067e0a -r 05eec45994d9 src/auth/auth-client-interface.h --- a/src/auth/auth-client-interface.h Sun Sep 13 21:09:33 2009 -0400 +++ b/src/auth/auth-client-interface.h Sun Sep 13 21:43:53 2009 -0400 @@ -6,7 +6,7 @@ #define AUTH_CLIENT_PROTOCOL_MAJOR_VERSION 1 #define AUTH_CLIENT_PROTOCOL_MINOR_VERSION 0 -#define AUTH_CLIENT_MAX_LINE_LENGTH 8192 +#define AUTH_CLIENT_MAX_LINE_LENGTH 16384 /* Use a bit smaller than login process timeout */ #define AUTH_REQUEST_TIMEOUT (3*60 - 30) diff -r 6df681067e0a -r 05eec45994d9 src/login-common/client-common.h --- a/src/login-common/client-common.h Sun Sep 13 21:09:33 2009 -0400 +++ b/src/login-common/client-common.h Sun Sep 13 21:43:53 2009 -0400 @@ -11,7 +11,7 @@ IMAP: Max. length of a single parameter POP3: Max. length of a command line (spec says 512 would be enough) */ -#define LOGIN_MAX_INBUF_SIZE 4096 +#define LOGIN_MAX_INBUF_SIZE 8192 struct client { struct client *prev, *next; diff -r 6df681067e0a -r 05eec45994d9 src/master/master-login-interface.h --- a/src/master/master-login-interface.h Sun Sep 13 21:09:33 2009 -0400 +++ b/src/master/master-login-interface.h Sun Sep 13 21:43:53 2009 -0400 @@ -11,7 +11,7 @@ /* This should be kept in sync with LOGIN_MAX_INBUF_SIZE. Multiply it by two to make sure there's space to transfer the command tag */ -#define MASTER_LOGIN_MAX_DATA_SIZE (4096*2) +#define MASTER_LOGIN_MAX_DATA_SIZE (8192*2) enum master_login_state { /* process is accepting new connections */