tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3 CoyoteInterceptor2.java
Date Sat, 23 Nov 2002 08:38:23 GMT
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:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message