summaryrefslogtreecommitdiffstats
path: root/apps/ocsp.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-07-13 10:20:38 +0200
committerDr. David von Oheimb <dev@ddvo.net>2021-11-22 15:38:39 +0100
commit4599ea9fe31953c0c50738ed4b91ade76a693356 (patch)
tree6547f15e6b28a22e2383c496bb102f8f4de66b49 /apps/ocsp.c
parent40649e36c4c0c9438f62e1bf2ccb983f6854c662 (diff)
Fix HTTP server port output and allow dynamic verbosity setting
Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16061)
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r--apps/ocsp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c
index 8f0eacad2b..841b5f7b81 100644
--- a/apps/ocsp.c
+++ b/apps/ocsp.c
@@ -76,7 +76,7 @@ static void make_ocsp_response(BIO *err, OCSP_RESPONSE **resp, OCSP_REQUEST *req
static char **lookup_serial(CA_DB *db, ASN1_INTEGER *ser);
static int do_responder(OCSP_REQUEST **preq, BIO **pcbio, BIO *acbio,
- const char *port, int timeout);
+ int timeout);
static int send_ocsp_response(BIO *cbio, const OCSP_RESPONSE *resp);
static char *prog;
@@ -576,7 +576,7 @@ int ocsp_main(int argc, char **argv)
if (req == NULL && port != NULL) {
#ifndef OPENSSL_NO_SOCK
- acbio = http_server_init_bio(prog, port);
+ acbio = http_server_init(prog, port, -1);
if (acbio == NULL)
goto end;
#else
@@ -657,7 +657,7 @@ redo_accept:
#endif
req = NULL;
- res = do_responder(&req, &cbio, acbio, port, req_timeout);
+ res = do_responder(&req, &cbio, acbio, req_timeout);
if (res == 0)
goto redo_accept;
@@ -1188,13 +1188,13 @@ static char **lookup_serial(CA_DB *db, ASN1_INTEGER *ser)
}
static int do_responder(OCSP_REQUEST **preq, BIO **pcbio, BIO *acbio,
- const char *port, int timeout)
+ int timeout)
{
#ifndef OPENSSL_NO_SOCK
return http_server_get_asn1_req(ASN1_ITEM_rptr(OCSP_REQUEST),
(ASN1_VALUE **)preq, NULL, pcbio, acbio,
NULL /* found_keep_alive */,
- prog, port, 1 /* accept_get */, timeout);
+ prog, 1 /* accept_get */, timeout);
#else
BIO_printf(bio_err,
"Error getting OCSP request - sockets not supported\n");