🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #373

Re: [PATCH v2 2/2] imap-send: let OpenSSL do the hostname verification

#373
From: Aniket Gupta
Date: Mon, 12 Oct 2026 22:00
14 lines
8252 bytes
Hello Beat,

> +		long res = SSL_get_verify_result(sock->ssl);
> +		if (res != X509_V_OK)
> +			return error("unable to verify peer certificate: %s",

I don't think this can be reached. With SSL_VERIFY_PEER, SSL_connect()
already fails, so a hostname mismatch would only print "certificate
verify failed". It does not name the host like the old code did. Could
we print the verify result when SSL_connect() fails?

Thanks,
Aniket
Technical Details
Message-ID: <20261012220039.136932-1-aniketgupta3001@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-71805-linux-kernel-git=dewy.ru
References: <20261012203057.969878-2-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-71805-linux-kernel-git=dewy.ru
From: aniketgupta3001@gmail.com (Aniket Gupta)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v2 2/2] imap-send: let OpenSSL do the hostname verification
Date: Mon, 12 Oct 2026 22:00:39 +0000
Organization: Usenet Network
Message-ID: <20261012220039.136932-1-aniketgupta3001@gmail.com>
References: <20261012203057.969878-2-dev+git@drbeat.li>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1896082"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:SZWWplsW5frgLoVoppH+LP0vM/0= sha256:ollH4T8b/MPxLoNdm/TD3Kb2F7I8KLBTzoqUajIfGow=
	sha1:I2uHw+pxDlxpsaR2DG+4ghE19WM= sha256:1ztBcaNCO4mIlZZHyLrLKEknlKi0GvFEXAcdkdQXveA=
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 AACCB10FCF1; Tue, 13 Oct 2026 01:01:10 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.749
X-Spam-Status: No, score=-0.749 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
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 GFJazk-VsEI8;
	Tue, 13 Oct 2026 01:01:07 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-71805-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 571AB10FCF0; Tue, 13 Oct 2026 01:00:56 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 9CC4D3773A; Mon, 12 Oct 2026 22:00:47 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 1632F49A3B4;
	Mon, 12 Oct 2026 22:00:47 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mDj8/GZU"
X-Received: from mail-dl1-f53.google.com (mail-dl1-f53.google.com [74.125.82.53])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12192395DAC
	for <git@vger.kernel.org>; Mon, 12 Oct 2026 22:00:44 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.53
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791842446; cv=none; b=sJLyqJCrPLXUVeprDVnneAEkcmFf0LXn7nxijkOvpVXiDLaRWVUhFu/s1x4DrmKvQ2uk7bgi9Op8uzpl63IRfQpBxPQlvpKgj4v5cnKGivNte2Gray7Wj4uSgL4nZI763OAZTGB6eiTozGJsunbuwgvD/532jfa5Lpc5MpNQKfY=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791842446; c=relaxed/simple;
	bh=AJg7fkUYlqq0Pk69ep8FNt1EuJLMQmYo/+HTO37FbfE=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=GxTREuakgC6R4M3Z0B4lKDiCyEbkVJk+bfu2btndVEQYTvgQuiD0jYCncbfXAWPKMdZRcafs+7YCLIvCI+Iu1Xji4B9tE4en+pC0NnLTyH42iPugZg5FCq22rgylFfzK9KRk3BNuPhlpgedn/S5W7vfN2Q4lhNgK6MQdVr04/ms=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mDj8/GZU; arc=none smtp.client-ip=74.125.82.53
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dl1-f53.google.com with SMTP id a92af1059eb24-16079d54c17so2760842c88.0
        for <git@vger.kernel.org>; Mon, 12 Oct 2026 15:00:44 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1791842444; x=1792447244; darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=pMZyEsJBVSO44H7wx22ld2uQvwVYyXZgALFpPgKjIb0=;
        b=mDj8/GZU1XPX09Zocfa6XdM+IsYpKCdk5Ysx6vjt9nApXzrSP0SyEXuxpf8jonSr2V
         ieMz4Oubra24xecd3X8CVRfEuToKleMhSoQNEfERy6iY/fFhpp6LyDRkvOt/u/Og0ya2
         ClLfdhfCNzAGA9f7S1nfepMq5eKS3qsZXL3QubTStQcaSwu8TAnw2gb/EkBwCAOXpdfX
         9pRn/a4jJpjdJsN9iv9med7AyL5wq+IUzw6vGF1db74yg1b+CoOfLyPe346LS9BAjo5J
         p4BKbJXHN4Aazi4yr2H/B6HMgpDKVr0/lwgF8Utgj+eButQxK5nGS5XuPhumJbvKwgVP
         XPdQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1791842444; x=1792447244;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
         :to:cc:subject:date:message-id:reply-to:content-type;
        bh=pMZyEsJBVSO44H7wx22ld2uQvwVYyXZgALFpPgKjIb0=;
        b=SYuRH6+aBfmZE0tdvrRtbrYQAwE5Mz0qs+OQn5aceMqwrN30nLB5RUVgFNZOckhrfA
         +55SSqZobBeqSV/b1YmgnI476VvYTrr54ATGaaLq441KCvo/204Dap1XRgpfYO6wBhL4
         +qItySQ7Xf+hhfKLyNI68uQnJMRQHRiAWHQJOcwWjlkSS6I7VoyAqdOdNE32vWJ/ip+y
         d0yRkTWHx/IslNyM8v31JWEz1oN49nU5xHgMRPG/1oehN3780QbMUhUl6rtqC0t6ATQ2
         QywWXmly6U8FLx/n+Jtk7e0lyP41zynQsoZwMcZJw3om12qBedgM6BVPX6m53vs0tdcN
         xT7A==
