summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-07-08 19:44:47 +0200
committerDr. David von Oheimb <dev@ddvo.net>2021-07-11 17:06:12 +0200
commit5303aa51c015ab7590187ac3e441b6d3c47a6e79 (patch)
treeabd39227cdab03e3071cff6b771895cb43971a30 /include
parent6a1f9cdc0c33f9b0cfae44ec04e506367a1582cd (diff)
Fix legacy OCSP_REQ_CTX_http() function to expect ASN.1 formatted input
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16029)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ocsp.h.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/openssl/ocsp.h.in b/include/openssl/ocsp.h.in
index a9ff4e565c..e2cc2716b5 100644
--- a/include/openssl/ocsp.h.in
+++ b/include/openssl/ocsp.h.in
@@ -180,8 +180,9 @@ typedef OSSL_HTTP_REQ_CTX OCSP_REQ_CTX;
OSSL_HTTP_REQ_CTX_new(io, io, buf_size)
# define OCSP_REQ_CTX_free OSSL_HTTP_REQ_CTX_free
# define OCSP_REQ_CTX_http(rctx, op, path) \
- OSSL_HTTP_REQ_CTX_set_request_line(rctx, strcmp(op, "POST") == 0, \
- NULL, NULL, path)
+ (OSSL_HTTP_REQ_CTX_set_expected(rctx, NULL, 1 /* asn1 */, 0, 0) && \
+ OSSL_HTTP_REQ_CTX_set_request_line(rctx, strcmp(op, "POST") == 0, \
+ NULL, NULL, path))
# define OCSP_REQ_CTX_add1_header OSSL_HTTP_REQ_CTX_add1_header
# define OCSP_REQ_CTX_i2d(r, it, req) \
OSSL_HTTP_REQ_CTX_set1_req(r, "application/ocsp-request", it, req)