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.
This commit is contained in:
Scott Talbert 2017-11-15 21:29:56 -05:00 committed by Aleksandar Fabijanic
parent 5c1e3b5ab8
commit d962ffc81b

View File

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