diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-15 20:06:11 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-15 20:06:11 +0000 |
commit | 1acffe56a9410893729c63d8ba655c60f52dd70d (patch) | |
tree | 2f0b14116a8fbd6f5539e4e3ce50ce644948fc6d /lib/libcrypto/crypto.h | |
parent | 5bdd68a22c7a5658ad11b9a9f5242513f1abe74c (diff) |
remove FIPS mode support. people who require FIPS can buy something that
meets their needs, but dumping it in here only penalizes the rest of us.
ok beck deraadt
Diffstat (limited to 'lib/libcrypto/crypto.h')
-rw-r--r-- | lib/libcrypto/crypto.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/libcrypto/crypto.h b/lib/libcrypto/crypto.h index 351ccfd35b4..56c5dfadb8c 100644 --- a/lib/libcrypto/crypto.h +++ b/lib/libcrypto/crypto.h @@ -538,25 +538,9 @@ void OPENSSL_init(void); #define fips_md_init(alg) fips_md_init_ctx(alg, alg) -#ifdef OPENSSL_FIPS -#define fips_md_init_ctx(alg, cx) \ - int alg##_Init(cx##_CTX *c) \ - { \ - if (FIPS_mode()) OpenSSLDie(__FILE__, __LINE__, \ - "Low level API call to digest " #alg " forbidden in FIPS mode!"); \ - return private_##alg##_Init(c); \ - } \ - int private_##alg##_Init(cx##_CTX *c) - -#define fips_cipher_abort(alg) \ - if (FIPS_mode()) OpenSSLDie(__FILE__, __LINE__, \ - "Low level API call to cipher " #alg " forbidden in FIPS mode!") - -#else #define fips_md_init_ctx(alg, cx) \ int alg##_Init(cx##_CTX *c) #define fips_cipher_abort(alg) while(0) -#endif /* CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. It * takes an amount of time dependent on |len|, but independent of the contents |