Skip to content
Snippets Groups Projects
Commit 6cc210ce authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

SSL.handshake: Support SSLv2 hello again.

The initialization of the session got lost for SSLv2 hellos
when the storage for several extensions was moved to the session.

Fixes support for *old* ssl clients (like check_http from Nagios).
parent aeb1b0cd
No related branches found
No related tags found
No related merge requests found
...@@ -1091,6 +1091,7 @@ int(-1..1) handle_handshake(int type, string(0..255) data, string(0..255) raw) ...@@ -1091,6 +1091,7 @@ int(-1..1) handle_handshake(int type, string(0..255) data, string(0..255) raw)
challenge = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + challenge; challenge = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + challenge;
client_random = challenge[sizeof (challenge) - 32..]; client_random = challenge[sizeof (challenge) - 32..];
session = context->new_session();
{ {
int(-1..0) err = reply_new_session(cipher_suites, int(-1..0) err = reply_new_session(cipher_suites,
({ COMPRESSION_null }) ); ({ COMPRESSION_null }) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment