From 199d59e5a1683aec183bf4eacbc096663357c46b Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 14 Mar 1999 01:16:45 +0000 Subject: Remove some references which called malloc and free instead of Malloc and Free. --- crypto/des/enc_read.c | 7 ++++--- crypto/des/enc_writ.c | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'crypto/des') diff --git a/crypto/des/enc_read.c b/crypto/des/enc_read.c index 9fac3b24c1..265e9ca36f 100644 --- a/crypto/des/enc_read.c +++ b/crypto/des/enc_read.c @@ -58,6 +58,7 @@ #include #include +#include "cryptlib.h" #include "des_locl.h" /* This has some uglies in it but it works - even over sockets. */ @@ -87,17 +88,17 @@ des_cblock iv; if (tmpbuf == NULL) { - tmpbuf=(char *)malloc(BSIZE); + tmpbuf=(char *)Malloc(BSIZE); if (tmpbuf == NULL) return(-1); } if (net == NULL) { - net=(unsigned char *)malloc(BSIZE); + net=(unsigned char *)Malloc(BSIZE); if (net == NULL) return(-1); } if (unnet == NULL) { - unnet=(char *)malloc(BSIZE); + unnet=(char *)Malloc(BSIZE); if (unnet == NULL) return(-1); } /* left over data from last decrypt */ diff --git a/crypto/des/enc_writ.c b/crypto/des/enc_writ.c index 33ca700d71..96537ef584 100644 --- a/crypto/des/enc_writ.c +++ b/crypto/des/enc_writ.c @@ -58,6 +58,8 @@ #include #include +#include +#include "cryptlib.h" #include "des_locl.h" int des_enc_write(fd, buf, len, sched, iv) @@ -84,7 +86,7 @@ des_cblock iv; if (outbuf == NULL) { - outbuf=(char *)malloc(BSIZE+HDRSIZE); + outbuf=(char *)Malloc(BSIZE+HDRSIZE); if (outbuf == NULL) return(-1); } /* If we are sending less than 8 bytes, the same char will look -- cgit v1.2.3