jorton 2004/04/04 08:35:35
Modified: crypto apr_md5.c
Log:
Synch with 0.9 (the times you forget to check for a bug in HEAD are
always the times that it was fixed there already!):
* crypto/apr_md5.c (apr_password_validate): Use APR_SHA1PW_IDLEN.
Revision Changes Path
1.10 +1 -1 apr-util/crypto/apr_md5.c
Index: apr_md5.c
===================================================================
RCS file: /home/cvs/apr-util/crypto/apr_md5.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -w -d -u -r1.9 -r1.10
--- apr_md5.c 26 Feb 2004 21:55:12 -0000 1.9
+++ apr_md5.c 4 Apr 2004 15:35:35 -0000 1.10
@@ -684,7 +684,7 @@
*/
apr_md5_encode(passwd, hash, sample, sizeof(sample));
}
- else if(!strncmp(hash, APR_SHA1PW_ID, strlen(APR_SHA1PW_ID))) {
+ else if (!strncmp(hash, APR_SHA1PW_ID, APR_SHA1PW_IDLEN)) {
apr_sha1_base64(passwd, strlen(passwd), sample);
}
else {