aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-03-10 01:00:30 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-03-10 01:00:30 +0000
commit1acc24a8ba4ea461b5e2ae94b7c9b625dc7d4c52 (patch)
treed7c007f9610d7692bb9d3434618ceacd489a6632 /crypto
parentf52e552a9359eb88a2473ef297e5868cecdb9ab7 (diff)
downloadopenssl-1acc24a8ba4ea461b5e2ae94b7c9b625dc7d4c52.zip
openssl-1acc24a8ba4ea461b5e2ae94b7c9b625dc7d4c52.tar.gz
openssl-1acc24a8ba4ea461b5e2ae94b7c9b625dc7d4c52.tar.bz2
Make no-ec2m work again.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ec/ec_oct.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/crypto/ec/ec_oct.c b/crypto/ec/ec_oct.c
index 606e094..fd9db07 100644
--- a/crypto/ec/ec_oct.c
+++ b/crypto/ec/ec_oct.c
@@ -88,8 +88,15 @@ int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, EC_POINT *poi
return ec_GFp_simple_set_compressed_coordinates(
group, point, x, y_bit, ctx);
else
+#ifdef OPENSSL_NO_EC2M
+ {
+ ECerr(EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP, EC_R_GF2M_NOT_SUPPORTED);
+ return 0;
+ }
+#else
return ec_GF2m_simple_set_compressed_coordinates(
group, point, x, y_bit, ctx);
+#endif
}
return group->meth->point_set_compressed_coordinates(group, point, x, y_bit, ctx);
}
@@ -142,8 +149,15 @@ size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, point_co
return ec_GFp_simple_point2oct(group, point,
form, buf, len, ctx);
else
+#ifdef OPENSSL_NO_EC2M
+ {
+ ECerr(EC_F_EC_POINT_POINT2OCT, EC_R_GF2M_NOT_SUPPORTED);
+ return 0;
+ }
+#else
return ec_GF2m_simple_point2oct(group, point,
form, buf, len, ctx);
+#endif
}
return group->meth->point2oct(group, point, form, buf, len, ctx);
@@ -170,8 +184,15 @@ int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point,
return ec_GFp_simple_oct2point(group, point,
buf, len, ctx);
else
+#ifdef OPENSSL_NO_EC2M
+ {
+ ECerr(EC_F_EC_POINT_OCT2POINT, EC_R_GF2M_NOT_SUPPORTED);
+ return 0;
+ }
+#else
return ec_GF2m_simple_oct2point(group, point,
buf, len, ctx);
+#endif
}
return group->meth->oct2point(group, point, buf, len, ctx);
}