[Asterisk-cvs] asterisk/res res_crypto.c,1.23,1.24
russell
russell
Fri Aug 5 12:25:31 CDT 2005
Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv8570/res
Modified Files:
res_crypto.c
Log Message:
fix a bunch of gcc4 warnings realted to pointer signedness
Index: res_crypto.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_crypto.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- res_crypto.c 10 Jul 2005 23:21:39 -0000 1.23
+++ res_crypto.c 5 Aug 2005 16:29:30 -0000 1.24
@@ -138,7 +138,7 @@
int ktype = 0;
char *c = NULL;
char ffname[256];
- char digest[16];
+ unsigned char digest[16];
FILE *f;
struct MD5Context md5;
struct ast_key *key;
@@ -180,7 +180,7 @@
memset(buf, 0, 256);
fgets(buf, sizeof(buf), f);
if (!feof(f)) {
- MD5Update(&md5, buf, strlen(buf));
+ MD5Update(&md5, (unsigned char *) buf, strlen(buf));
}
}
MD5Final(digest, &md5);
@@ -306,7 +306,7 @@
int ast_sign_bin(struct ast_key *key, char *msg, int msglen, unsigned char *dsig)
{
unsigned char digest[20];
- int siglen = 128;
+ unsigned int siglen = 128;
int res;
if (key->ktype != AST_KEY_PRIVATE) {
More information about the svn-commits
mailing list