aboutsummaryrefslogtreecommitdiffstats
path: root/ssl/t1_trce.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-02-04 14:53:47 +0000
committerDr. Stephen Henson <steve@openssl.org>2013-02-04 15:13:12 +0000
commitea34a58385058748c51037bfb2c3208ee639f5f1 (patch)
tree4db7d2eaf356c396ca41d6cef8dcb7719f20a9aa /ssl/t1_trce.c
parent4568182a8b8cbfd15cbc175189029ac547bd1762 (diff)
downloadopenssl-ea34a58385058748c51037bfb2c3208ee639f5f1.tar.gz
Fix for trace code: SSL3 doesn't include a length value for
encrypted premaster secret value.
Diffstat (limited to 'ssl/t1_trce.c')
-rw-r--r--ssl/t1_trce.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/ssl/t1_trce.c b/ssl/t1_trce.c
index b8651641a3..c603134821 100644
--- a/ssl/t1_trce.c
+++ b/ssl/t1_trce.c
@@ -843,10 +843,19 @@ static int ssl_print_client_keyex(BIO *bio, int indent, SSL *ssl,
{
case SSL_kRSA:
- if (!ssl_print_hexbuf(bio, indent + 2,
+ if (TLS1_get_version(ssl) == SSL3_VERSION)
+ {
+ ssl_print_hex(bio, indent + 2,
+ "EncyptedPreMasterSecret",
+ msg, msglen);
+ }
+ else
+ {
+ if (!ssl_print_hexbuf(bio, indent + 2,
"EncyptedPreMasterSecret", 2,
&msg, &msglen))
return 0;
+ }
break;
/* Implicit parameters only allowed for static DH */