tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmand...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native/common jk_md5.c
Date Thu, 11 Apr 2002 21:50:03 GMT
mmanders    02/04/11 14:50:03

  Modified:    jk/native/common jk_md5.c
  Log:
  Updated to build for NetWare.
  
  Revision  Changes    Path
  1.7       +5 -5      jakarta-tomcat-connectors/jk/native/common/jk_md5.c
  
  Index: jk_md5.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_md5.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- jk_md5.c	31 Oct 2001 14:03:22 -0000	1.6
  +++ jk_md5.c	11 Apr 2002 21:50:03 -0000	1.7
  @@ -103,7 +103,7 @@
   /***************************************************************************
    * Description: MD5 encoding wrapper                                       *
    * Author:      Henri Gomez <hgomez@slib.fr>                               *
  - * Version:     $Revision: 1.6 $                                           *
  + * Version:     $Revision: 1.7 $                                           *
    ***************************************************************************/
   
   /*
  @@ -497,13 +497,13 @@
   	char	   buf[JK_MD5_DIGESTSIZE + 1];
   
       ap_MD5Init(&ctx);
  -    ap_MD5Update(&ctx, org, strlen(org));
  +    ap_MD5Update(&ctx, org, strlen((const char *)org));
   
   	if (org2 != NULL)
  -		ap_MD5Update(&ctx, org2, strlen(org2));
  +		ap_MD5Update(&ctx, org2, strlen((const char *)org2));
   
  -    ap_MD5Final(buf, &ctx);
  -	return (jk_hextocstr(buf, dst, JK_MD5_DIGESTSIZE));
  +    ap_MD5Final((unsigned char *)buf, &ctx);
  +	return (jk_hextocstr((unsigned char *)buf, dst, JK_MD5_DIGESTSIZE));
   }
   
   #endif /* USE_APACHE_MD5 */
  
  
  

--
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