summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl/ssltest.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-04-15 19:42:56 +0000
committertedu <tedu@openbsd.org>2014-04-15 19:42:56 +0000
commit9aa350fda47654255da340793da9ac9b2422db9c (patch)
tree35c7560d24ab5b1ee73cc180f2bb87940d0584f5 /lib/libssl/src/ssl/ssltest.c
parentIn EC_POINT_invert(), actually check the correct function pointer for NULL (diff)
downloadwireguard-openbsd-9aa350fda47654255da340793da9ac9b2422db9c.tar.xz
wireguard-openbsd-9aa350fda47654255da340793da9ac9b2422db9c.zip
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 miod
Diffstat (limited to 'lib/libssl/src/ssl/ssltest.c')
-rw-r--r--lib/libssl/src/ssl/ssltest.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/libssl/src/ssl/ssltest.c b/lib/libssl/src/ssl/ssltest.c
index 664147cb6a8..ea236df44d0 100644
--- a/lib/libssl/src/ssl/ssltest.c
+++ b/lib/libssl/src/ssl/ssltest.c
@@ -299,9 +299,6 @@ sv_usage(void)
{
fprintf(stderr, "usage: ssltest [args ...]\n");
fprintf(stderr, "\n");
-#ifdef OPENSSL_FIPS
- fprintf(stderr, "-F - run test in FIPS mode\n");
-#endif
fprintf(stderr, " -server_auth - check server certificate\n");
fprintf(stderr, " -client_auth - do client authentication\n");
fprintf(stderr, " -proxy - allow proxy certificates\n");
@@ -526,9 +523,6 @@ main(int argc, char *argv[])
STACK_OF(SSL_COMP) *ssl_comp_methods = NULL;
#endif
int test_cipherlist = 0;
-#ifdef OPENSSL_FIPS
- int fips_mode = 0;
-#endif
verbose = 0;
debug = 0;
@@ -558,12 +552,8 @@ main(int argc, char *argv[])
while (argc >= 1) {
if (!strcmp(*argv, "-F")) {
-#ifdef OPENSSL_FIPS
- fips_mode = 1;
-#else
fprintf(stderr, "not compiled with FIPS support, so exitting without running.\n");
exit(0);
-#endif
} else if (strcmp(*argv, "-server_auth") == 0)
server_auth = 1;
else if (strcmp(*argv, "-client_auth") == 0)
@@ -739,17 +729,6 @@ bad:
exit(1);
}
-#ifdef OPENSSL_FIPS
- if (fips_mode) {
- if (!FIPS_mode_set(1)) {
- ERR_load_crypto_strings();
- ERR_print_errors(BIO_new_fp(stderr, BIO_NOCLOSE));
- exit(1);
- } else
- fprintf(stderr, "*** IN FIPS MODE ***\n");
- }
-#endif
-
if (print_time) {
if (!bio_pair) {
fprintf(stderr, "Using BIO pair (-bio_pair)\n");