From 482529e0eb9abf923bbc35107ad61a209528d296 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 29 Aug 2024 17:01:02 +0000 Subject: Remove check and pubcheck from openssl pkey and pkeyparam The underlying API will be removed, so these commands have to go. ok beck --- src/usr.bin/openssl/pkeyparam.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'src/usr.bin/openssl/pkeyparam.c') 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 @@ -/* $OpenBSD: pkeyparam.c,v 1.18 2023/07/23 11:39:29 tb Exp $ */ +/* $OpenBSD: pkeyparam.c,v 1.19 2024/08/29 17:01:02 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006 */ @@ -66,7 +66,6 @@ #include static struct { - int check; char *infile; int noout; char *outfile; @@ -74,12 +73,6 @@ static struct { } cfg; static const struct option pkeyparam_options[] = { - { - .name = "check", - .desc = "Check validity of key parameters", - .type = OPTION_FLAG, - .opt.flag = &cfg.check, - }, { .name = "in", .argname = "file", @@ -113,8 +106,7 @@ static void pkeyparam_usage(void) { fprintf(stderr, - "usage: pkeyparam [-check] [-in file] [-noout] [-out file] " - "[-text]\n"); + "usage: pkeyparam [-in file] [-noout] [-out file] [-text]\n"); options_usage(pkeyparam_options); } @@ -163,11 +155,6 @@ pkeyparam_main(int argc, char **argv) goto end; } - if (cfg.check) { - if (!pkey_check(out, pkey, EVP_PKEY_param_check, "Parameters")) - goto end; - } - if (!cfg.noout) PEM_write_bio_Parameters(out, pkey); -- cgit v1.2.3-55-g6feb