There have been a number of complaints from a number of sources that names
[oweals/openssl.git] / crypto / evp / p_open.c
index 6dbccceafa5ab0576cd38d4605ecf24f251ef770..85d5097644a51a1d0f5360c00c58fecf8975d953 100644 (file)
@@ -82,7 +82,7 @@ int EVP_OpenInit(EVP_CIPHER_CTX *ctx, EVP_CIPHER *type, unsigned char *ek,
        }
 
        size=RSA_size(priv->pkey.rsa);
-       key=(unsigned char *)Malloc(size+2);
+       key=(unsigned char *)OPENSSL_malloc(size+2);
        if (key == NULL)
                {
                /* ERROR */
@@ -102,7 +102,7 @@ int EVP_OpenInit(EVP_CIPHER_CTX *ctx, EVP_CIPHER *type, unsigned char *ek,
        ret=1;
 err:
        if (key != NULL) memset(key,0,size);
-       Free(key);
+       OPENSSL_free(key);
        return(ret);
        }