From d962ffc81b2fe7b080d5b62241ed1ec830053637 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Wed, 15 Nov 2017 21:29:56 -0500 Subject: [PATCH] Fix EVPTest on RHEL/Fedora by removing hard-coded EC curve name (#2002) RHEL/Fedora seem to have a much more limited set of EC curves available by default. This change will instead use the first curve name as used in other places. --- Crypto/testsuite/src/EVPTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Crypto/testsuite/src/EVPTest.cpp b/Crypto/testsuite/src/EVPTest.cpp index c68f78c13..87c9413a0 100644 --- a/Crypto/testsuite/src/EVPTest.cpp +++ b/Crypto/testsuite/src/EVPTest.cpp @@ -330,7 +330,7 @@ void EVPTest::testECEVPSaveLoadStream() /*TODO: figure out why EVP_PKEY_cmp() fails for identical public keys assert (key == key2); assert (!(key != key2));*/ - ECKey ecKeyNE("secp112r2"); + ECKey ecKeyNE(curveName); EVPPKey keyNE(&ecKeyNE); assert (key != keyNE); assert (!(key == keyNE)); @@ -386,7 +386,7 @@ void EVPTest::testECEVPSaveLoadStreamNoPass() /*TODO: figure out why EVP_PKEY_cmp() fails for identical public keys assert (key == key2); assert (!(key != key2));*/ - ECKey ecKeyNE("secp112r2"); + ECKey ecKeyNE(curveName); EVPPKey keyNE(&ecKeyNE); assert (key != keyNE); assert (!(key == keyNE)); @@ -444,7 +444,7 @@ void EVPTest::testECEVPSaveLoadFile() /*TODO: figure out why EVP_PKEY_cmp() fails for identical public keys assert (key == key2); assert (!(key != key2));*/ - ECKey ecKeyNE("secp112r2"); + ECKey ecKeyNE(curveName); EVPPKey keyNE(&ecKeyNE); assert (key != keyNE); assert (!(key == keyNE));