diff options
| author | tb <> | 2024-08-29 17:01:02 +0000 |
|---|---|---|
| committer | tb <> | 2024-08-29 17:01:02 +0000 |
| commit | 848d87c5d247d338a63f76d6a86cad9016884aad (patch) | |
| tree | 7ea546b46cd3970f3bc3adc5466a9a5dc89fd00d /src/usr.bin/openssl/pkeyparam.c | |
| parent | c8099c070f0c547b73edced83591dbd871254307 (diff) | |
| download | openbsd-848d87c5d247d338a63f76d6a86cad9016884aad.tar.gz openbsd-848d87c5d247d338a63f76d6a86cad9016884aad.tar.bz2 openbsd-848d87c5d247d338a63f76d6a86cad9016884aad.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.c | 17 |
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 | ||
| 68 | static struct { | 68 | static 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 | ||
| 76 | static const struct option pkeyparam_options[] = { | 75 | static 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 | |||
| 113 | pkeyparam_usage(void) | 106 | pkeyparam_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 | ||
