OPENSSL_malloc and OPENSSL_free.
* 3 "normal" files (crypto/rsa/rsa_lib.c, crypto/dsa/dsa_lib.c
and crypto/dh/dh_lib.c) had their Malloc's and Free's missed
when Richard merged the changes across to this branch -
probably because those files have been changed in this branch
and gave some grief to the merge - so I've changed them
manually here.
{
if((ret->engine=ENGINE_get_default_DH()) == NULL)
{
- Free(ret);
+ OPENSSL_free(ret);
return NULL;
}
}
{
if((ret->engine=ENGINE_get_default_DSA()) == NULL)
{
- Free(ret);
+ OPENSSL_free(ret);
return NULL;
}
}
if(e == NULL)
{
- ret = (ENGINE *)Malloc(sizeof(ENGINE));
+ ret = (ENGINE *)(OPENSSL_malloc(sizeof(ENGINE));
if(ret == NULL)
{
ENGINEerr(ENGINE_F_ENGINE_NEW,
{
ENGINE *ret;
- ret = (ENGINE *)Malloc(sizeof(ENGINE));
+ ret = (ENGINE *)OPENSSL_malloc(sizeof(ENGINE));
if(ret == NULL)
{
ENGINEerr(ENGINE_F_ENGINE_NEW, ERR_R_MALLOC_FAILURE);
}
#endif
if(e->flags & ENGINE_FLAGS_MALLOCED)
- Free(e);
+ OPENSSL_free(e);
return 1;
}
{
if((ret->engine=ENGINE_get_default_RSA()) == NULL)
{
- Free(ret);
+ OPENSSL_free(ret);
return NULL;
}
}