8167459: Add debug output for indicating if a chosen ciphersuite was legacy
Reviewed-by: xuelei
--- a/jdk/src/java.base/share/classes/sun/security/ssl/ServerHandshaker.java Tue Oct 11 12:33:15 2016 +0200
+++ b/jdk/src/java.base/share/classes/sun/security/ssl/ServerHandshaker.java Tue Oct 11 15:49:37 2016 -0700
@@ -1172,11 +1172,18 @@
if (trySetCipherSuite(suite) == false) {
continue;
}
+
+ if (debug != null && Debug.isOn("handshake")) {
+ System.out.println("Standard ciphersuite chosen: " + suite);
+ }
return;
}
for (CipherSuite suite : legacySuites) {
if (trySetCipherSuite(suite)) {
+ if (debug != null && Debug.isOn("handshake")) {
+ System.out.println("Legacy ciphersuite chosen: " + suite);
+ }
return;
}
}