mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-08 03:25:05 +00:00
8169229: RSAClientKeyExchange debug info is incorrect
Reviewed-by: xuelei
This commit is contained in:
parent
31c4b07045
commit
5e03e2fcd5
@ -257,7 +257,13 @@ final class RSAClientKeyExchange extends HandshakeMessage {
|
||||
|
||||
@Override
|
||||
void print(PrintStream s) throws IOException {
|
||||
s.println("*** ClientKeyExchange, RSA PreMasterSecret, " +
|
||||
protocolVersion);
|
||||
String version = "version not available/extractable";
|
||||
|
||||
byte[] ba = preMaster.getEncoded();
|
||||
if (ba != null && ba.length >= 2) {
|
||||
version = ProtocolVersion.valueOf(ba[0], ba[1]).name;
|
||||
}
|
||||
|
||||
s.println("*** ClientKeyExchange, RSA PreMasterSecret, " + version);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user