From 860975b372ae6bbde5280dd6fcdb2f37bcb4af8b Mon Sep 17 00:00:00 2001 From: Aleksandar Fabijanic Date: Wed, 15 Nov 2017 20:35:25 -0600 Subject: [PATCH] Fix EVPTest on RHEL/Fedora by removing hard-coded EC curve name (#2002) --- 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 4a95fedd0..2b4cfc0d9 100644 --- a/Crypto/testsuite/src/EVPTest.cpp +++ b/Crypto/testsuite/src/EVPTest.cpp @@ -336,7 +336,7 @@ void EVPTest::testECEVPSaveLoadStream() assert (strPubE.str() == pubKey); assert (key == key2); assert (!(key != key2)); - ECKey ecKeyNE("secp112r2"); + ECKey ecKeyNE(curvename); EVPPKey keyNE(&ecKeyNE); assert (key != keyNE); assert (!(key == keyNE)); @@ -391,7 +391,7 @@ void EVPTest::testECEVPSaveLoadStreamNoPass() assert (strPubE.str() == pubKey); assert (key == key2); assert (!(key != key2)); - ECKey ecKeyNE("secp112r2"); + ECKey ecKeyNE(curveName); EVPPKey keyNE(&ecKeyNE); assert (key != keyNE); assert (!(key == keyNE)); @@ -448,7 +448,7 @@ void EVPTest::testECEVPSaveLoadFile() assert (strPubE.str() == pubKey); assert (key == key2); assert (!(key != key2)); - ECKey ecKeyNE("secp112r2"); + ECKey ecKeyNE(curveName); EVPPKey keyNE(&ecKeyNE); assert (key != keyNE); assert (!(key == keyNE));