apps/ocsp: Allow -port 0

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15417)
This commit is contained in:
Dr. David von Oheimb 2021-05-23 12:36:11 +02:00 committed by Dr. David von Oheimb
parent d318fc9545
commit f4706b165a
2 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,7 @@ const OPTIONS ocsp_options[] = {
OPT_SECTION("Client"),
{"url", OPT_URL, 's', "Responder URL"},
{"host", OPT_HOST, 's', "TCP/IP hostname:port to connect to"},
{"port", OPT_PORT, 'p', "Port to run responder on"},
{"port", OPT_PORT, 'N', "Port to run responder on"},
{"path", OPT_PATH, 's', "Path to use in OCSP request"},
#ifndef OPENSSL_NO_SOCK
{"proxy", OPT_PROXY, 's',

View File

@ -371,6 +371,7 @@ subject name.
Port to listen for OCSP requests on. The port may also be specified
using the B<url> option.
A `0` argument indicates that any available port shall be chosen automatically.
=item B<-ignore_err>