changeset 8616:7348a8014d72

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 3c911bfe30a9
children 5da61f076c54
files src/share/classes/sun/security/ssl/ServerHandshaker.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/ssl/ServerHandshaker.java	Wed Oct 12 18:45:23 2016 +0300
+++ b/src/share/classes/sun/security/ssl/ServerHandshaker.java	Tue Oct 11 15:49:37 2016 -0700
@@ -958,11 +958,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;
             }
         }