From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IG+QMEjUYWKErgAAbAwnHQ (envelope-from ) for ; Fri, 22 Apr 2022 00:01:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id APaxL0jUYWKQswAAG6o9tA (envelope-from ) for ; Fri, 22 Apr 2022 00:01:44 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 674CA19C10 for ; Fri, 22 Apr 2022 00:01:44 +0200 (CEST) Received: from localhost ([::1]:43466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nheru-0000QW-It for larch@yhetil.org; Thu, 21 Apr 2022 18:01:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nheqI-0006AR-U4 for guix-patches@gnu.org; Thu, 21 Apr 2022 18:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nheqI-0001U8-Kl for guix-patches@gnu.org; Thu, 21 Apr 2022 18:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nheqI-0007F3-Jd for guix-patches@gnu.org; Thu, 21 Apr 2022 18:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55055] Fwd: [bug#55055] [PATCH] gnu: wireguard: Add support for PresharedKey Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Apr 2022 22:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55055 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Paul Alesius , 55055@debbugs.gnu.org Received: via spool by 55055-submit@debbugs.gnu.org id=B55055.165057838427777 (code B ref 55055); Thu, 21 Apr 2022 22:00:02 +0000 Received: (at 55055) by debbugs.gnu.org; 21 Apr 2022 21:59:44 +0000 Received: from localhost ([127.0.0.1]:51039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nheq0-0007Dw-1e for submit@debbugs.gnu.org; Thu, 21 Apr 2022 17:59:44 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:47314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhepy-0007Dm-HE for 55055@debbugs.gnu.org; Thu, 21 Apr 2022 17:59:43 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by andre.telenet-ops.be with bizsmtp id MZzg2700W4UW6Th01ZzhNr; Thu, 21 Apr 2022 23:59:41 +0200 Message-ID: From: Maxime Devos Date: Thu, 21 Apr 2022 23:59:40 +0200 In-Reply-To: References: <274c06a235949ebbdd3f90e31afea1189f207ea0.camel@telenet.be> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-FWmrMjU9LGy+S9+VXoh/" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1650578381; bh=GtKRzeS/RnJftxKZ+CojIknucMliLUsaksn3ld3ggBA=; h=Subject:From:To:Date:In-Reply-To:References; b=A5TuDjpiLPYAmyqNEVrhrLTu8Sz1onp1QhY1CS6UiFIHdO0MdVXTdPXUT3tFjHFIe nxg+s7BHRfJE0kX4A2eszrtiqNUcKk82q1JRIaAonmd6GqBweTARV/oPbtNZyC2syK Ws5j0wyCmhAPVXS87lZB76M/zXF48+HCZ3/MEHgeybqx9LIl9sGnFCOfuCN0bKnu4j Out6RD09y99cjxwWUxQ8sYbm4X1CYG8nU/n5dANy35Mh3pzQr4Dya+SLJkuXnBzmzd 1mlbcwuGzBZ1LoS1HPNludPOyCK4IYlNak8urDr9e70VV8A3R2+1zAWufdPMaiiwbp 32almkeG5oRsA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650578504; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=GtKRzeS/RnJftxKZ+CojIknucMliLUsaksn3ld3ggBA=; b=LU34yB+2pqr4frBUkx9TxuY+xLhhXMvVxSuS6eM9HYFQUDzEoTRtHIRrEWQDm90IsydZgH 5eMb7KkvkXBF3CkLGOMyXMTu6+WFmK2Z+mEPeWGDJv635KPDq2PQCSSdOd5q4x5QxqvkyP 1oWuRoAsxIbF7aM61rygeBIXIKqol3EAoXdCkPNoE5t1f53RDrSaOygqAWfWWavJK01AjH vhO95c6MiwYWxgMoWWQxDPN0+b6l2JyW06gzq0iX+LoHIv0fjMbUqMtoNk1LN5Ff+qAvPG 3JnOFg3RLxKdabnAxeWKchBjct9tKS06xaslDt0JNZSwKxRy5Egkk6bcl86WXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650578504; a=rsa-sha256; cv=none; b=JX0+ObgLCmyl2WeHNOfNo95KopuIGzfAHV3fpnqzkTn4gvFSyylokLjCE5aPoKErqK1JiT SV8hgOSHGC0v8qORBSRW++Cnjp78mbNqihvHPBWOd/lDYc1QNYaWg8SXA+LN3l4e5bIDUG Z4v0LT0cwU0KDP4JlUCowpyiEtpiHHyCeyQuFpdHERwafgGjf1tabG5ANc039JymQ/Ga45 Lx5QhgdaU1dqP21HtJzaDnbre0sxZMb3pLY1GlxNf9ymoojZagqGoTieLEUZz4dnH+pt8Y cDk5kE1CGYC6ZHFH5LxkTC2GL8jSJ+WjryNkFY61CQu1zYDMgkj9SHO658PvTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=A5TuDjpi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=A5TuDjpi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 674CA19C10 X-Spam-Score: 3.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: RXKSpD+im337 --=-FWmrMjU9LGy+S9+VXoh/ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Paul Alesius schreef op do 21-04-2022 om 22:41 [+0200]: > > Also, #f is not a string, did you mean =E2=80=98;#f|string=E2=80=99? >=20 > The idea behind #f is that the field is optional, so that if it isn't > specified in the configuration then it isn't written to the > configuration file at all, hence #f is for a conditional when writing > the actual configuration file and has no default value. It's optional in the generated wireguard configuration file, but not in the Guix record -- Guile records don't have a concept of optional fields, though there are fields with default values. Though apparently conventions are a bit inconsistent in Guix on this matter. wireguard-configuration just does ;string, but does (define-record-type* [...] (tty agetty-configuration-tty) ;string | #f (term agetty-term ;string | #f (default #f)) (baud-rate agetty-baud-rate ;string | #f (default #f)) (auto-login agetty-auto-login ;list of strings | #f (default #f)) [...] Greetings, Maxime. --=-FWmrMjU9LGy+S9+VXoh/ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYmHTzBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ovcAQCKWz6k+g6IInGc7thPs7htzmmQ fa11aLhA8BcBtIExqQD+Nhv5M1evawxRlpWpjbQWoEtqF1rL76jejOHQ7kgq5Ac= =0e9t -----END PGP SIGNATURE----- --=-FWmrMjU9LGy+S9+VXoh/--