diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-20 22:50:42 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-20 22:50:42 +0000 |
commit | 95dc05bc6d0dfe0f3f3681f5e27afbc3f7a35eea (patch) | |
tree | 6bdbca71df2722da6b3c27c8cc2a0b00115edaa9 /crypto/des/enc_read.c | |
parent | f36cd05b22a587e552c97797b54fd07bc0762446 (diff) |
Fix lots of warnings.
Submitted by: Richard Levitte <levitte@stacken.kth.se>
Diffstat (limited to 'crypto/des/enc_read.c')
-rw-r--r-- | crypto/des/enc_read.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crypto/des/enc_read.c b/crypto/des/enc_read.c index a33e2496b4..ed0f8f059d 100644 --- a/crypto/des/enc_read.c +++ b/crypto/des/enc_read.c @@ -93,17 +93,17 @@ int des_enc_read(int fd, char *buf, int len, des_key_schedule sched, /* extra unencrypted data * for when a block of 100 comes in but is des_read one byte at * a time. */ - static char *unnet=NULL; + static unsigned char *unnet=NULL; static int unnet_start=0; static int unnet_left=0; - static char *tmpbuf=NULL; + static unsigned char *tmpbuf=NULL; int i; long num=0,rnum; unsigned char *p; if (tmpbuf == NULL) { - tmpbuf=(char *)Malloc(BSIZE); + tmpbuf=(unsigned char *)Malloc(BSIZE); if (tmpbuf == NULL) return(-1); } if (net == NULL) @@ -113,7 +113,7 @@ int des_enc_read(int fd, char *buf, int len, des_key_schedule sched, } if (unnet == NULL) { - unnet=(char *)Malloc(BSIZE); + unnet=(unsigned char *)Malloc(BSIZE); if (unnet == NULL) return(-1); } /* left over data from last decrypt */ @@ -216,11 +216,11 @@ int des_enc_read(int fd, char *buf, int len, des_key_schedule sched, else { if (des_rw_mode & DES_PCBC_MODE) - des_pcbc_encrypt(net,buf,num,sched,iv, - DES_DECRYPT); + des_pcbc_encrypt(net,(unsigned char*)buf,num, + sched,iv,DES_DECRYPT); else - des_cbc_encrypt(net,buf,num,sched,iv, - DES_DECRYPT); + des_cbc_encrypt(net,(unsigned char*)buf,num, + sched,iv,DES_DECRYPT); } } return((int)num); |