Fix for trace code: SSL3 doesn't include a length value for
encrypted premaster secret value. (cherry picked from commit ea34a58385058748c51037bfb2c3208ee639f5f1)
This commit is contained in:
parent
f8435919a1
commit
c867d87180
@ -843,10 +843,19 @@ static int ssl_print_client_keyex(BIO *bio, int indent, SSL *ssl,
|
|||||||
{
|
{
|
||||||
|
|
||||||
case SSL_kRSA:
|
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,
|
"EncyptedPreMasterSecret", 2,
|
||||||
&msg, &msglen))
|
&msg, &msglen))
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Implicit parameters only allowed for static DH */
|
/* Implicit parameters only allowed for static DH */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user