Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion winpgntc.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@

#include <arpa/inet.h>

#define AGENT_MAX_MSGLEN 8192
/* OpenSSH uses the same size value:
* https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/ssh-agent.c?rev=1.287&content-type=text/x-cvsweb-markup#:~:text=AGENT_MAX_LEN
*
* 4 is for the 4 bytes message length field added before the agent
* message.
*/
#define AGENT_MAX_MSGLEN ((256*1024)+4)

#if defined(__MSYS__) && !defined(__NEWLIB__)
// MSYS doesn't have stdint.h or uint32_t,
Expand Down