]> git.ipfire.org Git - thirdparty/openssl.git/commit
[1.1.1][test] Avoid missing EC_GROUP wrappers
authorNicola Tuveri <nic.tuv@gmail.com>
Mon, 13 Jul 2020 16:22:18 +0000 (19:22 +0300)
committerNicola Tuveri <nic.tuv@gmail.com>
Mon, 13 Jul 2020 16:22:18 +0000 (19:22 +0300)
commita5b8c19cdab4e330af0377e2fa0fdd1de2f67d59
treeeacfdf262e8e12e8196bb3eacb7dba5473f50823
parent2688dfb077f32b45bfaff48bf88e82e18ddc9fe5
[1.1.1][test] Avoid missing EC_GROUP wrappers

Backport of https://github.com/openssl/openssl/pull/12096 to 1.1.1 broke
the build as the following functions are missing:

    const BIGNUM *EC_GROUP_get0_field(const EC_GROUP *group);
    int EC_GROUP_get_field_type(const EC_GROUP *group);

Turns out that for the purposes of the test code, we don't really need
to differentiate between prime and binary fields, and we can directly
use the existing `EC_GROUP_get_degree()` in the same fashion as was
being done for binary fields also for prime fields.

Fixes https://github.com/openssl/openssl/issues/12432

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/12433)
test/ectest.c