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/ocsp.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/ocsp.c')
-rw-r--r-- | apps/ocsp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c index 3297b4287a..3c6b8cbd88 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -137,7 +137,7 @@ typedef enum OPTION_choice { OPT_RCID, OPT_V_ENUM, OPT_MD, - OPT_MULTI + OPT_MULTI, OPT_PROV_ENUM } OPTION_CHOICE; const OPTIONS ocsp_options[] = { @@ -230,6 +230,7 @@ const OPTIONS ocsp_options[] = { {"status_age", OPT_STATUS_AGE, 'p', "Maximum status age in seconds"}, OPT_V_OPTIONS, + OPT_PROV_OPTIONS, {NULL} }; @@ -541,6 +542,10 @@ int ocsp_main(int argc, char **argv) multi = atoi(opt_arg()); # endif break; + case OPT_PROV_CASES: + if (!opt_provider(o)) + goto end; + break; } } if (trailing_md) { |