diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-03-20 22:04:58 +0100 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-03-31 19:51:52 +0200 |
commit | 534725fd4389782d693cff061f4d31b786058ab1 (patch) | |
tree | 2c950dd52c0a91c1d8754085bb0daf605d272392 /crypto/ocsp | |
parent | c37b94795730a857485c6cebac6402c03246dce5 (diff) |
HTTP: Fix method_POST param by moving it to OSSL_HTTP_REQ_CTX_set_request_line()
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14699)
Diffstat (limited to 'crypto/ocsp')
-rw-r--r-- | crypto/ocsp/ocsp_http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ocsp/ocsp_http.c b/crypto/ocsp/ocsp_http.c index a35201e047..7a3c19c860 100644 --- a/crypto/ocsp/ocsp_http.c +++ b/crypto/ocsp/ocsp_http.c @@ -18,13 +18,13 @@ OSSL_HTTP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, { OSSL_HTTP_REQ_CTX *rctx = NULL; - if ((rctx = OSSL_HTTP_REQ_CTX_new(io, io, 1 /* POST */, + if ((rctx = OSSL_HTTP_REQ_CTX_new(io, io, maxline, 0 /* default max_resp_len */, 0 /* no timeout, blocking indefinitely */, NULL, 1 /* expect_asn1 */)) == NULL) return NULL; - if (!OSSL_HTTP_REQ_CTX_set_request_line(rctx, NULL, NULL, path)) + if (!OSSL_HTTP_REQ_CTX_set_request_line(rctx, 1 /* POST */, NULL, NULL, path)) goto err; if (req != NULL |