]> git.ipfire.org Git - thirdparty/openssl.git/commit - CHANGES.md
HTTP client: Minimal changes that include the improved API
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Tue, 4 May 2021 22:09:43 +0000 (00:09 +0200)
committerDr. David von Oheimb <dev@ddvo.net>
Wed, 12 May 2021 13:11:51 +0000 (15:11 +0200)
commit8f965908a53b4f0c5a735739e8a273a3a33a976e
tree9efe89d630473e84898a5a00f2898f9b0f7fbdbd
parent4329f361ce75973ceca9d440e8430580ee515070
HTTP client: Minimal changes that include the improved API

This is a minimal version of pull request #15053 including all the
proposed improvements to the HTTP client API and its documentation
but only those code adaptations strictly needed for it.

The proposed new features include
* support for persistent connections (keep-alive),
* generalization to arbitrary request and response types, and
* support for streaming BIOs for request and response data.

The related API changes include:
* Split the monolithic OSSL_HTTP_transfer() into OSSL_HTTP_open(),
  OSSL_HTTP_set_request(), a lean OSSL_HTTP_transfer(), and OSSL_HTTP_close().
* Split the timeout functionality accordingly and improve default behavior.
* Extract part of OSSL_HTTP_REQ_CTX_new() to OSSL_HTTP_REQ_CTX_set_expected().

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15147)
23 files changed:
CHANGES.md
apps/lib/apps.c
crypto/cmp/cmp_http.c
crypto/http/http_client.c
crypto/http/http_local.h
crypto/ocsp/ocsp_http.c
crypto/x509/x_all.c
doc/man1/openssl-cmp.pod.in
doc/man3/ASN1_item_d2i_bio.pod
doc/man3/OCSP_sendreq_new.pod
doc/man3/OSSL_HTTP_REQ_CTX.pod
doc/man3/OSSL_HTTP_transfer.pod
doc/man3/X509_load_http.pod
include/crypto/httperr.h
include/openssl/cmp.h.in
include/openssl/http.h
include/openssl/httperr.h
include/openssl/ocsp.h.in
test/cmp_ctx_test.c
test/http_test.c
util/libcrypto.num
util/missingcrypto.txt
util/other.syms