X-Gm-Message-State: AFq9FYIm/R/3FIsunlwTKkXC+p0zVHuLglPxTMWR2UTNqKwiIVPQzrzW
	7J/g8E/B/ON11oGtboqyz/JZNkyfHjjcx/wWyAuON/oubcjKoXBUGG4x+qqbCaOksGA=
X-Gm-Gg: AYBFou3kDup8vkXC9wDD2MhIdKmRzHZcWu9OwPVYB8ZrUPNpHzXi08pwnUJ3GnSjKhH
	Ps+1PGP8dZgae2RrMkHD6/EOKrNszEcZg9S2gXr5ypldQsY8a7Lhqoc1BDIBkErrdVA8gGSjFEw
	UwrWL9Hsnl/7gyde5DvCy132sSwiHfkcZPB0aQx+XXtIRN29ip7tM2vFYAQ4V2Vu4J6/lT4e0gc
	sa4/zAUasBeNfh69zpE7or0op42u9eU8F9U6EjT/thZOkS+4s+T8wRnLu763rl3yCbiY9EUxc5W
	2DPzIcMqJ+4vA3/3jUmLaexkGX0W9wLV906nW3rE5So+JhVc3Fkxsc+zYxdlwbsNd/XNVtG9+lY
	aZINtDbhAYmUUzUFQgnSLIP0rHtFwQjTWdidymdbWjuqfYZjnVg/64Wo/lFC69ryU0XpiGoYI44
	7DwI6OpFhlEJAj2QVQ4mjLQdskjVE78dtqbE81RnVHA651ZHPJJYpBY5mtoOMB494W07iALPxE1
	GavnVu2rgf3jqb5GvXogMuqoy52a/3VMPPXPdmooyMmBYGcGlTW+8P6/7+PFggA9W/wE6o=
X-Received: by 2002:a05:701b:2605:b0:13e:5a50:1e17 with SMTP id a92af1059eb24-16a55487e53mr16411677c88.3.1791842443966;
        Mon, 12 Oct 2026 15:00:43 -0700 (PDT)
X-Received: from LAPTOP-PVRSMPQK.iiitd.edu.in ([103.25.231.125])
        by smtp.gmail.com with ESMTPSA id a92af1059eb24-169a442956asm40825874c88.16.2026.10.12.15.00.41
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Mon, 12 Oct 2026 15:00:43 -0700 (PDT)
X-Cc: git@vger.kernel.org,
	sandals@crustytoothpaste.net,
	Xiangfei Ding <xfding@google.com>
X-Mailer: git-send-email 2.56.0.116.g6de20f609.dirty
X-In-Reply-To: <20261012203057.969878-2-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>