From 6bd4e3f231d74578b97821d981d42583fec5c2f3 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 25 Feb 2020 14:29:30 +1000 Subject: cmdline app: add provider commandline options. Add a -provider option to allow providers to be loaded. This option can be specified multiple times. Add a -provider_path option to allow the path to providers to be specified. Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/11167) --- apps/nseq.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/nseq.c') diff --git a/apps/nseq.c b/apps/nseq.c index 9d1e0950e8..e9aeea98a0 100644 --- a/apps/nseq.c +++ b/apps/nseq.c @@ -16,7 +16,8 @@ typedef enum OPTION_choice { OPT_ERR = -1, OPT_EOF = 0, OPT_HELP, - OPT_TOSEQ, OPT_IN, OPT_OUT + OPT_TOSEQ, OPT_IN, OPT_OUT, + OPT_PROV_ENUM } OPTION_CHOICE; const OPTIONS nseq_options[] = { @@ -29,6 +30,8 @@ const OPTIONS nseq_options[] = { OPT_SECTION("Output"), {"toseq", OPT_TOSEQ, '-', "Output NS Sequence file"}, {"out", OPT_OUT, '>', "Output file"}, + + OPT_PROV_OPTIONS, {NULL} }; @@ -62,6 +65,10 @@ int nseq_main(int argc, char **argv) case OPT_OUT: outfile = opt_arg(); break; + case OPT_PROV_CASES: + if (!opt_provider(o)) + goto end; + break; } } argc = opt_num_rest(); -- cgit v1.2.3