diff options
author | Adam Langley <agl@google.com> | 2015-04-14 00:34:17 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-04-14 23:18:28 +0300 |
commit | c3ef76f32740238d9553dc123ac567920331286f (patch) | |
tree | 75c6c07977d53b153901636cfea10aae5977d6b3 /crypto/ec/ec.c | |
parent | 310d4dd6b682a2694825176ca529c922a80a2ab2 (diff) |
Compatibility changes for wpa_supplicant and OpenSSH.
OpenSSH, especially, does some terrible things that mean that it needs
the EVP_CIPHER structure to be exposed ☹. Damian is open to a better API
to replace this, but only if OpenSSL agree too. Either way, it won't be
happening soon.
Change-Id: I393b7a6af6694d4d2fe9ebcccd40286eff4029bd
Reviewed-on: https://boringssl-review.googlesource.com/4330
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/ec/ec.c')
-rw-r--r-- | crypto/ec/ec.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/ec/ec.c b/crypto/ec/ec.c index 9a4a8388..5378fcf7 100644 --- a/crypto/ec/ec.c +++ b/crypto/ec/ec.c @@ -861,3 +861,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; +} |