@@ -166,29 +166,35 @@ static const char *get_query_tcp(int port, unsigned int *len)
166166 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
167167 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
168168 ;
169- // This handshake claims support for DHE + AES-128 and AES-256 either in CBC
170- // or GCM mode, as well as SHA256 and SHA1 for signatures so it should work
169+ // This handshake claims support for (EC-) DHE + AES-128 or AES-256 + CBC
170+ // or GCM mode, and SHA256 or SHA1 for signatures so it should work
171171 // with modern as well as older server configs.
172172 static const char tls [] =
173173 "\x16" // Handshake (22)
174174 "\x03\x03" // TLS 1.2
175- "\x00\x3f " // Length
175+ "\x00\x55 " // Length
176176 "\x01" // Client Hello (1)
177- "\x00\x00\x3b " // Length
177+ "\x00\x00\x51 " // Length
178178 "\x03\x03" // TLS 1.2
179179
180180 // Random
181181 "\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa"
182182 "\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa"
183183
184184 "\x00" // Session ID length
185- "\x00\x08" // Cipher Suites length (= 8)
185+ "\x00\x10" // Cipher Suites length (= 16)
186+ "\xc0\x2b\xc0\x2c\xc0\x09\xc0\x0a"
186187 "\x00\x9e\x00\x9f\x00\x33\x00\x39"
187188 "\x01\x00" // Null Compression
188- "\x00\x0a " // Extensions length (= 10 )
189+ "\x00\x18 " // Extensions length (= 24 )
189190
190- // Signature Algorithms
191- "\x00\x0d\x00\x06\x00\x04\x04\x01\x02\x01"
191+ "\x00\x0d" // Extension: signature_algorithms
192+ "\x00\x0a\x00\x08" // Length fields
193+ "\x04\x01\x02\x01\x04\x03\x06\x03"
194+
195+ "\x00\x0a" // Extension: supported_groups
196+ "\x00\x06\x00\x04" // Length fields
197+ "\x00\x19\x00\x17"
192198 ;
193199
194200 switch (port ) {
0 commit comments