Skip to content

Commit 5882a3e

Browse files
committed
Revert openssl fips mode setting
1 parent 031f388 commit 5882a3e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/openssl.patch/10-support-fips-mode.patch

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -161,23 +161,6 @@ index 1b0d523bea..31fbd42cd2 100644
161161
# ifndef OPENSSL_NO_STATIC_ENGINE
162162
# if !defined(OPENSSL_NO_HW) && !defined(OPENSSL_NO_HW_PADLOCK)
163163
if ((opts & OPENSSL_INIT_ENGINE_PADLOCK)
164-
diff --git a/crypto/o_fips.c b/crypto/o_fips.c
165-
index 050ea9c216..6e9ffdb1d9 100644
166-
--- a/crypto/o_fips.c
167-
+++ b/crypto/o_fips.c
168-
@@ -9,8 +9,12 @@
169-
170-
#include "internal/cryptlib.h"
171-
172-
+extern int g_fips_mode_enabled;
173-
int FIPS_mode(void)
174-
{
175-
+ if (g_fips_mode_enabled == 1){
176-
+ return g_fips_mode_enabled;
177-
+ }
178-
/* This version of the library does not support FIPS mode. */
179-
return 0;
180-
}
181164
diff --git a/crypto/engine/build.info b/crypto/engine/build.info
182165
index e00802a3fd..66bb39fa38 100644
183166
--- a/crypto/engine/build.info

0 commit comments

Comments
 (0)