aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/openssl_config.h
diff options
context:
space:
mode:
authorDoug Hogan <[email protected]>2018-12-20 02:04:39 -0800
committerDoug Hogan <[email protected]>2018-12-20 02:30:38 -0800
commitfcc39fb11f82f1e6540a85fb2a1295640397778e (patch)
tree7919244b6c9a02afc63acffb6b01d12eb41d8373 /lib/crypto/c_src/openssl_config.h
parentb3da76c6bb4cf54e8453f05ea9ab37747e390d76 (diff)
downloadotp-fcc39fb11f82f1e6540a85fb2a1295640397778e.tar.gz
otp-fcc39fb11f82f1e6540a85fb2a1295640397778e.tar.bz2
otp-fcc39fb11f82f1e6540a85fb2a1295640397778e.zip
Move RC4 functionality to a new file
Also, move a FIPS check macro to the common openssl_config.h.
Diffstat (limited to 'lib/crypto/c_src/openssl_config.h')
-rw-r--r--lib/crypto/c_src/openssl_config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h
index 9550785190..802fb3e83c 100644
--- a/lib/crypto/c_src/openssl_config.h
+++ b/lib/crypto/c_src/openssl_config.h
@@ -307,4 +307,11 @@ do { \
#define PRINTF_ERR1(FMT,A1)
#define PRINTF_ERR2(FMT,A1,A2)
+#ifdef FIPS_SUPPORT
+/* In FIPS mode non-FIPS algorithms are disabled and return badarg. */
+#define CHECK_NO_FIPS_MODE() { if (FIPS_mode()) return atom_notsup; }
+#else
+#define CHECK_NO_FIPS_MODE()
+#endif
+
#endif /* E_OPENSSL_CONFIG_H__ */