aboutsummaryrefslogtreecommitdiff
path: root/deps/openssl/openssl/crypto/ec/ecp_mont.c
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2014-11-27 18:37:49 +0300
committerFedor Indutny <fedor@indutny.com>2014-11-27 19:56:41 +0300
commit574407a67f5d42d22aac57a128448997c674c3e5 (patch)
tree41b29dfe4690415b379b222ce2efdd5cd9d97c72 /deps/openssl/openssl/crypto/ec/ecp_mont.c
parent7efc64dc94aab8cee73c243ab901513005de00ed (diff)
downloadandroid-node-v8-574407a67f5d42d22aac57a128448997c674c3e5.tar.gz
android-node-v8-574407a67f5d42d22aac57a128448997c674c3e5.tar.bz2
android-node-v8-574407a67f5d42d22aac57a128448997c674c3e5.zip
deps: update openssl to 1.0.1j
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> PR-URL: https://github.com/iojs/io.js/pull/1
Diffstat (limited to 'deps/openssl/openssl/crypto/ec/ecp_mont.c')
-rw-r--r--deps/openssl/openssl/crypto/ec/ecp_mont.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/deps/openssl/openssl/crypto/ec/ecp_mont.c b/deps/openssl/openssl/crypto/ec/ecp_mont.c
index f04f132c7a..3c5ec1965a 100644
--- a/deps/openssl/openssl/crypto/ec/ecp_mont.c
+++ b/deps/openssl/openssl/crypto/ec/ecp_mont.c
@@ -72,9 +72,6 @@
const EC_METHOD *EC_GFp_mont_method(void)
{
-#ifdef OPENSSL_FIPS
- return fips_ec_gfp_mont_method();
-#else
static const EC_METHOD ret = {
EC_FLAGS_DEFAULT_OCT,
NID_X9_62_prime_field,
@@ -114,8 +111,12 @@ const EC_METHOD *EC_GFp_mont_method(void)
ec_GFp_mont_field_decode,
ec_GFp_mont_field_set_to_one };
- return &ret;
+#ifdef OPENSSL_FIPS
+ if (FIPS_mode())
+ return fips_ec_gfp_mont_method();
#endif
+
+ return &ret;
}