summaryrefslogtreecommitdiffstats
path: root/apps/cmp.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/cmp.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/cmp.c')
-rw-r--r--apps/cmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/cmp.c b/apps/cmp.c
index 589cce1266..f646e3f7bc 100644
--- a/apps/cmp.c
+++ b/apps/cmp.c
@@ -2568,7 +2568,7 @@ static int cmp_server(OSSL_CMP_CTX *srv_cmp_ctx) {
int retry = 1;
int ret = 1;
- if ((acbio = http_server_init_bio(prog, opt_port)) == NULL)
+ if ((acbio = http_server_init(prog, opt_port, opt_verbosity)) == NULL)
return 0;
while (opt_max_msgs <= 0 || msgs < opt_max_msgs) {
char *path = NULL;
@@ -2578,7 +2578,7 @@ static int cmp_server(OSSL_CMP_CTX *srv_cmp_ctx) {
ret = http_server_get_asn1_req(ASN1_ITEM_rptr(OSSL_CMP_MSG),
(ASN1_VALUE **)&req, &path,
&cbio, acbio, &keep_alive,
- prog, opt_port, 0, 0);
+ prog, 0, 0);
if (ret == 0) { /* no request yet */
if (retry) {
ossl_sleep(1000);