OpenSSL 1.1.1-pre2
This commit is contained in:
+1
-11
@@ -8,27 +8,17 @@
|
||||
*/
|
||||
|
||||
#include "internal/cryptlib.h"
|
||||
#ifdef OPENSSL_FIPS
|
||||
# include <openssl/fips.h>
|
||||
#endif
|
||||
|
||||
int FIPS_mode(void)
|
||||
{
|
||||
#ifdef OPENSSL_FIPS
|
||||
return FIPS_module_mode();
|
||||
#else
|
||||
/* This version of the library does not support FIPS mode. */
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
int FIPS_mode_set(int r)
|
||||
{
|
||||
#ifdef OPENSSL_FIPS
|
||||
return FIPS_module_mode_set(r);
|
||||
#else
|
||||
if (r == 0)
|
||||
return 1;
|
||||
CRYPTOerr(CRYPTO_F_FIPS_MODE_SET, CRYPTO_R_FIPS_MODE_NOT_SUPPORTED);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user