diff options
author | 2000-12-15 02:56:47 +0000 | |
---|---|---|
committer | 2000-12-15 02:56:47 +0000 | |
commit | c109e39817e8a1f78064639800aed6d6d86a84c0 (patch) | |
tree | 71e7f91e52cf77279251ad187cba7df277fbeac5 /lib/libssl/src/demos/b64.c | |
parent | remove section talking about photuris limitations (diff) | |
download | wireguard-openbsd-c109e39817e8a1f78064639800aed6d6d86a84c0.tar.xz wireguard-openbsd-c109e39817e8a1f78064639800aed6d6d86a84c0.zip |
openssl-engine-0.9.6 merge
Diffstat (limited to 'lib/libssl/src/demos/b64.c')
-rw-r--r-- | lib/libssl/src/demos/b64.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libssl/src/demos/b64.c b/lib/libssl/src/demos/b64.c index ad86bc9b49a..8e248e7e728 100644 --- a/lib/libssl/src/demos/b64.c +++ b/lib/libssl/src/demos/b64.c @@ -177,11 +177,11 @@ bad: if (verbose) BIO_printf(bio_err,"bufsize=%d\n",bsize); } - strbuf=Malloc(SIZE); - buff=(unsigned char *)Malloc(EVP_ENCODE_LENGTH(bsize)); + strbuf=OPENSSL_malloc(SIZE); + buff=(unsigned char *)OPENSSL_malloc(EVP_ENCODE_LENGTH(bsize)); if ((buff == NULL) || (strbuf == NULL)) { - BIO_printf(bio_err,"Malloc failure\n"); + BIO_printf(bio_err,"OPENSSL_malloc failure\n"); goto end; } @@ -259,8 +259,8 @@ bad: BIO_printf(bio_err,"bytes written:%8ld\n",BIO_number_written(out)); } end: - if (strbuf != NULL) Free(strbuf); - if (buff != NULL) Free(buff); + if (strbuf != NULL) OPENSSL_free(strbuf); + if (buff != NULL) OPENSSL_free(buff); if (in != NULL) BIO_free(in); if (out != NULL) BIO_free(out); if (benc != NULL) BIO_free(benc); |