summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/pkeyparam.c
diff options
context:
space:
mode:
authortb <>2024-08-29 17:01:02 +0000
committertb <>2024-08-29 17:01:02 +0000
commit482529e0eb9abf923bbc35107ad61a209528d296 (patch)
tree7ea546b46cd3970f3bc3adc5466a9a5dc89fd00d /src/usr.bin/openssl/pkeyparam.c
parentde7d0ab1c83083dedcf2e492963189bc2ba71ef0 (diff)
downloadopenbsd-482529e0eb9abf923bbc35107ad61a209528d296.tar.gz
openbsd-482529e0eb9abf923bbc35107ad61a209528d296.tar.bz2
openbsd-482529e0eb9abf923bbc35107ad61a209528d296.zip
Remove check and pubcheck from openssl pkey and pkeyparam
The underlying API will be removed, so these commands have to go. ok beck
Diffstat (limited to 'src/usr.bin/openssl/pkeyparam.c')
-rw-r--r--src/usr.bin/openssl/pkeyparam.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/usr.bin/openssl/pkeyparam.c b/src/usr.bin/openssl/pkeyparam.c
index 543715e521..ce0206a700 100644
--- a/src/usr.bin/openssl/pkeyparam.c
+++ b/src/usr.bin/openssl/pkeyparam.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pkeyparam.c,v 1.18 2023/07/23 11:39:29 tb Exp $ */ 1/* $OpenBSD: pkeyparam.c,v 1.19 2024/08/29 17:01:02 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006 3 * project 2006
4 */ 4 */
@@ -66,7 +66,6 @@
66#include <openssl/pem.h> 66#include <openssl/pem.h>
67 67
68static struct { 68static struct {
69 int check;
70 char *infile; 69 char *infile;
71 int noout; 70 int noout;
72 char *outfile; 71 char *outfile;
@@ -75,12 +74,6 @@ static struct {
75 74
76static const struct option pkeyparam_options[] = { 75static const struct option pkeyparam_options[] = {
77 { 76 {
78 .name = "check",
79 .desc = "Check validity of key parameters",
80 .type = OPTION_FLAG,
81 .opt.flag = &cfg.check,
82 },
83 {
84 .name = "in", 77 .name = "in",
85 .argname = "file", 78 .argname = "file",
86 .desc = "Input file (default stdin)", 79 .desc = "Input file (default stdin)",
@@ -113,8 +106,7 @@ static void
113pkeyparam_usage(void) 106pkeyparam_usage(void)
114{ 107{
115 fprintf(stderr, 108 fprintf(stderr,
116 "usage: pkeyparam [-check] [-in file] [-noout] [-out file] " 109 "usage: pkeyparam [-in file] [-noout] [-out file] [-text]\n");
117 "[-text]\n");
118 options_usage(pkeyparam_options); 110 options_usage(pkeyparam_options);
119} 111}
120 112
@@ -163,11 +155,6 @@ pkeyparam_main(int argc, char **argv)
163 goto end; 155 goto end;
164 } 156 }
165 157
166 if (cfg.check) {
167 if (!pkey_check(out, pkey, EVP_PKEY_param_check, "Parameters"))
168 goto end;
169 }
170
171 if (!cfg.noout) 158 if (!cfg.noout)
172 PEM_write_bio_Parameters(out, pkey); 159 PEM_write_bio_Parameters(out, pkey);
173 160