From fcc39fb11f82f1e6540a85fb2a1295640397778e Mon Sep 17 00:00:00 2001 From: Doug Hogan Date: Thu, 20 Dec 2018 02:04:39 -0800 Subject: Move RC4 functionality to a new file Also, move a FIPS check macro to the common openssl_config.h. --- lib/crypto/c_src/openssl_config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/crypto/c_src/openssl_config.h') 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__ */ -- cgit v1.2.3