projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for FindNextFile when defining it rather than FindFirstFile
[oweals/openssl.git]
/
crypto
/
ec
/
ecp_mont.c
diff --git
a/crypto/ec/ecp_mont.c
b/crypto/ec/ecp_mont.c
index 079e47431b4f823dc644d2f4ae61826ed4f89fc5..3c5ec1965ac829874b23ada4710bdda8c71b84fe 100644
(file)
--- a/
crypto/ec/ecp_mont.c
+++ b/
crypto/ec/ecp_mont.c
@@
-72,9
+72,6
@@
const EC_METHOD *EC_GFp_mont_method(void)
{
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,
static const EC_METHOD ret = {
EC_FLAGS_DEFAULT_OCT,
NID_X9_62_prime_field,
@@
-114,9
+111,12
@@
const EC_METHOD *EC_GFp_mont_method(void)
ec_GFp_mont_field_decode,
ec_GFp_mont_field_set_to_one };
ec_GFp_mont_field_decode,
ec_GFp_mont_field_set_to_one };
+#ifdef OPENSSL_FIPS
+ if (FIPS_mode())
+ return fips_ec_gfp_mont_method();
+#endif
return &ret;
return &ret;
-#endif
}
}