From: andrei2308 Date: Sat, 25 Apr 2026 07:30:11 +0000 (+0300) Subject: Update description of OSSL_HTTP_adapt_proxy() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e905da2c20e451d1ebcf2bd48425b2b95a81f0a4;p=thirdparty%2Fopenssl.git Update description of OSSL_HTTP_adapt_proxy() Clarify the behavior of OSSL_HTTP_adapt_proxy() regarding proxy determination and exclusion lists. Reviewed-by: Eugene Syromiatnikov Reviewed-by: Matt Caswell Reviewed-by: David von Oheimb MergeDate: Wed Apr 29 15:25:34 2026 (Merged from https://github.com/openssl/openssl/pull/30848) --- diff --git a/doc/man3/OSSL_HTTP_parse_url.pod b/doc/man3/OSSL_HTTP_parse_url.pod index bc29fb18d14..1e8c3efa777 100644 --- a/doc/man3/OSSL_HTTP_parse_url.pod +++ b/doc/man3/OSSL_HTTP_parse_url.pod @@ -32,7 +32,9 @@ see L: =head1 DESCRIPTION -OSSL_HTTP_adapt_proxy() takes an optional proxy hostname I +OSSL_HTTP_adapt_proxy() determines whether a proxy should be used +when connecting to the given I. +It takes an optional proxy hostname I and returns it transformed according to the optional I parameter, I, I, and the applicable environment variable, as follows. If I is NULL, take any default value from the C @@ -40,11 +42,13 @@ environment variable, or from C if I is nonzero. If this still does not yield a proxy hostname, take any further default value from the C environment variable, or from C if I is nonzero. -If I is NULL, take any default exclusion value from the C -environment variable, or else from C. -Return the determined proxy host unless the exclusion value, -which is a list of proxy hosts separated by C<,> and/or whitespace, -contains I. +Return the determined proxy host if I is the empty string +or I is not in the exclusion list. +The exclusion list is a list of server hosts separated by C<,> +and/or whitespace. +They may be given via the I parameter. +If it is NULL, the exclusion list is taken from the C +environment variable if set, otherwise from C. Otherwise return NULL. When I is a string delimited by C<[> and C<]>, which are used for IPv6 addresses, the enclosing C<[> and C<]> are stripped prior to comparison.