From 52f782698df6970e0b56373c3fb4e357f2deb04f Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 17 Jun 2015 14:47:27 +0100 Subject: [PATCH] PSK trace keyex fixes. Reviewed-by: Matt Caswell --- ssl/t1_trce.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ssl/t1_trce.c b/ssl/t1_trce.c index 97170cddce..40c5bebd5b 100644 --- a/ssl/t1_trce.c +++ b/ssl/t1_trce.c @@ -986,6 +986,13 @@ static int ssl_print_client_keyex(BIO *bio, int indent, SSL *ssl, if (!ssl_print_hexbuf(bio, indent + 2, "ecdh_Yc", 1, &msg, &msglen)) return 0; break; + + case SSL_kPSK: + if (!ssl_print_hexbuf(bio, indent + 2, + "psk_identity", 2, &msg, &msglen)) + return 0; + break; + } return 1; @@ -1049,6 +1056,13 @@ static int ssl_print_server_keyex(BIO *bio, int indent, SSL *ssl, return 0; } break; + + case SSL_kPSK: + if (!ssl_print_hexbuf(bio, indent + 2, + "psk_identity_hint", 2, &msg, &msglen)) + return 0; + /* No signature */ + return 1; } return ssl_print_signature(bio, indent, ssl, &msg, &msglen); } -- 2.25.1