e_os.h does not belong with the exported headers. Do not put it there
[openssl.git] / crypto / comp / comp_lib.c
index dec3b1fc778de382958b94796156f67f04cd4bc7..beb98ce8ccc8c0ade57db19e96e9384a22904939 100644 (file)
@@ -1,14 +1,14 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include "objects.h"
-#include "comp.h"
+#include <openssl/objects.h>
+#include <openssl/comp.h>
 
 COMP_CTX *COMP_CTX_new(COMP_METHOD *meth)
        {
        COMP_CTX *ret;
 
-       if ((ret=(COMP_CTX *)Malloc(sizeof(COMP_CTX))) == NULL)
+       if ((ret=(COMP_CTX *)OPENSSL_malloc(sizeof(COMP_CTX))) == NULL)
                {
                /* ZZZZZZZZZZZZZZZZ */
                return(NULL);
@@ -17,7 +17,7 @@ COMP_CTX *COMP_CTX_new(COMP_METHOD *meth)
        ret->meth=meth;
        if ((ret->meth->init != NULL) && !ret->meth->init(ret))
                {
-               Free(ret);
+               OPENSSL_free(ret);
                ret=NULL;
                }
 #if 0
@@ -37,7 +37,7 @@ void COMP_CTX_free(COMP_CTX *ctx)
        if (ctx->meth->finish != NULL)
                ctx->meth->finish(ctx);
 
-       Free(ctx);
+       OPENSSL_free(ctx);
        }
 
 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,