httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: httpd-2.0/modules/ssl mod_ssl.c
Date Tue, 12 Mar 2002 16:55:56 GMT
dougm       02/03/12 08:55:56

  Modified:    modules/ssl mod_ssl.c
  Log:
  minor performance enhancement: no need to use md5 of VHostID for the
  session id, just use the VHostID itself.
  
  Revision  Changes    Path
  1.50      +4 -6      httpd-2.0/modules/ssl/mod_ssl.c
  
  Index: mod_ssl.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ssl/mod_ssl.c,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- mod_ssl.c	12 Mar 2002 16:50:44 -0000	1.49
  +++ mod_ssl.c	12 Mar 2002 16:55:56 -0000	1.50
  @@ -230,7 +230,6 @@
   {
       SSLSrvConfigRec *sc = mySrvConfig(c->base_server);
       SSL *ssl;
  -    char *vhost_md5;
       SSLConnRec *sslconn;
   
       /*
  @@ -276,13 +275,12 @@
           return DECLINED; /* XXX */
       }
   
  -    vhost_md5 = ap_md5_binary(c->pool, sc->szVHostID, sc->nVHostID_length);
  -
  -    if (!SSL_set_session_id_context(ssl, (unsigned char *)vhost_md5,
  -                                    MD5_DIGESTSIZE*2))
  +    if (!SSL_set_session_id_context(ssl,
  +                                    (unsigned char *)sc->szVHostID,
  +                                    sc->nVHostID_length))
       {
           ssl_log(c->base_server, SSL_LOG_ERROR|SSL_ADD_SSLERR,
  -                "Unable to set session id context to `%s'", vhost_md5);
  +                "Unable to set session id context to `%s'", sc->szVHostID);
   
           c->aborted = 1;
   
  
  
  

Mime
View raw message