Commit ea34a583 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Fix for trace code: SSL3 doesn't include a length value for

encrypted premaster secret value.
parent 4568182a
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -843,10 +843,19 @@ static int ssl_print_client_keyex(BIO *bio, int indent, SSL *ssl,
		{

	case SSL_kRSA:
		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 */