提交 e5febf25 编写于 作者: W wetmore

8169229: RSAClientKeyExchange debug info is incorrect

Reviewed-by: xuelei
上级 136d7e93
......@@ -255,7 +255,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);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册