🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #328

Re: [PATCH] imap-send: use ASN1_STRING_length

#328
From: Aniket Gupta
Date: Mon, 12 Oct 2026 15:17
9 lines
8280 bytes
Hello Xiangfei,

> +	int pat_len = ASN1_STRING_length(asn1_str);

It seems that with OpenSSL 4.1.0-beta2 this is deprecated (ASN1_STRING_get_length() is the replacement), so it warns, and fails with DEVELOPER=1. The patch adds a second use at the error message. Beat Bolli has a series from 7 Sept ("imap-send: future proofing and two correctness fixes") that also touches host_matches(), maybe we can check how the two can fit together?

Thanks,
Aniket
Technical Details
Message-ID: <20261012151748.62723-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-71759-linux-kernel-git=dewy.ru
References: <20261011210928.3900020-1-xfding@google.com>

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-71759-linux-kernel-git=dewy.ru
From: aniketgupta3001@gmail.com (Aniket Gupta)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH] imap-send: use ASN1_STRING_length
Date: Mon, 12 Oct 2026 15:17:48 +0000
Organization: Usenet Network
Message-ID: <20261012151748.62723-1-aniketgupta3001@gmail.com>
References: <20261011210928.3900020-1-xfding@google.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1812788"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:3RlMetC3pypoc8MJTtS9QFHoOAs= sha256:0GYdCZSNOp1JsBVWaWhmZwKOMNzKZzEbvw2yC4275P4=
	sha1:Vvhs97Ykm1sA5Sc5R+hJjGF58CY= sha256:nrHDIVbv9qxaobSq/4X0Xc3cy5U4HuM0oSlH33QtV8A=
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 83E6510FC3B; Mon, 12 Oct 2026 18:41:03 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: 0.351
X-Spam-Status: No, score=0.351 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, 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=no 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 rJq94qWyaqVK;
	Mon, 12 Oct 2026 18:40:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-71759-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 6104610FC36; Mon, 12 Oct 2026 18:40:47 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sin.lore.kernel.org (Postfix) with ESMTP id 9BDD92CDB5; Mon, 12 Oct 2026 15:18:04 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id D443A49B1E9;
	Mon, 12 Oct 2026 15:18:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QTxkFTnU"
