mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-24 19:02:55 +01:00
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:
parent
5c1e3b5ab8
commit
d962ffc81b
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user