summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2014-04-18 01:04:53 +0000
committerjsing <>2014-04-18 01:04:53 +0000
commitf19ad618bfeca54848a82c7c31958052f60a47a7 (patch)
treee21416ac8eee079133b8c7efbd11745a764f13b2 /src
parenta1df5b66c7ad477a535e56a504d8da47e1998cfa (diff)
downloadopenbsd-f19ad618bfeca54848a82c7c31958052f60a47a7.tar.gz
openbsd-f19ad618bfeca54848a82c7c31958052f60a47a7.tar.bz2
openbsd-f19ad618bfeca54848a82c7c31958052f60a47a7.zip
Unifdef OPENSSL_FIPS.
ok miod@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/src/apps/openssl.c3
-rw-r--r--src/lib/libssl/src/apps/pkcs12.c5
-rw-r--r--src/lib/libssl/src/apps/speed.c17
3 files changed, 0 insertions, 25 deletions
diff --git a/src/lib/libssl/src/apps/openssl.c b/src/lib/libssl/src/apps/openssl.c
index 0221eb0085..8b2f699cba 100644
--- a/src/lib/libssl/src/apps/openssl.c
+++ b/src/lib/libssl/src/apps/openssl.c
@@ -129,9 +129,6 @@
129#include "progs.h" 129#include "progs.h"
130#include "s_apps.h" 130#include "s_apps.h"
131#include <openssl/err.h> 131#include <openssl/err.h>
132#ifdef OPENSSL_FIPS
133#include <openssl/fips.h>
134#endif
135 132
136/* The LHASH callbacks ("hash" & "cmp") have been replaced by functions with the 133/* The LHASH callbacks ("hash" & "cmp") have been replaced by functions with the
137 * base prototypes (we cast each variable inside the function to the required 134 * base prototypes (we cast each variable inside the function to the required
diff --git a/src/lib/libssl/src/apps/pkcs12.c b/src/lib/libssl/src/apps/pkcs12.c
index 465ff2ebf0..ca6824efcc 100644
--- a/src/lib/libssl/src/apps/pkcs12.c
+++ b/src/lib/libssl/src/apps/pkcs12.c
@@ -130,11 +130,6 @@ int MAIN(int argc, char **argv)
130 130
131 apps_startup(); 131 apps_startup();
132 132
133#ifdef OPENSSL_FIPS
134 if (FIPS_mode())
135 cert_pbe = NID_pbe_WithSHA1And3_Key_TripleDES_CBC;
136 else
137#endif
138 cert_pbe = NID_pbe_WithSHA1And40BitRC2_CBC; 133 cert_pbe = NID_pbe_WithSHA1And40BitRC2_CBC;
139 134
140 enc = EVP_des_ede3_cbc(); 135 enc = EVP_des_ede3_cbc();
diff --git a/src/lib/libssl/src/apps/speed.c b/src/lib/libssl/src/apps/speed.c
index 473dfce124..0806327c38 100644
--- a/src/lib/libssl/src/apps/speed.c
+++ b/src/lib/libssl/src/apps/speed.c
@@ -187,23 +187,6 @@
187#endif 187#endif
188#include <openssl/modes.h> 188#include <openssl/modes.h>
189 189
190#ifdef OPENSSL_FIPS
191#ifdef OPENSSL_DOING_MAKEDEPEND
192#undef AES_set_encrypt_key
193#undef AES_set_decrypt_key
194#undef DES_set_key_unchecked
195#endif
196#define BF_set_key private_BF_set_key
197#define CAST_set_key private_CAST_set_key
198#define idea_set_encrypt_key private_idea_set_encrypt_key
199#define SEED_set_key private_SEED_set_key
200#define RC2_set_key private_RC2_set_key
201#define RC4_set_key private_RC4_set_key
202#define DES_set_key_unchecked private_DES_set_key_unchecked
203#define AES_set_encrypt_key private_AES_set_encrypt_key
204#define AES_set_decrypt_key private_AES_set_decrypt_key
205#define Camellia_set_key private_Camellia_set_key
206#endif
207 190
208#ifndef HAVE_FORK 191#ifndef HAVE_FORK
209# define HAVE_FORK 1 192# define HAVE_FORK 1