summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNicola Tuveri <nic.tuv@gmail.com>2017-04-12 06:36:50 +0300
committerRichard Levitte <levitte@openssl.org>2017-04-12 15:06:58 +0200
commite7bed7632c33211d5b7b03ace412bf4ffa3b98aa (patch)
tree2b6db476f213797995bb88373b5175745a257d3c /test
parent9d5083273a54c990ec509f2e7da240eaaafb52a3 (diff)
Remove more stale code in ecdhtest.c
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3188)
Diffstat (limited to 'test')
-rw-r--r--test/ecdhtest.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/test/ecdhtest.c b/test/ecdhtest.c
index f8e5335fc8..11e0903b81 100644
--- a/test/ecdhtest.c
+++ b/test/ecdhtest.c
@@ -212,10 +212,8 @@ static int ecdh_cavs_kat(BIO *out, const ecdh_cavs_kat_t *kat)
int main(int argc, char *argv[])
{
- BN_CTX *ctx = NULL;
int ret = 1;
- EC_builtin_curve *curves = NULL;
- size_t crv_len = 0, n = 0;
+ size_t n = 0;
BIO *out;
CRYPTO_set_mem_debug(1);
@@ -228,16 +226,6 @@ int main(int argc, char *argv[])
EXIT(1);
BIO_set_fp(out, stdout, BIO_NOCLOSE | BIO_FP_TEXT);
- if ((ctx = BN_CTX_new()) == NULL)
- goto err;
-
- /* get a list of all internal curves */
- crv_len = EC_get_builtin_curves(NULL, 0);
- curves = OPENSSL_malloc(sizeof(*curves) * crv_len);
- if (curves == NULL) goto err;
-
- if (!EC_get_builtin_curves(curves, crv_len)) goto err;
-
/* NAMED CURVES TESTS: moved to evptests.txt */
/* KATs: moved to evptests.txt */
@@ -252,8 +240,6 @@ int main(int argc, char *argv[])
err:
ERR_print_errors_fp(stderr);
- OPENSSL_free(curves);
- BN_CTX_free(ctx);
BIO_free(out);
#ifndef OPENSSL_NO_CRYPTO_MDEBUG