tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shac...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/native/jk jk_ajp13.c
Date Fri, 23 Jun 2000 10:33:17 GMT
shachor     00/06/23 03:33:16

  Modified:    src/native/jk jk_ajp13.c
  Log:
  Prepare for environment attribute passing ...
  Add environment variable marshaling/demarshaling
  support for AJPv13
  
  Revision  Changes    Path
  1.5       +15 -1     jakarta-tomcat/src/native/jk/jk_ajp13.c
  
  Index: jk_ajp13.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/native/jk/jk_ajp13.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- jk_ajp13.c	2000/06/16 07:03:21	1.4
  +++ jk_ajp13.c	2000/06/23 10:33:13	1.5
  @@ -56,7 +56,7 @@
   /***************************************************************************
    * Description: Experimental bi-directionl protocol handler.               *
    * Author:      Gal Shachor <shachor@il.ibm.com>                           *
  - * Version:     $Revision: 1.4 $                                           *
  + * Version:     $Revision: 1.5 $                                           *
    ***************************************************************************/
   
   
  @@ -77,6 +77,7 @@
   #define SC_A_SSL_CERT           (unsigned char)7
   #define SC_A_SSL_CIPHER         (unsigned char)8
   #define SC_A_SSL_SESSION        (unsigned char)9
  +#define SC_A_REQ_ATTRIBUTE      (unsigned char)10
   #define SC_A_ARE_DONE           (unsigned char)0xFF
   
   /*
  @@ -454,6 +455,19 @@
                      "Error ajp13_marshal_into_msgb - Error appending the SSL session\n");
   
               return JK_FALSE;
  +        }
  +    }
  +
  +    if(s->num_attributes > 0) {
  +        for(i = 0 ; i < s->num_attributes ; i++) {
  +            if(0 != jk_b_append_byte(msg, SC_A_REQ_ATTRIBUTE)       ||
  +               0 != jk_b_append_string(msg, s->attributes_names[i]) ||
  +               0 != jk_b_append_string(msg, s->attributes_values[i])) {
  +                jk_log(l, JK_LOG_ERROR, 
  +                   "Error ajp13_marshal_into_msgb - Error appending attribute %s=%s\n",
  +                   s->attributes_names[i], s->attributes_values[i]);
  +                return JK_FALSE;
  +            }
           }
       }
   
  
  
  

Mime
View raw message