changeset 12053:843bb1caac68

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 d477599824db
children 368cac4db680
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	Tue Nov 08 09:49:01 2016 -0800
+++ b/src/share/classes/sun/security/ssl/ServerHandshaker.java	Tue Oct 11 15:49:37 2016 -0700
@@ -1026,11 +1026,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;
             }
         }