ASF Bugzilla – Attachment 32486 Details for
Bug 57540
report TLS protocol version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
apache.tomcat.tls.protocol.57540c9.patch
apache.tomcat.tls.protocol.57540c9.patch (text/plain), 2.88 KB, created by
Ralf Hauser
on 2015-02-17 15:22:06 UTC
(
hide
)
Description:
apache.tomcat.tls.protocol.57540c9.patch
Filename:
MIME Type:
Creator:
Ralf Hauser
Created:
2015-02-17 15:22:06 UTC
Size:
2.88 KB
patch
obsolete
>Index: java/org/apache/coyote/http11/Http11Processor.java >=================================================================== >--- java/org/apache/coyote/http11/Http11Processor.java (revision 1660406) >+++ java/org/apache/coyote/http11/Http11Processor.java (working copy) >@@ -975,6 +975,11 @@ > request.setAttribute > (SSLSupport.SESSION_ID_KEY, sslO); > } >+ sslO = sslSupport.getProtocol(); >+ if (sslO != null) { >+ request.setAttribute >+ (SSLSupport.PROTOCOL_VERSION_KEY, sslO); >+ } > request.setAttribute(SSLSupport.SESSION_MGR, sslSupport); > } > } catch (Exception e) { >Index: java/org/apache/tomcat/util/net/AprSSLSupport.java >=================================================================== >--- java/org/apache/tomcat/util/net/AprSSLSupport.java (revision 1660406) >+++ java/org/apache/tomcat/util/net/AprSSLSupport.java (working copy) >@@ -117,4 +117,9 @@ > throw new IOException(e); > } > } >+ >+ @Override >+ public String getProtocol() throws IOException { >+ return "method not yet implemented"; >+ } > } >Index: java/org/apache/tomcat/util/net/SSLSupport.java >=================================================================== >--- java/org/apache/tomcat/util/net/SSLSupport.java (revision 1660406) >+++ java/org/apache/tomcat/util/net/SSLSupport.java (working copy) >@@ -55,6 +55,12 @@ > public static final String SESSION_MGR = > "javax.servlet.request.ssl_session_mgr"; > >+ /** >+ * The request attribute key under which the String indicating the protocol >+ * that created the SSL socket is recorded - e.g. TLSv1 or TLSv1.2 etc. >+ */ >+ public static final String PROTOCOL_VERSION_KEY = >+ "org.apache.tomcat.util.net.secure_protocol_version"; > > /** > * The cipher suite being used on this connection. >@@ -106,5 +112,11 @@ > * @throws IOException If an error occurs trying to obtain the session ID > */ > public String getSessionId() throws IOException; >+ >+ /** >+ * @return the protocol String indicating how the SSL socket was created >+ * e.g. TLSv1 or TLSv1.2 etc. >+ */ >+ public String getProtocol() throws IOException; > } > >Index: java/org/apache/tomcat/util/net/jsse/JSSESupport.java >=================================================================== >--- java/org/apache/tomcat/util/net/jsse/JSSESupport.java (revision 1660406) >+++ java/org/apache/tomcat/util/net/jsse/JSSESupport.java (working copy) >@@ -180,5 +180,14 @@ > public void invalidateSession() { > session.invalidate(); > } >+ >+ @Override >+ public String getProtocol() throws IOException { >+ if (session == null) { >+ return null; >+ } >+ return session.getProtocol(); >+ } >+ > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 57540
:
32437
|
32486
|
32487
|
32493