Fix EVPTest on RHEL/Fedora by removing hard-coded EC curve name (#2002)

This commit is contained in:
Aleksandar Fabijanic 2017-11-15 20:35:25 -06:00 committed by GitHub
parent 4d852b7b8d
commit 860975b372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));