diff options
author | djm <> | 2012-10-13 21:23:57 +0000 |
---|---|---|
committer | djm <> | 2012-10-13 21:23:57 +0000 |
commit | c93077289f634e6f9f13ab48bc059773ac806130 (patch) | |
tree | f9ec86d879ac4a66f08398373cfe233c8d41851a /src/lib/libcrypto/ecdh/ech_ossl.c | |
parent | d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df (diff) | |
parent | 0f4e59be0458751f14ec603610fb285ff9737a1c (diff) | |
download | openbsd-c93077289f634e6f9f13ab48bc059773ac806130.tar.gz openbsd-c93077289f634e6f9f13ab48bc059773ac806130.tar.bz2 openbsd-c93077289f634e6f9f13ab48bc059773ac806130.zip |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/ecdh/ech_ossl.c')
-rw-r--r-- | src/lib/libcrypto/ecdh/ech_ossl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/libcrypto/ecdh/ech_ossl.c b/src/lib/libcrypto/ecdh/ech_ossl.c index 2a40ff12df..4a30628fbc 100644 --- a/src/lib/libcrypto/ecdh/ech_ossl.c +++ b/src/lib/libcrypto/ecdh/ech_ossl.c | |||
@@ -157,6 +157,7 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, | |||
157 | goto err; | 157 | goto err; |
158 | } | 158 | } |
159 | } | 159 | } |
160 | #ifndef OPENSSL_NO_EC2M | ||
160 | else | 161 | else |
161 | { | 162 | { |
162 | if (!EC_POINT_get_affine_coordinates_GF2m(group, tmp, x, y, ctx)) | 163 | if (!EC_POINT_get_affine_coordinates_GF2m(group, tmp, x, y, ctx)) |
@@ -165,6 +166,7 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, | |||
165 | goto err; | 166 | goto err; |
166 | } | 167 | } |
167 | } | 168 | } |
169 | #endif | ||
168 | 170 | ||
169 | buflen = (EC_GROUP_get_degree(group) + 7)/8; | 171 | buflen = (EC_GROUP_get_degree(group) + 7)/8; |
170 | len = BN_num_bytes(x); | 172 | len = BN_num_bytes(x); |