aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_crypto.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-05 16:29:30 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-05 16:29:30 +0000
commitc7503d31d324862f238c4d041fd54e67ea55337d (patch)
treefbc225427acc55fe230824506414115b6d287a32 /res/res_crypto.c
parent1406a1f104585b283adabf460997885c39efc473 (diff)
fix a bunch of gcc4 warnings realted to pointer signedness
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6290 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_crypto.c')
-rwxr-xr-xres/res_crypto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_crypto.c b/res/res_crypto.c
index 796515ee3..35abfa6fc 100755
--- a/res/res_crypto.c
+++ b/res/res_crypto.c
@@ -138,7 +138,7 @@ static struct ast_key *try_load_key (char *dir, char *fname, int ifd, int ofd, i
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 @@ static struct ast_key *try_load_key (char *dir, char *fname, int ifd, int ofd, i
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 @@ static char *binary(int y, int len)
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) {