coar        99/03/25 08:43:24

  Modified:    src/ap   ap_md5c.c
  Log:
        Fix Win32 password checking so legacy plaintext passwords
        work again.
  
  PR:           4114
  Submitted by: Ken Coar and Ryan Bloom <[EMAIL PROTECTED]>
  Reviewed by:  Ken Coar
  
  Revision  Changes    Path
  1.24      +5 -1      apache-1.3/src/ap/ap_md5c.c
  
  Index: ap_md5c.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/ap/ap_md5c.c,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- ap_md5c.c 1999/03/05 22:17:53     1.23
  +++ ap_md5c.c 1999/03/25 16:43:21     1.24
  @@ -601,7 +601,11 @@
         * It's not our algorithm, so feed it to crypt() if possible.
         */
   #ifdef WIN32
  -     return "crypt() unavailable on Win32, cannot validate password";
  +     /*
  +      * On Windows, the only alternative to our MD5 algorithm is plain
  +      * text.
  +      */
  +     ap_cpystrn(sample, passwd, sizeof(sample) - 1);
   #else
        crypt_pw = crypt(passwd, hash);
        ap_cpystrn(sample, crypt_pw, sizeof(sample) - 1);
  
  
  

Reply via email to