<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libfetch, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F13</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F13'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-02-26T04:03:52Z</updated>
<entry>
<title>libfetch: Gracefully skip unsupported protocols</title>
<updated>2026-02-26T04:03:52Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-02-21T01:18:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=783cec744b9025d4a0d933b39ee95b0085b677c3'/>
<id>urn:sha1:783cec744b9025d4a0d933b39ee95b0085b677c3</id>
<content type='text'>
If socket() fails because the address family or protocol is unsupported,
just continue with the next address.

MFC after:	1 week
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D55407

(cherry picked from commit b5d570e711da1dad303312bebaf1bd2fb720f0dc)
</content>
</entry>
<entry>
<title>libfetch: Fail hard if interrupted while connecting</title>
<updated>2026-02-26T04:03:52Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-02-21T01:18:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c0ec07280e920cf8c672cffa0730676e2dd40d72'/>
<id>urn:sha1:c0ec07280e920cf8c672cffa0730676e2dd40d72</id>
<content type='text'>
This fixes an issue where the first address that DNS returns is blocked
by a packet filter, so we hang for a while, then the user hits Ctrl-C,
interrupting connect(2), whereupon we move on to the next address, get
a connection, request the file, and return to fetch(1), which sees that
SIGINT was caught and bails.

Note that we make no attempt to enforce fetchTimeout in the connection
phase, and never have.  It's feasible, but non-trivial, so we'll leave
it as an exercise for future us.

PR:		293312
MFC after:	1 week
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D55406

(cherry picked from commit afbdcd402bb439bd3d487baaad63b68e95929265)
</content>
</entry>
<entry>
<title>libfetch: Clean up fetch_info usage</title>
<updated>2026-02-26T04:03:52Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-02-21T01:18:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cee22ac13c7d1e64efa911fdd7649abd31b991cb'/>
<id>urn:sha1:cee22ac13c7d1e64efa911fdd7649abd31b991cb</id>
<content type='text'>
* Provide a wrapper for the common if (verbose) fetch_info(...) idiom.

* Replace remaining instances of fprintf(stderr, ...) with fetch_info().

* Fix a few style nits.

MFC after:	1 week
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D55405

(cherry picked from commit 1b7c4d29fdfc975facdc43f6da50947cf3bb8e4a)
</content>
</entry>
<entry>
<title>libfetch: Restore timeout functionality</title>
<updated>2026-02-18T18:41:17Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-02-18T15:10:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=589cef5d51512782cee8b4562a62e70c654a7427'/>
<id>urn:sha1:589cef5d51512782cee8b4562a62e70c654a7427</id>
<content type='text'>
PR:		293124
MFC after:	1 week
Fixes:		792ef1ae7b94 ("Refactor fetch_connect() and fetch_bind() to improve readability and avoid repeating the same DNS lookups.")
Reverts:	8f8a7f6fffd7 ("libfetch: apply timeout to SSL_read()")
Reviewed by:	eugen, imp
Differential Revision:	https://reviews.freebsd.org/D55293

(cherry picked from commit 73b82d1b0a2f09224e6d0f7a13dd73c66d740207)
(insta-mfc requested by re@)
</content>
</entry>
<entry>
<title>libfetch: Check for failure to create SSL context</title>
<updated>2026-02-11T13:54:33Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-02-07T14:24:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=767f1ebcf75e85912b65f9a117c9ab4f76ce71c0'/>
<id>urn:sha1:767f1ebcf75e85912b65f9a117c9ab4f76ce71c0</id>
<content type='text'>
* Drop the ssl_meth member, there is no reason to hang on to it.

* Replace deprecated SSLv23_client_method() with TLS_client_method().

* Check the return value from SSL_CTX_new().

MFC after:	1 week
PR:		292903
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D55098

(cherry picked from commit 4e160c6197f75fda3d5d5997ce893087058cf718)
</content>
</entry>
<entry>
<title>libfetch: remove all old OpenSSL support</title>
<updated>2026-02-11T13:53:30Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2023-06-22T03:53:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e20dba3a212d9e114c697b31ae9104e21a03a6d2'/>
<id>urn:sha1:e20dba3a212d9e114c697b31ae9104e21a03a6d2</id>
<content type='text'>
This change removes pre-OpenSSL 1.1 supporting code and removes/adjusted
preprocessor conditionals which were tautilogically true as FreeBSD main
has shipped with OpenSSL 1.1+ for some time.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D40711

(cherry picked from commit bc1027a7785166fde9c2a3b48e6e70d198377d4b)
</content>
</entry>
<entry>
<title>libfetch: do not call deprecated OpenSSL functions</title>
<updated>2026-02-11T13:53:17Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2023-05-25T15:24:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=be6ed6b2779a883e2583763634db4fff9077ddbc'/>
<id>urn:sha1:be6ed6b2779a883e2583763634db4fff9077ddbc</id>
<content type='text'>
As of OpenSSL 1.1 SSL_library_init() and SSL_load_error_strings() are
deprecated.  There are replacement initialization functions but they do
not need to be called: "As of version 1.1.0 OpenSSL will automatically
allocate all resources that it needs so no explicit initialisation is
required."

Wrap both calls in an OPENSSL_VERSION_NUMBER block.

PR:		271615
Reviewed by:	Pierre Pronchery &lt;pierre@freebsdfoundation.org&gt;
Event:		Kitchener-Waterloo Hackathon 202305
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40265

(cherry picked from commit 01aee8c92d936470c44821736e0d9e11ed7ce812)
</content>
</entry>
<entry>
<title>MFC: libfetch: allow disabling TLS v1.3 when negotiating the connection</title>
<updated>2026-01-25T04:17:00Z</updated>
<author>
<name>Eugene Grosbein</name>
<email>eugen@FreeBSD.org</email>
</author>
<published>2026-01-22T14:37:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6f358a6f2e5590079094eca67926076d8afb67ed'/>
<id>urn:sha1:6f358a6f2e5590079094eca67926076d8afb67ed</id>
<content type='text'>
(cherry picked from commit 129aec72250266e60c07ff4643623188f7c27a9d)
</content>
</entry>
<entry>
<title>MFC: libfetch: apply timeout to SSL_read()</title>
<updated>2026-01-25T04:14:54Z</updated>
<author>
<name>Eugene Grosbein</name>
<email>eugen@FreeBSD.org</email>
</author>
<published>2026-01-22T08:40:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2305dcc115e815b1b6b0259977afddb918f31a26'/>
<id>urn:sha1:2305dcc115e815b1b6b0259977afddb918f31a26</id>
<content type='text'>
Currently, fetchTimeout works for non-SSL connections only, so does fetch -T.
Fix it applying specified timeout to SSL_read().

(cherry picked from commit 8f8a7f6fffd7dca09013f7c4bfa075bc3825fb8e)
</content>
</entry>
<entry>
<title>libfetch: parse scheme://domain:/ correctly</title>
<updated>2024-04-03T19:12:38Z</updated>
<author>
<name>Ka Ho Ng</name>
<email>khng@FreeBSD.org</email>
</author>
<published>2024-03-25T20:10:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c89889b9c342e764e39b351d5024a4ba3429fb15'/>
<id>urn:sha1:c89889b9c342e764e39b351d5024a4ba3429fb15</id>
<content type='text'>
This improves URL-parsing compability with cURL, and unbreaks parsing of
similar kinds of URLs after commit 8d9de5b10a24.

Sponsored by:	Juniper Networks, Inc.
Reviewed by:	des
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D44493

(cherry picked from commit fb860ed0c52c2c1e7792ef86718620a439663c7f)
</content>
</entry>
</feed>
