From 26eb5ade68fc29ed1f79e9a66a6862900d07b25d Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Wed, 28 Aug 2024 09:22:38 +0200 Subject: [PATCH] fixup! fixup! fixup! OSSL_HTTP_adapt_proxy(): fix handling of escaped IPv6 host addresses and of whitespace in no_proxy --- crypto/http/http_lib.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crypto/http/http_lib.c b/crypto/http/http_lib.c index d753892300207..780363b3259ed 100644 --- a/crypto/http/http_lib.c +++ b/crypto/http/http_lib.c @@ -14,7 +14,12 @@ #include /* for BIO_snprintf() */ #include #include "internal/cryptlib.h" /* for ossl_assert() */ -#include "internal/bio_addr.h" /* for NI_MAXHOST */ +#ifndef OPENSSL_NO_SOCK +# include "internal/bio_addr.h" /* for NI_MAXHOST */ +#endif +#ifndef NI_MAXHOST +# define NI_MAXHOST 255 +#endif #include "crypto/ctype.h" /* for ossl_isspace() */ static void init_pstring(char **pstr)