From f16f749c6b48a2f529f1db4d72944792a51a70d5 Mon Sep 17 00:00:00 2001 From: jsing Date: Fri, 18 Apr 2014 01:04:53 +0000 Subject: [PATCH] Unifdef OPENSSL_FIPS. ok miod@ --- lib/libssl/src/apps/openssl.c | 3 --- lib/libssl/src/apps/pkcs12.c | 5 ----- lib/libssl/src/apps/speed.c | 17 ----------------- 3 files changed, 25 deletions(-) diff --git a/lib/libssl/src/apps/openssl.c b/lib/libssl/src/apps/openssl.c index 0221eb00850..8b2f699cba8 100644 --- a/lib/libssl/src/apps/openssl.c +++ b/lib/libssl/src/apps/openssl.c @@ -129,9 +129,6 @@ #include "progs.h" #include "s_apps.h" #include -#ifdef OPENSSL_FIPS -#include -#endif /* The LHASH callbacks ("hash" & "cmp") have been replaced by functions with the * base prototypes (we cast each variable inside the function to the required diff --git a/lib/libssl/src/apps/pkcs12.c b/lib/libssl/src/apps/pkcs12.c index 465ff2ebf0d..ca6824efcc0 100644 --- a/lib/libssl/src/apps/pkcs12.c +++ b/lib/libssl/src/apps/pkcs12.c @@ -130,11 +130,6 @@ int MAIN(int argc, char **argv) apps_startup(); -#ifdef OPENSSL_FIPS - if (FIPS_mode()) - cert_pbe = NID_pbe_WithSHA1And3_Key_TripleDES_CBC; - else -#endif cert_pbe = NID_pbe_WithSHA1And40BitRC2_CBC; enc = EVP_des_ede3_cbc(); diff --git a/lib/libssl/src/apps/speed.c b/lib/libssl/src/apps/speed.c index 473dfce1248..0806327c389 100644 --- a/lib/libssl/src/apps/speed.c +++ b/lib/libssl/src/apps/speed.c @@ -187,23 +187,6 @@ #endif #include -#ifdef OPENSSL_FIPS -#ifdef OPENSSL_DOING_MAKEDEPEND -#undef AES_set_encrypt_key -#undef AES_set_decrypt_key -#undef DES_set_key_unchecked -#endif -#define BF_set_key private_BF_set_key -#define CAST_set_key private_CAST_set_key -#define idea_set_encrypt_key private_idea_set_encrypt_key -#define SEED_set_key private_SEED_set_key -#define RC2_set_key private_RC2_set_key -#define RC4_set_key private_RC4_set_key -#define DES_set_key_unchecked private_DES_set_key_unchecked -#define AES_set_encrypt_key private_AES_set_encrypt_key -#define AES_set_decrypt_key private_AES_set_decrypt_key -#define Camellia_set_key private_Camellia_set_key -#endif #ifndef HAVE_FORK # define HAVE_FORK 1 -- 2.20.1