From patchwork Wed Nov 20 12:40:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rudi Heitbaum X-Patchwork-Id: 13881114 Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) (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 60D9A19F128 for ; Wed, 20 Nov 2024 12:40:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732106429; cv=none; b=KsH6TMfPy4O+MUL1mHAakfE0ftKY4chOinFW/x3lQ+gIwU4GG0Uvxu1Pp+mSNnkX2jwyoTAb1AUKMNtPZQQqf3qGZYbGb3A5KBZ2lo3Pfhv7ocRmcd66s3OmutuF0PPo2l3BBfL02BpBPEqHv1V/VTjb3oCxwijKQvr4eTjU3rU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732106429; c=relaxed/simple; bh=tL7h8l2Lv5ZdQCNoMY6DIsAevcwiD0JdDEqumDxjOHw=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=k83XtUjvPUIoNPb34T1n76djPu0CCCRyvFZwrAylrsawuH+Wfn9GrXKFQwq6CXCMnyzUz3mo8nBFS3Os2QOD78Wb5QYJr+fDn/bktQGx37TzykyDAkTzPiLqvrpe/ujr6hYssPaZV4JHEL24TWsO7c2i/F3dS3dGDKEslCv2Fxo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=heitbaum.com; spf=pass smtp.mailfrom=heitbaum.com; dkim=pass (1024-bit key) header.d=heitbaum.com header.i=@heitbaum.com header.b=QEoJMBNt; arc=none smtp.client-ip=209.85.167.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=heitbaum.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=heitbaum.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=heitbaum.com header.i=@heitbaum.com header.b="QEoJMBNt" Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-3e786167712so3403052b6e.3 for ; Wed, 20 Nov 2024 04:40:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heitbaum.com; s=google; t=1732106422; x=1732711222; darn=lists.linux.dev; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=IyMA9KpKlHYpl7q8gHwd9/DuBWUVfizTcd9lbShtRLc=; b=QEoJMBNt91F6A4JDKGn60GfbRUYWNaDyFkXVhuYu/o9DniOHCA4owt3pV7/s/UfwBI 2tzTEKvmQEyDvVTcZ7VTCaPr6X02nBlaqSvTNodKe4hcY6git9Wq+uifTBFK75tc2ESP nDauq0vRTyf91NrHtBbeTn2Oz7C4WNvckS9d0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732106422; x=1732711222; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IyMA9KpKlHYpl7q8gHwd9/DuBWUVfizTcd9lbShtRLc=; b=LIbaAa8X/0XdvpuKXj5zJMeVq2DkddD6HZI+Wdx4c8nmZZz8TB3JVXZhVV0GZvNCxW EgsAH9z7CSChuFSw+ygTi1T3wRUdMk+XpjGp/UhVGvfJQIAgapTH84i/DBjcj/RM6D23 D4UR4DotBaTq+N5KQPxukp+wZaqpqaBkEAQqG4KgUdiLMybRefywHh3ndfgMqKWxD3qC apTg09jWtKrUIzEDs7rBh0zfCwPI3YGCkTt1/Tw4F95UPsSl46NnYd7kAbpqaYserU/v GB2rwBeMogJv5AcyZBm4Xj0FPuZJOq6PsT2+uTfTEWfELURkz2eq9/yITfxw9U8y/TVv Bekg== X-Gm-Message-State: AOJu0YzyMhDVJhAx0d43eY0ureHKSSIGYHxIOXNydeDqn05lhlqgrPYf 2RmgQ5msu853K9VHm2O1ItZh+fzxezLHOGghihHFk6eVm/TpMB7ATMmh3/mjK0m5QXA8sbopucT f X-Google-Smtp-Source: AGHT+IFiMccLBRr1D2kqjuxvc2R0LNQwrAyVgro/SR/h7fv+TWOqX6f9tcxcRtpE6/bxvN/CHh+nQQ== X-Received: by 2002:a05:6808:1513:b0:3e7:b800:fa0 with SMTP id 5614622812f47-3e7eb7a605cmr2252005b6e.10.1732106421979; Wed, 20 Nov 2024 04:40:21 -0800 (PST) Received: from c8d99ad60702 ([122.199.11.121]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7f8c1dac9a8sm9382981a12.55.2024.11.20.04.40.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2024 04:40:21 -0800 (PST) Date: Wed, 20 Nov 2024 12:40:17 +0000 From: Rudi Heitbaum To: iwd@lists.linux.dev Cc: rudi@heitbaum.com Subject: [PATCH 1/2] crypto: fix -std=c23 build failure Message-ID: Precedence: bulk X-Mailing-List: iwd@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline gcc-15 switched to -std=c23 by default: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212 As a result `iwd` fails the build as: ../src/crypto.c:1215:24: error: incompatible types when returning type '_Bool' but 'struct l_ecc_point *' was expected 1215 | return false; | ^~~~~ Signed-off-by: Rudi Heitbaum --- src/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto.c b/src/crypto.c index 35941a2e..9dcdb43b 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -1212,7 +1212,7 @@ struct l_ecc_point *crypto_derive_sae_pwe_from_pt_ecc(const uint8_t *mac1, struct l_ecc_point *pwe; if (!pt || !curve) - return false; + return NULL; hash = crypto_sae_hash_from_ecc_prime_len(CRYPTO_SAE_HASH_TO_ELEMENT, l_ecc_curve_get_scalar_bytes(curve)); From patchwork Wed Nov 20 12:41:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rudi Heitbaum X-Patchwork-Id: 13881115 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 07F7919EED7 for ; Wed, 20 Nov 2024 12:41:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732106471; cv=none; b=W0emDf5ADa6UWSkkC6grwVES/ozUae2t9o6qQiFLIo+cvQYcVO6b1jyXWisbGZ1hdpx83L2z+BNbe5VJbR6QPbaW4Tonfpb/3R1ym63fjhdkz9UQLY9FoG1AQ9Q7VCnH9Jx9bxvn2DoCdEytgG78qI2y8K6aAIEm22oKVKVx7jE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732106471; c=relaxed/simple; bh=YnwtdCGRMF7x+SNw+RtndWficPrQZ0LYRjj64IJNzvQ=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=OyfOr4Qc9XOjv9I46GSqkO/V2xwuZ6m58FyU5fD+2ENPV6CAYWXyz8n4KG4UG1fSbPtPkdRE1ckyw+lLtaA5cdu3RxV4hoNJCrE5s9MuRelc9235pTO85JKOsQ5y3fDb/1lVH8FaDvuuW+RYiFJAXDaR+hp0bMP9KwSUqWb41KQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=heitbaum.com; spf=pass smtp.mailfrom=heitbaum.com; dkim=pass (1024-bit key) header.d=heitbaum.com header.i=@heitbaum.com header.b=newwGJtl; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=heitbaum.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=heitbaum.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=heitbaum.com header.i=@heitbaum.com header.b="newwGJtl" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-20cdda5cfb6so49716265ad.3 for ; Wed, 20 Nov 2024 04:41:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heitbaum.com; s=google; t=1732106468; x=1732711268; darn=lists.linux.dev; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=x8ih+IafpKjggtIc5IF4N7jWsB7ermU4oeyGhK/Y95c=; b=newwGJtl9OecSb9RZaUJ7YXBFybDNcMiwQmKrYayl1+5NbFLS6o5cKxGnAMFoLWPxR N+O0niLm3OCEx0jZfKuWrsub64E9/n41mWLl5Vpu4U/z01Umz34QBkU2/Qq+nreeaoPh N/JmP4bdBudGhee6GyDxyxxDOk+Q9f5LPfGNE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732106468; x=1732711268; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=x8ih+IafpKjggtIc5IF4N7jWsB7ermU4oeyGhK/Y95c=; b=DYqfqtpz0vKJpQtlEfS3/1a23EdDxTvPHf/9QV4QdBJ64ZwNd6oKA2tz7Y2uQQy1AO 3lDIbQfGcGBaHYeH3wvKhU1iMmaLErQRbz6viFHMqtZBhM8RjeUt+BxbUKewf2olNPjh gKuh+HtQojM4zfKgElKIog9PQ1L6oH2ZLvD03c0GLmycc8a79a/anEnzuK5MrtpNbada bCiPk1FmhLSOpqZ2QlBfPY3r5o2ubnoQQ2CTTFwEvNGWTs8xtWmQVMdeMECVVWTveYs8 L6hVcIKfYQkSLmIRhZ83e8hv2yaxDNvpe3K4brHnWZNPmiKnYTbHS7DadDJd9RID3Zbw GnHQ== X-Gm-Message-State: AOJu0Yw3uRS/FXtGGrckloO94ufXT6L/Ann4VUr/jTF9EBwTu8G0GNlL PmfYxoQfqEa+Q5r9hdyFFL+UvIeb2ycoU2R17Sh84nB7Gl2P5MypH5rwAIRVspHy30vZ0G2apjr g X-Google-Smtp-Source: AGHT+IGDur9M+bkYoE73kEKNO44kkWFXLPg+12eRdZ1nqsHekIG1PBAGnKB+Pxa+pCmlGAKsLE76hw== X-Received: by 2002:a17:902:c94a:b0:20c:5404:ed69 with SMTP id d9443c01a7336-2126aeb10c8mr27865725ad.31.1732106468539; Wed, 20 Nov 2024 04:41:08 -0800 (PST) Received: from c8d99ad60702 ([122.199.11.121]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2121859c307sm57891665ad.238.2024.11.20.04.41.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2024 04:41:08 -0800 (PST) Date: Wed, 20 Nov 2024 12:41:04 +0000 From: Rudi Heitbaum To: iwd@lists.linux.dev Cc: rudi@heitbaum.com Subject: [PATCH 2/2] anqputil: fix -std=c23 build failure Message-ID: Precedence: bulk X-Mailing-List: iwd@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline gcc-15 switched to -std=c23 by default: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212 As a result `iwd` fails the build as: ../src/anqputil.c:134:24: error: incompatible types when returning type '_Bool' but 'char **' was expected 134 | return false; | ^~~~~ Signed-off-by: Rudi Heitbaum --- src/anqputil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anqputil.c b/src/anqputil.c index c0e0307e..724ff22d 100644 --- a/src/anqputil.c +++ b/src/anqputil.c @@ -131,7 +131,7 @@ char **anqp_parse_nai_realms(const unsigned char *anqp, unsigned int len) uint16_t count; if (len < 2) - return false; + return NULL; count = l_get_le16(anqp);