From patchwork Sat Oct 3 00:00:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karsten Sperling X-Patchwork-Id: 2315495 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=EvJsHOD6; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=apple.com header.i=@apple.com header.a=rsa-sha256 header.s=20180706 header.b=d/oCzP/G; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hxh722BZwz1xyX for ; Sat, 03 Oct 2026 20:03:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Date:Message-id:Subject:MIME-version :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=7PLiKFvszNBNAU+z14Pt4pXrC1WJrAI70avuF7qF6G4=; b=EvJsHOD6hSbVJk SBEkqX+XA3/bfKTYBXJ7DsoPLTkbI7JQZOip651C1yDpFHJVSQVc3IYZtwAai3k70OXrjTGRNPNkW LpSyD9C9s3kSfkzXZYMm9xru2pcJ0l1NAPHM339aUwfupfxeYIJm5Bh+e30Ka1R00g5dehoPxSPTE VqaHkAUn76j76+TYzPXHlWW/Ennb9HZ4NWRpYt0jxuCuJoZDTRB1fV6meMXz/Se5GZymA3zUGawYx vm+piXX/P/LpcUMwiFhv/Njqlwktf8hwPN1mhTsGc7ur7Pp33IqxNjWVtP1EYjxgS2xCff4uuSwQ6 lQTbiKyGZfohn/DhoKyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCwYJ-0000000DKYb-1EYx; Sat, 03 Oct 2026 10:01:11 +0000 Received: from hfd-mx02.apple.com ([17.132.100.1]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCwYE-0000000DKXJ-0XxE for hostap@lists.infradead.org; Sat, 03 Oct 2026 10:01:07 +0000 Received: from sg34p01nt-mtap02.apple.com (sg34p01nt-mtap02.ise.apple.com [100.85.116.84]) by am11p01nt-mxp02.apple.com (Oracle Communications Messaging Server 8.1.0.28.20250821 64bit (built Aug 21 2025)) with ESMTPS id <0TMB0A8P4T5L3Y00@am11p01nt-mxp02.apple.com> for hostap@lists.infradead.org; Sat, 03 Oct 2026 10:01:00 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-02_07,2026-10-02_02,2025-10-01_01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=20180706; bh=TDLxe+/yn0WUKXejHWAJ42x sF7vcP83L4sWHchJQk24=; b=d/oCzP/GZR0OgDzd1cKkk8L+Hvl/63E4U+Jp38u wmIl4VLPAGD5uwx6myo2bL1H0T1a5vQ/cHD/jLaGJ+ZjzBVWdwjGyXGQDhYUx1Mw rrULQWw82zSeaktc9Oo/EERAUsC4kudYQBf/BN3uoDviwORPz4O5iS+B4BnqmNbB M5oaiNPayw59zOGO7n/SgZBSjwdjsv4KyKyPaUDRmfvFnIHSD4hS8LDV6Bcw5Yrl 2QURFQ3ml7zX66SONlQyEoqyIe/tfS86jfvLnJ6fXS+XhMhA52mOSVJcDKJe1Owj l/vEa66/QAOGrxd4RERCmAaNu317mL7k9tm+pF1PWfyiwsQ== Received: from sg34p01nt-mmpp05.apple.com (sg34p01nt-mmpp05.ise.apple.com [100.85.116.73]) by sg34p01nt-mtap02.apple.com (Oracle Communications Messaging Server 8.1.0.28.20250821 64bit (built Aug 21 2025)) with ESMTPS id <0TMB0Q13IT5LWO00@sg34p01nt-mtap02.apple.com> for hostap@lists.infradead.org; Sat, 03 Oct 2026 10:00:57 +0000 (GMT) Received: from process_milters-daemon.sg34p01nt-mmpp05.apple.com by sg34p01nt-mmpp05.apple.com (Oracle Communications Messaging Server 8.1.0.28.20260513 64bit (built May 13 2026)) id <0TMB2GC00SGOO100@sg34p01nt-mmpp05.apple.com> for hostap@lists.infradead.org; Sat, 03 Oct 2026 10:00:57 +0000 (GMT) X-Va-A: X-Va-T-CD: cc71241c414513240b95897170558441 X-Va-E-CD: f78cef62c76d75cc7253a2a9b536d4fb X-Va-R-CD: a2c48d0b97cc1aebe5c8a50a98627861 X-Va-ID: be0449a6-23c3-48df-898f-4e643cacbb9e X-Va-CD: 0 X-V-A: X-V-T-CD: cc71241c414513240b95897170558441 X-V-E-CD: f78cef62c76d75cc7253a2a9b536d4fb X-V-R-CD: a2c48d0b97cc1aebe5c8a50a98627861 X-V-ID: a1c8817e-ef97-4881-81e7-aca10bcc46a9 X-V-CD: 0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-02_07,2026-10-02_02,2025-10-01_01 Received: from smtpclient.apple (unknown [10.106.232.78]) by sg34p01nt-mmpp05.apple.com (Oracle Communications Messaging Server 8.1.0.28.20260513 64bit (built May 13 2026)) with ESMTPSA id <0TMB2GJ1BT5GNR00@sg34p01nt-mmpp05.apple.com> for hostap@lists.infradead.org; Sat, 03 Oct 2026 10:00:55 +0000 (GMT) From: Karsten Sperling MIME-version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: [PATCH] hostapd: Pass BSS tls_flags to tls_global_set_params Message-id: <7D82EE78-32F5-40B4-9169-336E5A19A8F2@apple.com> Date: Sat, 03 Oct 2026 23:00:41 +1300 To: hostap@lists.infradead.org X-Mailer: Apple Mail (2.3864.600.51.1.1) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261003_030106_177505_196E6F67 X-CRM114-Status: GOOD ( 11.32 ) X-Spam-Score: -2.8 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The tls.h API accepts TLS_CONN_* flags both in tls_init (tls_config.tls_flags) and tls_global_set_params (tls_connection_params.flags), and also per connection in tls_connection_set_params (tls_connec [...] Content analysis details: (-2.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [17.132.100.1 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 DMARC_PASS DMARC pass policy 0.0 RCVD_IN_MSPIKE_H5 RBL: Excellent reputation (+5) [17.132.100.1 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The tls.h API accepts TLS_CONN_* flags both in tls_init (tls_config.tls_flags) and tls_global_set_params (tls_connection_params.flags), and also per connection in tls_connection_set_params (tls_connection_params.flags) and tls_connection_set_verify (flags). authsrv_init passes the BSS tls_flags to tls_init, but was passing flags == 0 in the subsequent tls_global_set_params call. Depending on how a particular backend implements flag handling in these 4 functions, this can have the effect of clobbering configuration that the tls_init call set up. For example, with the wolfSSL backend if the [SUITEB] tls_flag is set on the BSS but no explicit list of ciphers is configured, tls_init will configure the relevant Suite-B ciphers, but tls_global_set_params with flags = 0 will reset the cipher list back to default. The BSS tls_flags also make their way into tls_connection_set_verify, but wolfSSL doesn't happen to re-apply the ciphers based on the SUITEB flag at that point. The tls.h documentation does not document whether subsequent calls are intended to fully replace or only augment flags and other state, but given the variations between backends, passing (as much as possible) the same flags to all functions seems prudent. Note that on the OpenSSL backend this change has no impact, since tls_global_set_params ignores all flags other than DISABLE_SESSION_TICKET, which is later re-configured per connection in tls_connection_set_verify. Signed-off-by: Karsten Sperling --- src/ap/authsrv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ap/authsrv.c b/src/ap/authsrv.c index 3e8031810..26f54bc3e 100644 --- a/src/ap/authsrv.c +++ b/src/ap/authsrv.c @@ -437,6 +437,7 @@ int authsrv_init(struct hostapd_data *hapd) params.ocsp_stapling_response_multi = hapd->conf->ocsp_stapling_response_multi; params.check_cert_subject = hapd->conf->check_cert_subject; + params.flags = hapd->conf->tls_flags; if (tls_global_set_params(hapd->ssl_ctx, ¶ms)) { wpa_printf(MSG_ERROR, "Failed to set TLS parameters");