costin 02/04/05 09:48:27
Modified: http11/src/java/org/apache/coyote/http11
Http11Processor.java
Log:
Added some comments with the code that will have to be added to pass up
the SSL information.
This info shouldn't be extracted unless the user requests it - it is
pretty expensive. The current method is to save the socket and have the
connector extract it directly, but that doesn't work for other protocols.
Revision Changes Path
1.14 +13 -0
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java
Index: Http11Processor.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Http11Processor.java 5 Apr 2002 15:53:09 -0000 1.13
+++ Http11Processor.java 5 Apr 2002 17:48:26 -0000 1.14
@@ -455,6 +455,19 @@
started = false;
+ } else if (actionCode == ActionCode.ACTION_REQ_ATTRIBUTE ) {
+
+ // XXX Will be fixed if we replace ActionCode/Action with TcHandler,
+ // the context can be used to pass and return information
+// try {
+// if(key.equals("javax.servlet.request.cipher_suite"))
+// return httpReq.sslSupport.getCipherSuite();
+// if(key.equals("javax.servlet.request.X509Certificate"))
+// return httpReq.sslSupport.getPeerCertificateChain();
+// } catch (Exception e){
+// log.warn("Exception getting SSL attribute " + key,e);
+// return null;
+// }
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>