diff options
author | Richard Levitte <levitte@openssl.org> | 2000-06-02 00:19:21 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-06-02 00:19:21 +0200 |
commit | 26a3a48d65c7464b400ec1de439994d7f0d25fed (patch) | |
tree | 91abb7d351b174e58f60e5353b731b916eaf0c5c /apps/rsa.c | |
parent | Use NO_FP_API. (diff) | |
download | openssl-26a3a48d65c7464b400ec1de439994d7f0d25fed.tar.xz openssl-26a3a48d65c7464b400ec1de439994d7f0d25fed.zip |
There have been a number of complaints from a number of sources that names
like Malloc, Realloc and especially Free conflict with already existing names
on some operating systems or other packages. That is reason enough to change
the names of the OpenSSL memory allocation macros to something that has a
better chance of being unique, like prepending them with OPENSSL_.
This change includes all the name changes needed throughout all C files.
Diffstat (limited to 'apps/rsa.c')
-rw-r--r-- | apps/rsa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/rsa.c b/apps/rsa.c index 9d4c2e6564..1269f65703 100644 --- a/apps/rsa.c +++ b/apps/rsa.c @@ -345,15 +345,15 @@ bad: i=1; size=i2d_Netscape_RSA(rsa,NULL,NULL); - if ((p=(unsigned char *)Malloc(size)) == NULL) + if ((p=(unsigned char *)OPENSSL_malloc(size)) == NULL) { - BIO_printf(bio_err,"Malloc failure\n"); + BIO_printf(bio_err,"Memory allocation failure\n"); goto end; } pp=p; i2d_Netscape_RSA(rsa,&p,NULL); BIO_write(out,(char *)pp,size); - Free(pp); + OPENSSL_free(pp); } #endif else if (outformat == FORMAT_PEM) { @@ -376,8 +376,8 @@ end: if(in != NULL) BIO_free(in); if(out != NULL) BIO_free(out); if(rsa != NULL) RSA_free(rsa); - if(passin) Free(passin); - if(passout) Free(passout); + if(passin) OPENSSL_free(passin); + if(passout) OPENSSL_free(passout); EXIT(ret); } #else /* !NO_RSA */ |