From e33a7b682ca6685f716692c1960473af4ac7747b Mon Sep 17 00:00:00 2001 From: bcook <> Date: Tue, 8 Jul 2014 17:44:51 +0000 Subject: remove use of internally-deprecated OPENSSL_malloc/free ok jsing@ --- src/regress/lib/libcrypto/ecdh/ecdhtest.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/regress/lib/libcrypto/ecdh/ecdhtest.c b/src/regress/lib/libcrypto/ecdh/ecdhtest.c index 620424dbdb..d6cb61d460 100644 --- a/src/regress/lib/libcrypto/ecdh/ecdhtest.c +++ b/src/regress/lib/libcrypto/ecdh/ecdhtest.c @@ -358,7 +358,7 @@ static int ecdh_kat(BIO *out, const char *cname, int nid, Ztmplen = (EC_GROUP_get_degree(EC_KEY_get0_group(key1)) + 7)/8; if (Ztmplen != Zlen) goto err; - Ztmp = OPENSSL_malloc(Ztmplen); + Ztmp = malloc(Ztmplen); if (!ECDH_compute_key(Ztmp, Ztmplen, EC_KEY_get0_public_key(key2), key1, 0)) goto err; @@ -376,8 +376,7 @@ static int ecdh_kat(BIO *out, const char *cname, int nid, EC_KEY_free(key1); if (key2) EC_KEY_free(key2); - if (Ztmp) - OPENSSL_free(Ztmp); + free(Ztmp); if (rv) BIO_puts(out, " ok\n"); else -- cgit v1.2.3-55-g6feb