Mercurial > dropbear
comparison sysoptions.h @ 603:3aa74a4d83ae
Refer to RFCs rather than drafts, update some section references
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 27 Feb 2011 13:57:32 +0000 |
parents | 7ec26a5b92e7 |
children | 810dfc792ca9 |
comparison
equal
deleted
inserted
replaced
602:2d896267f16d | 603:3aa74a4d83ae |
---|---|
97 for algos) but seems valid */ | 97 for algos) but seems valid */ |
98 | 98 |
99 #define MAX_PROPOSED_ALGO 20 | 99 #define MAX_PROPOSED_ALGO 20 |
100 | 100 |
101 /* size/count limits */ | 101 /* size/count limits */ |
102 /* From transport rfc */ | |
102 #define MIN_PACKET_LEN 16 | 103 #define MIN_PACKET_LEN 16 |
103 | 104 |
104 #define RECV_MAX_PACKET_LEN (MAX(35000, ((RECV_MAX_PAYLOAD_LEN)+100))) | 105 #define RECV_MAX_PACKET_LEN (MAX(35000, ((RECV_MAX_PAYLOAD_LEN)+100))) |
105 | 106 |
106 /* for channel code */ | 107 /* for channel code */ |
121 #define MAX_PUBKEY_SIZE 1700 | 122 #define MAX_PUBKEY_SIZE 1700 |
122 /* For a 4096 bit DSS key, empirically determined */ | 123 /* For a 4096 bit DSS key, empirically determined */ |
123 #define MAX_PRIVKEY_SIZE 1700 | 124 #define MAX_PRIVKEY_SIZE 1700 |
124 | 125 |
125 /* The maximum size of the bignum portion of the kexhash buffer */ | 126 /* The maximum size of the bignum portion of the kexhash buffer */ |
126 /* Sect. 8 of the transport draft, K_S + e + f + K */ | 127 /* Sect. 8 of the transport rfc 4253, K_S + e + f + K */ |
127 #define KEXHASHBUF_MAX_INTS (1700 + 130 + 130 + 130) | 128 #define KEXHASHBUF_MAX_INTS (1700 + 130 + 130 + 130) |
128 | 129 |
129 #define DROPBEAR_MAX_SOCKS 2 /* IPv4, IPv6 are all we'll get for now. Revisit | 130 #define DROPBEAR_MAX_SOCKS 2 /* IPv4, IPv6 are all we'll get for now. Revisit |
130 in a few years time.... */ | 131 in a few years time.... */ |
131 | 132 |