8167459: Add debug output for indicating if a chosen ciphersuite was legacy
authorwetmore
Tue, 11 Oct 2016 15:49:37 -0700
changeset 41477 702287a26ac8
parent 41476 7fc722354621
child 41478 ca05091d2cf8
8167459: Add debug output for indicating if a chosen ciphersuite was legacy Reviewed-by: xuelei
jdk/src/java.base/share/classes/sun/security/ssl/ServerHandshaker.java
--- 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;
             }
         }