🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #730

[PATCH v3 1/3] imap-send: use the recommended TLS_method()

#730
From: Beat Bolli
Date: Sat, 17 Oct 2026 10:09
32 lines
6397 bytes
SSLv23_method() has been deprecated since OpenSSL 1.1.0, and
TLS_method() is the recommended function[1].

Let's use the current function, lest a reader of the code thinks we
don't support current TLS versions.

[1]: https://docs.openssl.org/master/man3/SSL_CTX_new/#history

Signed-off-by: Beat Bolli <dev+git@drbeat.li>
---
 imap-send.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/imap-send.c b/imap-send.c
index bf1d2cf74d..9f21705d77 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -298,9 +298,9 @@ static int ssl_socket_connect(struct imap_socket *sock,
 	SSL_library_init();
 	SSL_load_error_strings();
 
-	meth = SSLv23_method();
+	meth = TLS_method();
 	if (!meth) {
-		ssl_socket_perror("SSLv23_method");
+		ssl_socket_perror("TLS_method");
 		return -1;
 	}
 
-- 
2.53.0
Technical Details
Message-ID: <20261017100956.529225-1-dev+git@drbeat.li>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72302-linux-kernel-git=dewy.ru
References: <20261012203057.969878-1-dev+git@drbeat.li>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72302-linux-kernel-git=dewy.ru
From: dev+git@drbeat.li (Beat Bolli)
Newsgroups: linux.kernel.git
Subject: [PATCH v3 1/3] imap-send: use the recommended TLS_method()
Date: Sat, 17 Oct 2026 12:09:54 +0200
Organization: Usenet Network
Message-ID: <20261017100956.529225-1-dev+git@drbeat.li>
References: <20261012203057.969878-1-dev+git@drbeat.li>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3016661"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:LiTTP15LQ+LxUTyBkLjXJG1IojU= sha256:/JWQw5StrrcInk+VAstDog05JnIgcCniLvkEJltSKFQ=
	sha1:8+E1i52p8dOgH/g6v7vfz4b7vVo= sha256:Em4T8lu/h1R+bq9Ot0fWVBfaMnyPbpsKMljeH3DbvRA=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id A84FF1106C8; Sat, 17 Oct 2026 13:10:55 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.949
X-Spam-Status: No, score=-2.949 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ZFRLYB4QSVtD;
	Sat, 17 Oct 2026 13:10:48 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-72302-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=drbeat.li
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 4F7BF1106C6; Sat, 17 Oct 2026 13:10:45 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id E55703ACAC; Sat, 17 Oct 2026 10:10:38 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id EBF1348164A;
	Sat, 17 Oct 2026 10:10:25 +0000 (UTC)
X-Received: from mail-gateway-shared11.cyon.net (mail-gateway-shared11.cyon.net [194.126.200.64])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id A885B47DD5E
	for <git@vger.kernel.org>; Sat, 17 Oct 2026 10:10:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.126.200.64
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792231824; cv=none; b=cxENrQCQuMmBRimfD333Ia6+zyTrLfKeRtYp2yDk21tgTA75LkVSGQu58fYgRGNLrljmp3eBIR78KBc/iVdnnWeOPduYOWov1/jg4WdpiA1/vTJXZF1Q4MxQY+hnuOozCyrgbiuiGiIDUEdKeifZhTHbyFxu2O9TDpungeqvzXI=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792231824; c=relaxed/simple;
	bh=wecnm+4sgBPC7s4C2bcCkKsOZI6BiBP8MeT/fKnRbAs=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=uGAORBRujAukquyBtDKZWmTlHWmpdT0cBdPr7hPwCKksnfb3xgQwrx95OLeSmiRes6TTt8MQYWPgz++0rSoxaTilLEbVSLwkeHOLWQ76yzWa0RWhXPwzt/NN7IN5JFU27mrhIR40mzuSC0h7S0dddwiV3Rtyua/zZDJjGN5lhzM=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=drbeat.li; spf=pass smtp.mailfrom=drbeat.li; arc=none smtp.client-ip=194.126.200.64
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=drbeat.li
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=drbeat.li
X-Received: from s019.cyon.net ([149.126.4.28])
	by mail-gateway-shared11.cyon.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim)
	(envelope-from <ig@drbeat.li>)
	id 1xI1Me-007OUn-2T
	for git@vger.kernel.org;
	Sat, 17 Oct 2026 12:10:10 +0200
X-Received: from [10.20.10.51] (port=58740 helo=mail.cyon.ch)
	by s019.cyon.net with esmtpa (Exim 4.100.1)
	(envelope-from <ig@drbeat.li>)
	id 1xI1Md-0000000DUom-1bWM;
	Sat, 17 Oct 2026 12:10:03 +0200
X-Received: by oh4.internal (Postfix, from userid 1000)
	id 0648440051; Sat, 17 Oct 2026 12:10:03 +0200 (CEST)
X-Cc: Xiangfei Ding <xfding@google.com>,
	Aniket Gupta <aniketgupta3001@gmail.com>,
	Patrick Steinhardt <ps@pks.im>,
	Junio C Hamano <gitster@pobox.com>,
	"brian m. carlson" <sandals@crustytoothpaste.net>,
	Beat Bolli <dev+git@drbeat.li>
X-Mailer: git-send-email 2.53.0
X-In-Reply-To: <20261012203057.969878-1-dev+git@drbeat.li>
X-Precedence: bulk
X-Mailing-List: git@vger.kernel.org
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - s019.cyon.net
X-AntiAbuse: Original Domain - vger.kernel.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - drbeat.li
X-Get-Message-Sender-Via: s019.cyon.net: authenticated_id: ig@drbeat.li
X-Authenticated-Sender: s019.cyon.net: ig@drbeat.li