From: Dr. David von Oheimb Date: Sun, 23 May 2021 10:36:11 +0000 (+0200) Subject: apps/ocsp: Allow -port 0 X-Git-Tag: openssl-3.0.0-beta1~323 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4706b165a12dd5e120efaa9a94ea47f26792362;p=thirdparty%2Fopenssl.git apps/ocsp: Allow -port 0 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/15417) --- diff --git a/apps/ocsp.c b/apps/ocsp.c index cf4f629db14..7a5f84e527d 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -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', diff --git a/doc/man1/openssl-ocsp.pod.in b/doc/man1/openssl-ocsp.pod.in index 0116feeaaef..0ef1e1a002a 100644 --- a/doc/man1/openssl-ocsp.pod.in +++ b/doc/man1/openssl-ocsp.pod.in @@ -371,6 +371,7 @@ subject name. Port to listen for OCSP requests on. The port may also be specified using the B option. +A `0` argument indicates that any available port shall be chosen automatically. =item B<-ignore_err>