summaryrefslogtreecommitdiffstats
path: root/apps/ocsp.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-05-03 16:33:10 +0200
committerDr. David von Oheimb <dev@ddvo.net>2021-05-14 19:24:42 +0200
commit829902879eb7ba1260a9444f6b6b91d84ca61037 (patch)
tree3bfa9571c2115585d905421a45e7a9053ea84c66 /apps/ocsp.c
parent22fe2b129922bc9322c41ce8beff1551c078c838 (diff)
HTTP client API: Generalize to arbitrary request and response contents
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15053)
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r--apps/ocsp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c
index 694855fe09..dd816c4221 100644
--- a/apps/ocsp.c
+++ b/apps/ocsp.c
@@ -1214,6 +1214,7 @@ OCSP_RESPONSE *process_responder(OCSP_REQUEST *req,
app_http_post_asn1(host, port, path, NULL, NULL /* no proxy used */,
ctx, headers, "application/ocsp-request",
(ASN1_VALUE *)req, ASN1_ITEM_rptr(OCSP_REQUEST),
+ "application/ocsp-response",
req_timeout, ASN1_ITEM_rptr(OCSP_RESPONSE));
if (resp == NULL)