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, 13 Apr 2002 06:18:18 GMT
billbarker    02/04/12 23:18:18

  Modified:    coyote/src/java/org/apache/coyote/tomcat3
                        CoyoteInterceptor2.java
  Log:
  Use SSLSupport fields to validate SSL attributes.
  
  Revision  Changes    Path
  1.10      +4 -5      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.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- CoyoteInterceptor2.java	10 Apr 2002 23:50:33 -0000	1.9
  +++ CoyoteInterceptor2.java	13 Apr 2002 06:18:18 -0000	1.10
  @@ -254,11 +254,10 @@
        * Check if a string is a reserved SSL attribute key.
        */
       public static boolean isSSLAttribute(String key) {
  -        if(key == null)
  -            return false;
  -        return key.equals("javax.servlet.request.cipher_suite") ||
  -            key.equals("javax.servlet.request.X509Certificate") ||
  -            key.equals("javax.servlet.request.key_size");
  +	return SSLSupport.CIPHER_SUITE_KEY.equals(key) ||
  +	    SSLSupport.KEY_SIZE_KEY.equals(key)        ||
  +	    SSLSupport.CERTIFICATE_KEY.equals(key)     ||
  +	    SSLSupport.SESSION_ID_KEY.equals(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