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 Wed, 28 Nov 2001 05:05:04 GMT
dougm       01/11/27 21:05:04

  Modified:    modules/ssl mod_ssl.c
  Log:
  replace strlen(cpVHostMD5) with MD5_DIGESTSIZE*2 in ssl_hook_pre_connection()
  since we know the string returned by ap_md5() will always be that length
  
  Revision  Changes    Path
  1.39      +1 -1      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.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- mod_ssl.c	2001/11/28 04:31:34	1.38
  +++ mod_ssl.c	2001/11/28 05:05:04	1.39
  @@ -265,7 +265,7 @@
       SSL_clear(ssl);
       cpVHostMD5 = ap_md5(c->pool, cpVHostID);
       if (!SSL_set_session_id_context(ssl, (unsigned char *)cpVHostMD5,
  -            strlen(cpVHostMD5))) {
  +                                    MD5_DIGESTSIZE*2)) {
           ssl_log(c->base_server, SSL_LOG_ERROR|SSL_ADD_SSLERR,
                   "Unable to set session id context to `%s'", cpVHostMD5);
           c->aborted = 1;
  
  
  

Mime
View raw message