summaryrefslogtreecommitdiffstats
path: root/ssl/t1_trce.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-05-05 11:55:55 +0100
committerMatt Caswell <matt@openssl.org>2017-05-08 11:42:37 +0100
commitad5100bc41876a9e81b23dfa89899e640d5d1996 (patch)
tree9d443fa81882fb99aa5860c9b09f53ff8d2757a3 /ssl/t1_trce.c
parenteee2750bd3d25265bb44d029877434d2cc80970c (diff)
Add support to SSL_trace() for inner content types
When using the -trace option with TLSv1.3 all records appear as "application data". This adds the ability to see the inner content type too. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3408)
Diffstat (limited to 'ssl/t1_trce.c')
-rw-r--r--ssl/t1_trce.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/t1_trce.c b/ssl/t1_trce.c
index 8b6433054e..891310d270 100644
--- a/ssl/t1_trce.c
+++ b/ssl/t1_trce.c
@@ -1494,6 +1494,12 @@ void SSL_trace(int write_p, int version, int content_type,
msg[msglen - 2] << 8 | msg[msglen - 1]);
}
break;
+
+ case SSL3_RT_INNER_CONTENT_TYPE:
+ BIO_printf(bio, " Inner Content Type = %s (%d)",
+ ssl_trace_str(msg[0], ssl_content_tbl), msg[0]);
+ break;
+
case SSL3_RT_HANDSHAKE:
if (!ssl_print_handshake(bio, ssl, ssl->server ? write_p : !write_p,
msg, msglen, 4))