Make EVPs allocate context memory, thus making them extensible. Rationalise
[openssl.git] / crypto / des / enc_writ.c
index 917ec725ea7b9fc04bf4dbbe776bf0774aa07e74..ea9e4b48ca3d83b43a741dc6c996aa3458632a60 100644 (file)
@@ -78,7 +78,7 @@
  */
 
 int des_enc_write(int fd, const void *_buf, int len,
-                 des_key_schedule sched, des_cblock *iv)
+                 des_key_schedule *sched, des_cblock *iv)
        {
 #ifdef _LIBC
        extern unsigned long time();
@@ -95,7 +95,7 @@ int des_enc_write(int fd, const void *_buf, int len,
 
        if (outbuf == NULL)
                {
-               outbuf=Malloc(BSIZE+HDRSIZE);
+               outbuf=OPENSSL_malloc(BSIZE+HDRSIZE);
                if (outbuf == NULL) return(-1);
                }
        /* If we are sending less than 8 bytes, the same char will look
@@ -152,7 +152,7 @@ int des_enc_write(int fd, const void *_buf, int len,
        for (j=0; j<outnum; j+=i)
                {
                /* eay 26/08/92 I was not doing writing from where we
-                * got upto. */
+                * got up to. */
                i=write(fd,(void *)&(outbuf[j]),outnum-j);
                if (i == -1)
                        {