diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-12-07 23:42:33 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-12-07 23:42:33 +0000 |
commit | 36b5bb6f2f944d6fb9a458da76ffdfa9154c03c2 (patch) | |
tree | 4f3e5dac0f3bca1382a3221febeeb60a0e251b41 /ssl/s23_clnt.c | |
parent | 30c278aa6bb614f4cfc5a26c7cbe66ad090f6896 (diff) |
send out the raw SSL/TLS headers to the msg_callback and display them in SSL_trace
Diffstat (limited to 'ssl/s23_clnt.c')
-rw-r--r-- | ssl/s23_clnt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/s23_clnt.c b/ssl/s23_clnt.c index 20a8b3ba5c..2c38b1a76a 100644 --- a/ssl/s23_clnt.c +++ b/ssl/s23_clnt.c @@ -587,7 +587,10 @@ static int ssl23_client_hello(SSL *s) if (ssl2_compat) s->msg_callback(1, SSL2_VERSION, 0, s->init_buf->data+2, ret-2, s, s->msg_callback_arg); else + { + s->msg_callback(1, version, SSL3_RT_HEADER, s->init_buf->data, 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); + } } return ret; @@ -743,7 +746,10 @@ static int ssl23_get_server_hello(SSL *s) } if (s->msg_callback) + { + s->msg_callback(0, s->version, SSL3_RT_HEADER, p, 5, s, s->msg_callback_arg); s->msg_callback(0, s->version, SSL3_RT_ALERT, p+5, 2, s, s->msg_callback_arg); + } s->rwstate=SSL_NOTHING; SSLerr(SSL_F_SSL23_GET_SERVER_HELLO,SSL_AD_REASON_OFFSET+p[6]); |