From nobody Sun Jan 25 04:17:19 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dzJKW5y5Gz6QBCy for ; Sun, 25 Jan 2026 04:17:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dzJKW5BsRz4607 for ; Sun, 25 Jan 2026 04:17:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769314639; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kQt7LzQDpXaV+n+laJ05XIIABYXsXb2H3C4wiM1FulA=; b=HCBj/yO+o6yO6zrkhyfvMLmObjWywWjp+NLSx+4TV2bjg/frbUUp1Xbro4zKlecAy9m1hu oNpHFr8ksPnvRxq5qlXHrSnPZLltMix+ar6Sr3CHyCe30B4suYkHTDu4pBCghy0zOAUTrq j9f8rmYlp+g0oUXGKUyyWGxvuA1Kz83aOFPKfaJCJiM6ONyW9WCha7d1mbRQ0yrH6XYoRJ kl9h5YOtITTWBXr5Y5Uws2Cx1BO9hXvL1KmP6Uheh4pa9dygkoGcUfefnH4qGrCJqOzi2V gN8XfrsaKCUJZog8h+Z/c+MWocsG6IHdwUPpZwNPWcidplStSwu9zpmn4I6ruw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769314639; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kQt7LzQDpXaV+n+laJ05XIIABYXsXb2H3C4wiM1FulA=; b=SBDgcRgGpLGInawLvjNjiXR6jNWdgjQDtGAO0pEwZrf+j8h1dGROsutnJqfNpAelMEjxUd dZEE1YJ3Fw3dHvs62Y+gwWy2E1a6V7SvvyAlMB2bz0C2kk5Qado0uB2mR4jgTiM2hAify1 fdUGp6doT8joGwTSD2kkzaqNzT5vdVkhYMyuGY61xKr4rByMjcVxPZBgeINFjaKNgvbtb4 CI4cuNyt2bTD+V0OwqbwQ/uvvIzFuWG2xbh4yVHWvVBPypxrcXrFNde05lS6lcQR8ryfwi 5cAr4Axd5cWlaWNPiire+Q7d7HLGaDXCdOYO4U1NmYioaRxps0qpQ2Gubprsxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1769314639; a=rsa-sha256; cv=none; b=wJgTD0CsRjSDMp9AimJ8/lxfoygSJsP+yMVYFkQHSsIKFp4bqqqOObrXddPjwDFcjtwDzl EWEdbUD1ERE4fG14niC+NIorw9Lk6Wf2vATgybbldDQi+TISPyb7p3GHQMnwhOQ1oLWOAa eqrD7pmYLqLD0uikud4aZbUPS3DZXCrJQ+vihW5HF39+Fs34GtlLmLV90MF371Dx1+b1Gp UHjXj66vdrQ+DqIOx6Y1i2Z/+7yCMNd+2RRebxD6abdKy5RwzlccA9d5W0VzUAwWA4ree+ mhWcrMYGmjgpKONNWsBEthCPLH5p5zUOuxz/WBWq2UVgqMXZKAa5BYB00/m0gw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dzJKW4lVVz3t3 for ; Sun, 25 Jan 2026 04:17:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 35142 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 25 Jan 2026 04:17:19 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: 6f358a6f2e55 - stable/13 - MFC: libfetch: allow disabling TLS v1.3 when negotiating the connection List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6f358a6f2e5590079094eca67926076d8afb67ed Auto-Submitted: auto-generated Date: Sun, 25 Jan 2026 04:17:19 +0000 Message-Id: <6975994f.35142.858148f@gitrepo.freebsd.org> The branch stable/13 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=6f358a6f2e5590079094eca67926076d8afb67ed commit 6f358a6f2e5590079094eca67926076d8afb67ed Author: Eugene Grosbein AuthorDate: 2026-01-22 14:37:54 +0000 Commit: Eugene Grosbein CommitDate: 2026-01-25 04:17:00 +0000 MFC: libfetch: allow disabling TLS v1.3 when negotiating the connection (cherry picked from commit 129aec72250266e60c07ff4643623188f7c27a9d) --- lib/libfetch/common.c | 2 ++ lib/libfetch/fetch.3 | 12 ++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index e392c9e1e285..766aa2200f26 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -1062,6 +1062,8 @@ fetch_ssl_setup_transport_layer(SSL_CTX *ctx, int verbose) ssl_ctx_options |= SSL_OP_NO_TLSv1_1; if (getenv("SSL_NO_TLS1_2") != NULL) ssl_ctx_options |= SSL_OP_NO_TLSv1_2; + if (getenv("SSL_NO_TLS1_3") != NULL) + ssl_ctx_options |= SSL_OP_NO_TLSv1_3; if (verbose) fetch_info("SSL options: %lx", ssl_ctx_options); SSL_CTX_set_options(ctx, ssl_ctx_options); diff --git a/lib/libfetch/fetch.3 b/lib/libfetch/fetch.3 index 663209f8fc79..ddf092a4ed9e 100644 --- a/lib/libfetch/fetch.3 +++ b/lib/libfetch/fetch.3 @@ -24,7 +24,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd October 7, 2023 +.Dd January 22, 2026 .Dt FETCH 3 .Os .Sh NAME @@ -451,9 +451,11 @@ allows TLSv1 and newer when negotiating the connecting with the remote peer. You can change this behavior by setting the .Ev SSL_NO_TLS1 , -.Ev SSL_NO_TLS1_1 and -.Ev SSL_NO_TLS1_2 -environment variables to disable TLS 1.0, 1.1 and 1.2 respectively. +.Ev SSL_NO_TLS1_1 , +.Ev SSL_NO_TLS1_2 and +.Ev SSL_NO_TLS1_3 +environment variables to disable TLS 1.0, 1.1, 1.2 and 1.3 +respectively. .Sh AUTHENTICATION Apart from setting the appropriate environment variables and specifying the user name and password in the URL or the @@ -677,6 +679,8 @@ Do not allow TLS version 1.0 when negotiating the connection. Do not allow TLS version 1.1 when negotiating the connection. .It Ev SSL_NO_TLS1_2 Do not allow TLS version 1.2 when negotiating the connection. +.It Ev SSL_NO_TLS1_3 +Do not allow TLS version 1.3 when negotiating the connection. .It Ev SSL_NO_VERIFY_HOSTNAME If set, do not verify that the hostname matches the subject of the certificate presented by the server.