https://issues.apache.org/bugzilla/show_bug.cgi?id=57540

            Bug ID: 57540
           Summary: report TLS protocol version
           Product: Tomcat 7
           Version: trunk
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: hau...@acm.org

There is org.apache.tomcat.util.net.SSLSupport.CIPHER_SUITE_KEY and with 

request.getAttribute(SSLSupport.CIPHER_SUITE_KEY) , one can find out with
cipher suite has been used between the client and the tomcat.

However, it doesn't seem possible to do the same on the TLS version, therefore
my suggestions:

1) in SSLSuport create
  a) public static final String PROTOCOL_VERSION_KEY =
            "javax.servlet.request.secure_protocol_version";
  b) public String getProtocol() throws IOException;

2) in org.apache.tomcat.util.net.jsse.JSSESupport add

   public String getProtocol() throws IOException {
         if (session == null)
            return null;
        return session.getProtocol();
    }

   }

3) in  org.apache.coyote.http11.Http11Processor.action() add

                    sslO = sslSupport.getProtocol();
                    if (sslO != null) {
                        request.setAttribute
                            (SSLSupport.PROTOCOL_VERSION_KEY, sslO);
                    }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to