diff options
author | Pauli <paul.dale@oracle.com> | 2020-02-25 05:29:30 +0100 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-03-07 02:46:48 +0100 |
commit | 6bd4e3f231d74578b97821d981d42583fec5c2f3 (patch) | |
tree | d255cb0db84ccb5bf71fed8e62f4bb310933b5a5 /apps/ec.c | |
parent | man1: make all openssl command line tool documentation generated. (diff) | |
download | openssl-6bd4e3f231d74578b97821d981d42583fec5c2f3.tar.xz openssl-6bd4e3f231d74578b97821d981d42583fec5c2f3.zip |
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 <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11167)
Diffstat (limited to 'apps/ec.c')
-rw-r--r-- | apps/ec.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -40,7 +40,7 @@ typedef enum OPTION_choice { OPT_INFORM, OPT_OUTFORM, OPT_ENGINE, OPT_IN, OPT_OUT, OPT_NOOUT, OPT_TEXT, OPT_PARAM_OUT, OPT_PUBIN, OPT_PUBOUT, OPT_PASSIN, OPT_PASSOUT, OPT_PARAM_ENC, OPT_CONV_FORM, OPT_CIPHER, - OPT_NO_PUBLIC, OPT_CHECK + OPT_NO_PUBLIC, OPT_CHECK, OPT_PROV_ENUM } OPTION_CHOICE; const OPTIONS ec_options[] = { @@ -70,6 +70,8 @@ const OPTIONS ec_options[] = { {"pubout", OPT_PUBOUT, '-', "Output public key, not private"}, {"no_public", OPT_NO_PUBLIC, '-', "exclude public key from private key"}, {"passout", OPT_PASSOUT, 's', "Output file pass phrase source"}, + + OPT_PROV_OPTIONS, {NULL} }; @@ -161,6 +163,10 @@ int ec_main(int argc, char **argv) case OPT_CHECK: check = 1; break; + case OPT_PROV_CASES: + if (!opt_provider(o)) + goto end; + break; } } argc = opt_num_rest(); |