From: Rick W. <rw...@us...> - 2007-10-01 22:31:05
|
Update of /cvsroot/vpopmail/vpopmail In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv16357 Modified Files: ChangeLog vchkpw.c Log Message: change to using cast in vchkpw Index: vchkpw.c =================================================================== RCS file: /cvsroot/vpopmail/vpopmail/vchkpw.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- vchkpw.c 1 Oct 2007 06:59:55 -0000 1.20 +++ vchkpw.c 1 Oct 2007 22:31:06 -0000 1.21 @@ -739,23 +739,12 @@ int authcram( char *response, char *challenge, char *password) { - unsigned char *uchallenge; - unsigned char *upassword; unsigned char digest[16]; char digascii[33]; unsigned char h; int j; - uchallenge = malloc( strlen(challenge)+1); - memcpy( uchallenge, challenge, strlen( challenge )); - - upassword = malloc( strlen(password)+1); - memcpy( upassword, password, strlen(password)+1); - - hmac_md5( uchallenge, strlen(challenge), upassword, strlen(password), digest); - - free( uchallenge ); - free( upassword ); + hmac_md5( (unsigned char *) challenge, strlen(challenge), (unsigned char *) password, strlen(password), digest); digascii[32]=0; Index: ChangeLog =================================================================== RCS file: /cvsroot/vpopmail/vpopmail/ChangeLog,v retrieving revision 1.177 retrieving revision 1.178 diff -u -d -r1.177 -r1.178 --- ChangeLog 1 Oct 2007 06:59:55 -0000 1.177 +++ ChangeLog 1 Oct 2007 22:31:06 -0000 1.178 @@ -2,10 +2,11 @@ or info related to the entry. <http://sourceforge.net/projects/vpopmail/> 5.4.25 - unreleased - Rick Widmer + Rick Widmer, Tom Collins - another try at signedness warnings in maildirquota and vchkpw + 5.4.24 - Released 29-Sep-2007 Rick Widmer, Tom Collins - fix off_t warnings in maildirquota.c when mysql back end is used. |