summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/apps/enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/src/apps/enc.c')
-rw-r--r--lib/libssl/src/apps/enc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/libssl/src/apps/enc.c b/lib/libssl/src/apps/enc.c
index 394995f02b8..5410dc52a20 100644
--- a/lib/libssl/src/apps/enc.c
+++ b/lib/libssl/src/apps/enc.c
@@ -129,7 +129,6 @@ enc_main(int argc, char **argv)
char *engine = NULL;
#endif
const EVP_MD *dgst = NULL;
- int non_fips_allow = 0;
signal(SIGPIPE, SIG_IGN);
@@ -264,9 +263,7 @@ enc_main(int argc, char **argv)
if (--argc < 1)
goto bad;
md = *(++argv);
- } else if (strcmp(*argv, "-non-fips-allow") == 0)
- non_fips_allow = 1;
- else if ((argv[0][0] == '-') &&
+ } else if ((argv[0][0] == '-') &&
((c = EVP_get_cipherbyname(&(argv[0][1]))) != NULL)) {
cipher = c;
} else if (strcmp(*argv, "-none") == 0)
@@ -537,10 +534,6 @@ enc_main(int argc, char **argv)
BIO_get_cipher_ctx(benc, &ctx);
- if (non_fips_allow)
- EVP_CIPHER_CTX_set_flags(ctx,
- EVP_CIPH_FLAG_NON_FIPS_ALLOW);
-
if (!EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc)) {
BIO_printf(bio_err, "Error setting cipher %s\n",
EVP_CIPHER_name(cipher));