httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@hyperreal.com>
Subject cvs commit: apache/support htdigest.c
Date Wed, 23 Oct 1996 18:48:20 GMT
brian       96/10/23 11:48:19

  Modified:    support   htdigest.c
  Log:
  Reviewed by:	Brian Behlendorf
  Submitted by:	Albert Lunde <Albert-Lunde@nwu.edu>
  
  Removed unused variable, and call to MD5Update needed a cast.
  
  Revision  Changes    Path
  1.4       +3 -3      apache/support/htdigest.c
  
  Index: htdigest.c
  ===================================================================
  RCS file: /export/home/cvs/apache/support/htdigest.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -C3 -r1.3 -r1.4
  *** htdigest.c	1996/08/20 13:25:05	1.3
  --- htdigest.c	1996/10/23 18:48:17	1.4
  ***************
  *** 4,10 ****
     * by Alexei Kosut, based on htpasswd.c, by Rob McCool
     */
    
  ! /* $Id: htdigest.c,v 1.3 1996/08/20 13:25:05 paul Exp $ */
    
    #include <sys/types.h>
    #include <stdio.h>
  --- 4,10 ----
     * by Alexei Kosut, based on htpasswd.c, by Rob McCool
     */
    
  ! /* $Id: htdigest.c,v 1.4 1996/10/23 18:48:17 brian Exp $ */
    
    #include <sys/types.h>
    #include <stdio.h>
  ***************
  *** 70,76 ****
    
    
    void add_password(char *user, char *realm, FILE *f) {
  !     char *pw, *cpw;
        MD5_CTX context;
        unsigned char digest[16];
        char string[MAX_STRING_LEN];
  --- 70,76 ----
    
    
    void add_password(char *user, char *realm, FILE *f) {
  !     char *pw;
        MD5_CTX context;
        unsigned char digest[16];
        char string[MAX_STRING_LEN];
  ***************
  *** 89,95 ****
        sprintf(string, "%s:%s:%s", user, realm, pw);
    
        MD5Init (&context);
  !     MD5Update (&context, string, strlen(string));
        MD5Final (digest, &context);
    
        for (i = 0; i < 16; i++)
  --- 89,95 ----
        sprintf(string, "%s:%s:%s", user, realm, pw);
    
        MD5Init (&context);
  !     MD5Update (&context, (unsigned char *) string, strlen(string));
        MD5Final (digest, &context);
    
        for (i = 0; i < 16; i++)
  
  
  

Mime
View raw message