X-Received: from mail-dy1-f169.google.com (mail-dy1-f169.google.com [74.125.82.169])
	(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 D206349B1F1
	for <git@vger.kernel.org>; Mon, 12 Oct 2026 15:17:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.169
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791818279; cv=none; b=qZoyW+ze6K+S5U3e0R8ki+RbacSRsaQR7d/9uO8tlcu2tk90f8IAVr4X+76N3wKghlQoo77o5roJ7e0S2v54sKi5V8VTJXEgg45moEDA0OrBe0so6DxpG7ALupHeqQ/1jXZlBbfjM2vA0iikeblmqGInH+F/tFxcMCU8tkhq1bc=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791818279; c=relaxed/simple;
	bh=CesbK8+NFuXbS+spzKHuu3AW1Raf2w5kloHTynl1AM8=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=Ehxekq6f+ZyuIgjV/wQ45QEWatk4fDy9rSJ9KkxTYV1NTuqAnnR4pg92NypwCLOZ9Cdb4wRfqAI0hUaF9LTy+JIWZTBFZhLlds4Ov17v7BbCwZlesvTPddk2ZTzhoCMgp8SG63eJXwywzvbqfjavsdaUv201A2+F3G2q4O0eth4=
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=QTxkFTnU; arc=none smtp.client-ip=74.125.82.169
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-dy1-f169.google.com with SMTP id 5a478bee46e88-354ba08cfd1so3549786eec.1
        for <git@vger.kernel.org>; Mon, 12 Oct 2026 08:17:58 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1791818278; x=1792423078; 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=Ft8Sb7KdKQW1PvBHSYGS1zGkj4cCPTVD2fWrPm2+zcc=;
        b=QTxkFTnUACSl3s1nQymE0UmIp1sSzwwEgshEQFsoyUfQONIrkRAxkDG6R9+nEM2d5d
         xjGPXJpMcjWJAT2rQWELPIGO5pWjBMyuMOHdm3PQAi3rxA9SYOwyb6s+SeUU8txDqXoR
         TRmiy00VhW2z51NSm+LgJJ8yHZCJUHa/JtRNrYoMqWKfrJDiUjqk/Cl6iqRnctHWJdP8
         VN5J/V1AtAGSkmzO9lExoLVIbB+sn7q/IGtCr7uSnZ6eSPmSkky7Dv+YG0CiQ5UnpEO9
         RcPXV+F+tHF40FA3S2qfKsuA9yFOycf8jiax2Z7BizfHfIyV+hylYpZ/zro8nnloppN6
         5KoQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1791818278; x=1792423078;
        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=Ft8Sb7KdKQW1PvBHSYGS1zGkj4cCPTVD2fWrPm2+zcc=;
        b=CTlE/DoNpiwBqv8ARnPdm90pewzd7jd5udoMBv6peqYWmCrPKferUjOdMGig68WYti
         II8bOFil70qIFy/Y2PTYsCOOE1dRiuebq5dhW/JE0V3mWKwhkgG3UU/FRiHH4Tv3zQYb
         l1FgHXqGW+AofGHuM5XydYHtGo7oDyTfAE1aGYrqPCdLLDzN7Crc9PVXXwP6arH9yKb0
         SCYoLKLeoTClcNFPPB+bnVL6YQACZp6I3LQc2jXa3iuG5ftgfc5LmtePPyo+mUBnbRS3
         LUoH9nQKUCWtnF3jySgjA24pbHFa1Ei5vbzyjeUMfuy8ZNx9ZXCIa65biBV+7mHXEcfT
         bwTw==
X-Gm-Message-State: AFq9FYL4XMDY66PZIx9/QLxmaFlaCEa/+EUm+ENy9Blx/XcdMgL3Qw9C
	qtLgv0EmpUB75XHJiWwZwOj3HH2TwcybMGFl68s9hj+JG3J/0930p+UE7quEDHTSc7Q=
X-Gm-Gg: AYBFou0AAeawjwX8aQhd+bzMGVozB0EG2jTkqe3FOK15q7KPCn4CdsUgb+THpuakb32
	vIZvEd8NfpqZ7zsxRZUXn86o8E9B55hST8Ls0hQetdYW0TQqagJyDW3Zc7JV+kL++K3MQfWifLX
	cROI8aCA+O99eYk6lufcT95of1sFKP+Dm9M+O/kLpUuKytDqJMTzpA86brIlauwLBiPibIKufxA
	SqwHOu2Ch2xrLRGfn0drY9AB7kZIEzAfhyeTK++B+auxzn81vUQ8QpItKbOETwwlnZLmTjPjdYF
	W0BpX0rIMXlVc8dSMRVh/jbIxv7+Rz+D3Dk5OeI7EE3UM36lsX4Y8stP2yKyLlCL7h8mUkhT/7F
	aFWRf35XsPBr1E/F+jex7NHCmc6GlqVuzjilreQ57+CpVq52TqgiN/+YVLntXXfLm3VmO55+FRT
	ELa6f8ifBqsKHdELRv9DZwYIt48oq8e+PDK/J2ga5RWEzgRThHjyxwLY+SgBgaIcD3SilSV2as1
	zDiwLnwJ1wW12OJo6va2FEqURYI9WTbjoc2ZrG6ZYAuTn+k4qy/73yuKbaW
X-Received: by 2002:a05:7301:5f0b:b0:351:4648:3611 with SMTP id 5a478bee46e88-3537e1118bcmr12689181eec.26.1791818277413;
        Mon, 12 Oct 2026 08:17:57 -0700 (PDT)
X-Received: from LAPTOP-PVRSMPQK.iiitd.edu.in ([103.25.231.125])
        by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3537cacb61asm36525549eec.21.2026.10.12.08.17.54
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Mon, 12 Oct 2026 08:17:56 -0700 (PDT)
X-Cc: git@vger.kernel.org,
	gitster@pobox.com,
	dev+git@drbeat.li,
	davidben@google.com,
	dingxiangfei2009@protonmail.ch
X-Mailer: git-send-email 2.56.0.116.g6de20f609.dirty
X-In-Reply-To: <20261011210928.3900020-1-xfding@google.com>
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>