diff options
Diffstat (limited to '')
-rw-r--r-- | src/usr.bin/openssl/pkcs7.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/usr.bin/openssl/pkcs7.c b/src/usr.bin/openssl/pkcs7.c index 3180f357f1..717928d27b 100644 --- a/src/usr.bin/openssl/pkcs7.c +++ b/src/usr.bin/openssl/pkcs7.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pkcs7.c,v 1.5 2015/08/22 16:36:05 jsing Exp $ */ | 1 | /* $OpenBSD: pkcs7.c,v 1.6 2015/09/11 14:30:23 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -71,9 +71,6 @@ | |||
71 | #include <openssl/x509.h> | 71 | #include <openssl/x509.h> |
72 | 72 | ||
73 | static struct { | 73 | static struct { |
74 | #ifndef OPENSSL_NO_ENGINE | ||
75 | char *engine; | ||
76 | #endif | ||
77 | char *infile; | 74 | char *infile; |
78 | int informat; | 75 | int informat; |
79 | int noout; | 76 | int noout; |
@@ -85,15 +82,6 @@ static struct { | |||
85 | } pkcs7_config; | 82 | } pkcs7_config; |
86 | 83 | ||
87 | static struct option pkcs7_options[] = { | 84 | static struct option pkcs7_options[] = { |
88 | #ifndef OPENSSL_NO_ENGINE | ||
89 | { | ||
90 | .name = "engine", | ||
91 | .argname = "id", | ||
92 | .desc = "Use the engine specified by the given identifier", | ||
93 | .type = OPTION_ARG, | ||
94 | .opt.arg = &pkcs7_config.engine, | ||
95 | }, | ||
96 | #endif | ||
97 | { | 85 | { |
98 | .name = "in", | 86 | .name = "in", |
99 | .argname = "file", | 87 | .argname = "file", |
@@ -152,7 +140,7 @@ static struct option pkcs7_options[] = { | |||
152 | static void | 140 | static void |
153 | pkcs7_usage() | 141 | pkcs7_usage() |
154 | { | 142 | { |
155 | fprintf(stderr, "usage: pkcs7 [-engine id] [-in file] " | 143 | fprintf(stderr, "usage: pkcs7 [-in file] " |
156 | "[-inform DER | PEM] [-noout]\n" | 144 | "[-inform DER | PEM] [-noout]\n" |
157 | " [-out file] [-outform DER | PEM] [-print_certs] [-text]\n\n"); | 145 | " [-out file] [-outform DER | PEM] [-print_certs] [-text]\n\n"); |
158 | options_usage(pkcs7_options); | 146 | options_usage(pkcs7_options); |
@@ -176,10 +164,6 @@ pkcs7_main(int argc, char **argv) | |||
176 | goto end; | 164 | goto end; |
177 | } | 165 | } |
178 | 166 | ||
179 | #ifndef OPENSSL_NO_ENGINE | ||
180 | setup_engine(bio_err, pkcs7_config.engine, 0); | ||
181 | #endif | ||
182 | |||
183 | in = BIO_new(BIO_s_file()); | 167 | in = BIO_new(BIO_s_file()); |
184 | out = BIO_new(BIO_s_file()); | 168 | out = BIO_new(BIO_s_file()); |
185 | if ((in == NULL) || (out == NULL)) { | 169 | if ((in == NULL) || (out == NULL)) { |