move ifdef statements

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Billy Brumley 2016-02-29 21:01:47 +02:00 committed by Rich Salz
parent 61f6774e9a
commit a67788c17e
2 changed files with 3 additions and 3 deletions

View File

@ -497,8 +497,8 @@ static int ecdh_cavs_kat(BIO *out, const ecdh_cavs_kat_t *kat)
if (is_char_two) {
#ifndef OPENSSL_NO_EC2M
if (!EC_POINT_set_affine_coordinates_GF2m(group, pub, x, y, NULL))
#endif
goto err;
#endif
}
else {
if (!EC_POINT_set_affine_coordinates_GFp(group, pub, x, y, NULL))
@ -516,8 +516,8 @@ static int ecdh_cavs_kat(BIO *out, const ecdh_cavs_kat_t *kat)
if (is_char_two) {
#ifndef OPENSSL_NO_EC2M
if (!EC_POINT_set_affine_coordinates_GF2m(group, pub, x, y, NULL))
#endif
goto err;
#endif
}
else {
if (!EC_POINT_set_affine_coordinates_GFp(group, pub, x, y, NULL))

View File

@ -4298,4 +4298,4 @@ static const ecdh_cavs_kat_t ecdh_cavs_kats[] = {
#endif
};
#endif /* ECDHTEST_KAVS_H */
#endif /* ECDHTEST_CAVS_H */