mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Raise AGENT_MAX_MSGLEN to 256Kb.
That's the same value as in the OpenSSH source code, so it should be large enough that anyone needing to sign a larger message will have other problems too.
This commit is contained in:
parent
ac51a712b3
commit
98528db25a
@ -5,12 +5,11 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
/*
|
||||
* FIXME: it would be nice not to have this arbitrary limit. It's
|
||||
* currently needed because the Windows Pageant IPC system needs an
|
||||
* upper bound known to the client, but it's also reused as a basic
|
||||
* sanity check on incoming messages' length fields.
|
||||
* Upper limit on length of any agent message. Used as a basic sanity
|
||||
* check on messages' length fields, and used by the Windows Pageant
|
||||
* client IPC to decide how large a file mapping to allocate.
|
||||
*/
|
||||
#define AGENT_MAX_MSGLEN 8192
|
||||
#define AGENT_MAX_MSGLEN 262144
|
||||
|
||||
typedef void (*pageant_logfn_t)(void *logctx, const char *fmt, va_list ap);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user