diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-01-29 19:08:45 +0100 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-02-02 07:54:37 +0100 |
commit | 4d190f99ef1b6fa8c49ca1fd9bda872e5f51ec93 (patch) | |
tree | 1a35ecb13d1b6aa3649935648074d3e158b43600 | |
parent | a6d40689ecfb5246c67feee3b8aa5698bb062e90 (diff) |
Constify OSSL_HTTP_REQ_CTX_get0_mem_bio()
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13960)
-rw-r--r-- | crypto/http/http_client.c | 2 | ||||
-rw-r--r-- | doc/man3/OSSL_HTTP_REQ_CTX.pod | 2 | ||||
-rw-r--r-- | include/openssl/http.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/crypto/http/http_client.c b/crypto/http/http_client.c index f1db8fea42..56fb876ee6 100644 --- a/crypto/http/http_client.c +++ b/crypto/http/http_client.c @@ -116,7 +116,7 @@ void OSSL_HTTP_REQ_CTX_free(OSSL_HTTP_REQ_CTX *rctx) OPENSSL_free(rctx); } -BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(OSSL_HTTP_REQ_CTX *rctx) +BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(const OSSL_HTTP_REQ_CTX *rctx) { if (rctx == NULL) { ERR_raise(ERR_LIB_HTTP, ERR_R_PASSED_NULL_PARAMETER); diff --git a/doc/man3/OSSL_HTTP_REQ_CTX.pod b/doc/man3/OSSL_HTTP_REQ_CTX.pod index c0c3170edd..ec18e36d95 100644 --- a/doc/man3/OSSL_HTTP_REQ_CTX.pod +++ b/doc/man3/OSSL_HTTP_REQ_CTX.pod @@ -40,7 +40,7 @@ OSSL_HTTP_REQ_CTX_set_max_response_length ASN1_VALUE *OSSL_HTTP_REQ_CTX_sendreq_d2i(OSSL_HTTP_REQ_CTX *rctx, const ASN1_ITEM *it); - BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(OSSL_HTTP_REQ_CTX *rctx); + BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(const OSSL_HTTP_REQ_CTX *rctx); void OSSL_HTTP_REQ_CTX_set_max_response_length(OSSL_HTTP_REQ_CTX *rctx, unsigned long len); diff --git a/include/openssl/http.h b/include/openssl/http.h index 8f9e8c4cfa..6c3ddd8ce8 100644 --- a/include/openssl/http.h +++ b/include/openssl/http.h @@ -55,7 +55,7 @@ int OSSL_HTTP_REQ_CTX_i2d(OSSL_HTTP_REQ_CTX *rctx, const char *content_type, int OSSL_HTTP_REQ_CTX_nbio(OSSL_HTTP_REQ_CTX *rctx); ASN1_VALUE *OSSL_HTTP_REQ_CTX_sendreq_d2i(OSSL_HTTP_REQ_CTX *rctx, const ASN1_ITEM *it); -BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(OSSL_HTTP_REQ_CTX *rctx); +BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(const OSSL_HTTP_REQ_CTX *rctx); void OSSL_HTTP_REQ_CTX_set_max_response_length(OSSL_HTTP_REQ_CTX *rctx, unsigned long len); |