diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2013-03-08 16:45:37 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-03-11 13:05:07 +0000 |
commit | 890f2f8b92b385ef3898cdb4a15a071ffcf8107f (patch) | |
tree | 50f30a5d68bc79acb26704a39d251916018a597e /ssl/d1_pkt.c | |
parent | ca303d333bb3ff61a946f92b2569ee98ae18c3cb (diff) | |
download | openssl-new-890f2f8b92b385ef3898cdb4a15a071ffcf8107f.tar.gz |
DTLS trace support.
Add DTLS record header parsing, different client hello format and add
HelloVerifyRequest message type.
Add code to d1_pkt.c to send message headers to the message callback.
Diffstat (limited to 'ssl/d1_pkt.c')
-rw-r--r-- | ssl/d1_pkt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index e81be2bc4a..b7ff9a8705 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -587,6 +587,9 @@ again: p=s->packet; + if (s->msg_callback) + s->msg_callback(0, 0, SSL3_RT_HEADER, p, DTLS1_RT_HEADER_LENGTH, s, s->msg_callback_arg); + /* Pull apart the header into the DTLS1_RECORD */ rr->type= *(p++); ssl_major= *(p++); @@ -1627,6 +1630,9 @@ int do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len, pseq+=6; s2n(wr->length,pseq); + if (s->msg_callback) + s->msg_callback(1, 0, SSL3_RT_HEADER, pseq - DTLS1_RT_HEADER_LENGTH, DTLS1_RT_HEADER_LENGTH, s, s->msg_callback_arg); + /* we should now have * wr->data pointing to the encrypted data, which is * wr->length long */ |