aboutsummaryrefslogtreecommitdiff
path: root/crypto/ec/ec_lib.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-01-13 16:39:37 -0500
committerRich Salz <rsalz@openssl.org>2016-01-13 16:39:37 -0500
commite69aa8000e410bd3fe2ad093d432c735397af3b8 (patch)
tree9c33209be9bb4b73d02079ec3b7ace50d98ab018 /crypto/ec/ec_lib.c
parentd94a1a706589414f705bb459ec983a722c060236 (diff)
downloadopenssl-e69aa8000e410bd3fe2ad093d432c735397af3b8.zip
openssl-e69aa8000e410bd3fe2ad093d432c735397af3b8.tar.gz
openssl-e69aa8000e410bd3fe2ad093d432c735397af3b8.tar.bz2
Add missing #ifdef's to fix build break
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
Diffstat (limited to 'crypto/ec/ec_lib.c')
-rw-r--r--crypto/ec/ec_lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c
index d850b54..890a274 100644
--- a/crypto/ec/ec_lib.c
+++ b/crypto/ec/ec_lib.c
@@ -114,9 +114,11 @@ static void ec_group_free_precomp(EC_GROUP *group)
switch (group->pre_comp_type) {
default:
break;
+#ifdef ECP_NISTZ256_REFERENCE_IMPLEMENTATION
case pct_nistz256:
EC_nistz256_pre_comp_free(group->pre_comp.nistz256);
break;
+#endif
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
case pct_nistp224:
EC_nistp224_pre_comp_free(group->pre_comp.nistp224);
@@ -190,9 +192,11 @@ int EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src)
default:
dest->pre_comp.ec = NULL;
break;
+#ifdef ECP_NISTZ256_REFERENCE_IMPLEMENTATION
case pct_nistz256:
dest->pre_comp.nistz256 = EC_nistz256_pre_comp_dup(src->pre_comp.nistz256);
break;
+#endif
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
case pct_nistp224:
dest->pre_comp.nistp224 = EC_nistp224_pre_comp_dup(src->pre_comp.nistp224);