stoddard 99/03/05 14:05:12
Modified: pthreads/src/ap ap_md5c.c
Log:
Fix md5 encryption...
Revision Changes Path
1.2 +2 -2 apache-apr/pthreads/src/ap/ap_md5c.c
Index: ap_md5c.c
===================================================================
RCS file: /export/home/cvs/apache-apr/pthreads/src/ap/ap_md5c.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ap_md5c.c 1999/02/07 06:29:14 1.1
+++ ap_md5c.c 1999/03/05 22:05:11 1.2
@@ -602,11 +602,11 @@
*/
#ifdef WIN32
return "crypt() unavailable on Win32, cannot validate password";
- }
#else
crypt_pw = crypt(passwd, hash);
ap_cpystrn(sample, crypt_pw, sizeof(sample) - 1);
+#endif
}
+
return (strcmp(sample, hash) == 0) ? NULL : "password mismatch";
-#endif
}