From: Daniel Fiala Date: Tue, 29 Mar 2022 18:32:42 +0000 (+0200) Subject: Redefine macro X509_http_nbio to avoid using ocsp.h X-Git-Tag: openssl-3.2.0-alpha1~2791 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f593f32eede30ead69e0a16e47a564a664171283;p=thirdparty%2Fopenssl.git Redefine macro X509_http_nbio to avoid using ocsp.h The functions used from ocsp.h are actually just aliases for functions from http.h. Use them directly to avoid including ocsp.h. Fixes openssl#17148 Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17980) --- diff --git a/include/openssl/x509.h.in b/include/openssl/x509.h.in index aee3a44dc26..74d50c6d819 100644 --- a/include/openssl/x509.h.in +++ b/include/openssl/x509.h.in @@ -358,11 +358,11 @@ int X509_NAME_digest(const X509_NAME *data, const EVP_MD *type, X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout); X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout); # ifndef OPENSSL_NO_DEPRECATED_3_0 -# include /* OCSP_REQ_CTX_nbio_d2i */ +# include /* OSSL_HTTP_REQ_CTX_nbio_d2i */ # define X509_http_nbio(rctx, pcert) \ - OCSP_REQ_CTX_nbio_d2i(rctx, pcert, ASN1_ITEM_rptr(X509)) + OSSL_HTTP_REQ_CTX_nbio_d2i(rctx, pcert, ASN1_ITEM_rptr(X509)) # define X509_CRL_http_nbio(rctx, pcrl) \ - OCSP_REQ_CTX_nbio_d2i(rctx, pcrl, ASN1_ITEM_rptr(X509_CRL)) + OSSL_HTTP_REQ_CTX_nbio_d2i(rctx, pcrl, ASN1_ITEM_rptr(X509_CRL)) # endif # ifndef OPENSSL_NO_STDIO