From a67788c17eb906e442db65dfd292cb56cd55867c Mon Sep 17 00:00:00 2001 From: Billy Brumley Date: Mon, 29 Feb 2016 21:01:47 +0200 Subject: [PATCH] move ifdef statements Reviewed-by: Kurt Roeckx Reviewed-by: Rich Salz --- test/ecdhtest.c | 4 ++-- test/ecdhtest_cavs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ecdhtest.c b/test/ecdhtest.c index 0135f7b705..3a67552b1a 100644 --- a/test/ecdhtest.c +++ b/test/ecdhtest.c @@ -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)) diff --git a/test/ecdhtest_cavs.h b/test/ecdhtest_cavs.h index 02621c6fb8..0d700ed390 100644 --- a/test/ecdhtest_cavs.h +++ b/test/ecdhtest_cavs.h @@ -4298,4 +4298,4 @@ static const ecdh_cavs_kat_t ecdh_cavs_kats[] = { #endif }; -#endif /* ECDHTEST_KAVS_H */ +#endif /* ECDHTEST_CAVS_H */ -- 2.25.1