summaryrefslogtreecommitdiffstats
path: root/src/crypto/ec/ec.c
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-03-31 18:58:05 -0700
committerAdam Langley <agl@google.com>2015-04-02 11:32:06 -0700
commitf7e890d94bfb2ecad87621eed301e1897b5a6aef (patch)
treec712592a9ab361adf49b2c4500859307828aa910 /src/crypto/ec/ec.c
parentf40f42df67fffec64967b000e4fdad4b435611a5 (diff)
downloadexternal_boringssl-f7e890d94bfb2ecad87621eed301e1897b5a6aef.tar.gz
external_boringssl-f7e890d94bfb2ecad87621eed301e1897b5a6aef.tar.bz2
external_boringssl-f7e890d94bfb2ecad87621eed301e1897b5a6aef.zip
Add compatibility functions for OpenSSH.
Change-Id: I2fcb67fea859220e7e7bbbdb5dd910fb847c5600
Diffstat (limited to 'src/crypto/ec/ec.c')
-rw-r--r--src/crypto/ec/ec.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/crypto/ec/ec.c b/src/crypto/ec/ec.c
index 30def15..7d16f2c 100644
--- a/src/crypto/ec/ec.c
+++ b/src/crypto/ec/ec.c
@@ -853,3 +853,13 @@ int ec_point_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POINT *po
return group->meth->point_set_Jprojective_coordinates_GFp(group, point, x, y,
z, ctx);
}
+
+void EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag) {}
+
+const EC_METHOD *EC_GROUP_method_of(const EC_GROUP *group) {
+ return NULL;
+}
+
+int EC_METHOD_get_field_type(const EC_METHOD *meth) {
+ return NID_X9_62_prime_field;
+}