changeset 41477:702287a26ac8

8167459: Add debug output for indicating if a chosen ciphersuite was legacy Reviewed-by: xuelei
author wetmore
date Tue, 11 Oct 2016 15:49:37 -0700
parents 7fc722354621
children ca05091d2cf8
files jdk/src/java.base/share/classes/sun/security/ssl/ServerHandshaker.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
             }
         }