summaryrefslogtreecommitdiff
path: root/apps/cmp.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2022-05-28 18:44:02 +0200
committerDr. David von Oheimb <dev@ddvo.net>2022-09-07 23:04:25 +0200
commit8aff29f020752c96cc2ab7d111d9c33aaf55c671 (patch)
tree147cf3269d3859001138a53d99a79473d9ff5db4 /apps/cmp.c
parent5d0a327020d238949ffbcff56e1c32aa4a436f52 (diff)
downloadopenssl-new-8aff29f020752c96cc2ab7d111d9c33aaf55c671.tar.gz
APPS HTTP server: trace requests and responses when enabled
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/18434)
Diffstat (limited to 'apps/cmp.c')
-rw-r--r--apps/cmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/cmp.c b/apps/cmp.c
index f3624aa94a..ccfd7fcc23 100644
--- a/apps/cmp.c
+++ b/apps/cmp.c
@@ -2729,7 +2729,7 @@ static int cmp_server(OSSL_CMP_CTX *srv_cmp_ctx)
msgs++;
if (req != NULL) {
if (strcmp(path, "") != 0 && strcmp(path, "pkix/") != 0) {
- (void)http_server_send_status(cbio, 404, "Not Found");
+ (void)http_server_send_status(prog, cbio, 404, "Not Found");
CMP_err1("expecting empty path or 'pkix/' but got '%s'",
path);
OPENSSL_free(path);
@@ -2740,11 +2740,11 @@ static int cmp_server(OSSL_CMP_CTX *srv_cmp_ctx)
resp = OSSL_CMP_CTX_server_perform(cmp_ctx, req);
OSSL_CMP_MSG_free(req);
if (resp == NULL) {
- (void)http_server_send_status(cbio,
+ (void)http_server_send_status(prog, cbio,
500, "Internal Server Error");
break; /* treated as fatal error */
}
- ret = http_server_send_asn1_resp(cbio, keep_alive,
+ ret = http_server_send_asn1_resp(prog, cbio, keep_alive,
"application/pkixcmp",
ASN1_ITEM_rptr(OSSL_CMP_MSG),
(const ASN1_VALUE *)resp);