billbarker 2002/11/23 00:38:23 Modified: coyote/src/java/org/apache/coyote/tomcat3 CoyoteInterceptor2.java Log: Return to Servlet-Spec 2.2 compliance. Revert to the brain-dead 2.2 spec. We are only allowed to send the top level cert in 2.2 land, so don't send the full array. Revision Changes Path 1.13 +8 -0 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteInterceptor2.java Index: CoyoteInterceptor2.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteInterceptor2.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- CoyoteInterceptor2.java 20 Jun 2002 18:53:44 -0000 1.12 +++ CoyoteInterceptor2.java 23 Nov 2002 08:38:23 -0000 1.13 @@ -241,6 +241,14 @@ if(isSSLAttribute(key)) { cReq.action(ActionCode.ACTION_REQ_SSL_ATTRIBUTE, httpReq.getCoyoteRequest() ); + if( SSLSupport.CERTIFICATE_KEY.equals(key) ) { + // Only allowed a single cert under the 2.2 Spec. + Object [] value = (Object []) cReq.getAttribute(key); + if( value != null ) { + cReq.setAttribute(key, value[0]); + } + } + return cReq.getAttribute(key); }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>