mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
fix msg_callback() arguments for SSL 2.0 compatible client hello
(previous revision got this wrong)
This commit is contained in:
parent
b874ce4dc2
commit
3f19bbf4e3
@ -422,7 +422,7 @@ static int ssl23_client_hello(SSL *s)
|
|||||||
/* Client Hello has been sent; tell msg_callback */
|
/* Client Hello has been sent; tell msg_callback */
|
||||||
|
|
||||||
if (ssl2_compat)
|
if (ssl2_compat)
|
||||||
s->msg_callback(1, version, 0, s->init_buf->data+2, ret-2, s, s->msg_callback_arg);
|
s->msg_callback(1, SSL2_VERSION, 0, s->init_buf->data+2, ret-2, s, s->msg_callback_arg);
|
||||||
else
|
else
|
||||||
s->msg_callback(1, version, SSL3_RT_HANDSHAKE, s->init_buf->data+5, ret-5, s, s->msg_callback_arg);
|
s->msg_callback(1, version, SSL3_RT_HANDSHAKE, s->init_buf->data+5, ret-5, s, s->msg_callback_arg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user