From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eNRUMVEE32GDVQAAgWs5BA (envelope-from ) for ; Wed, 12 Jan 2022 17:39:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MF7VLVEE32GqdgEAauVa8A (envelope-from ) for ; Wed, 12 Jan 2022 17:39:45 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1B14FD024 for ; Wed, 12 Jan 2022 17:39:45 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id CBBB65F757; Wed, 12 Jan 2022 16:39:40 +0000 (UTC) Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by mail.notmuchmail.org (Postfix) with ESMTPS id 843915F744 for ; Wed, 12 Jan 2022 16:39:38 +0000 (UTC) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:105:465:1:3:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4JYtZK36DhzQklb for ; Wed, 12 Jan 2022 17:39:37 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stig.io; s=MBO0001; t=1642005575; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gTslTsMl8Yb7Q/eMSvEy1DrtQ7UoOAGDjeS2dAKjfpI=; b=YMaYUYYJDVRYIuk3Kgpciu0Bh52aCYuYm+5D5IVP//sJVx4q0ezL2Nxk+tOll9AOf2Y7J7 gFieWYR4cHcbY35fXB8ApR3pDbo2h9vsItchHJa7w9bPfgoKTr/oInifcs5f5XyKKz24Pv daoukhgFI/KFSlFoPXcuQZKGyyPqSsPs5J2eIkTRL/vSNKJzQDSCpkXO9ms01mPG7bpHkz ju+Yde1Xfkxe9rFYApPZ7lgWwECW5MUrmIKfkEvKwPlJiB9FozOpUEPZAbhYCFZQk2w6Pw XCSNQsqZcHpbquZdBpfLoeiQ8j3FzqPSD6uGdYsMpGn7isHBoRcwRdyXrYtMiA== Date: Wed, 12 Jan 2022 17:39:32 +0100 From: Stig Palmquist To: notmuch@notmuchmail.org Subject: Re: [PATCH] test/gpgsm: use --with-colons when calculating fingerprint. Message-ID: <20220112163932.pcmvkrlc3nijrwqx@stig.io> References: <87o84iza9r.fsf@starbuck.i-did-not-set--mail-host-address--so-tickle-me> <20220111235230.521033-1-david@tethera.net> <20220112163817.teztj5t4wwcqmbew@stig.io> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220112163817.teztj5t4wwcqmbew@stig.io> Message-ID-Hash: 7JV5M5VMQJ6SCHA5ME2J6VMXTPUOO5P3 X-Message-ID-Hash: 7JV5M5VMQJ6SCHA5ME2J6VMXTPUOO5P3 X-MailFrom: stig@stig.io X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642005585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=FVrChgqHAgu9AM8vKQ0hc3dvdxn4RoX2mwXEqjzL8pA=; b=V63FVb35yzOa05jf5AYa75alGA7gX5e36XEUgah86P7U0RIZb2XZid02Z8KTRdhvOlsbri FJWZFkemVfWwHRYi5VG6SL9zIhEGOmUOYHWr9/eLbroH/CGy5qT2k4KvnoKIWvY6QNgtbw pOcgUWeU+1BlQ8nooQC6ce6RfVP3w/c++Z7sGbrJGXBLeqLn81zM9mfO6Bp5lLuaBq8741 6TrcPB6tPE4IXV4yq/Iv1HzcS44FEFOZ6VZrzTrCP1lovIm9hNuYK4QYzLRU1zW90mxtUk QcImCutHnsq8HVmCLgIRdKEUvZmRSthiLXzJRxC/Lo/QmtSAUwMgbj4/n8ppjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642005585; a=rsa-sha256; cv=none; b=pD92yGW4ke5cjyPrW5yqjsoZ3eKlQxVA8QWa8+ZS34CP37/m9Fjq0/HiHwg+OtR0sALaAO 1NPr53UJA9+euYOgLpoB4B4+plalI/Hf7mhnWx/MxMerKCS0s1d473TUG/SI1Gqfu1+Fai oc8F3IeoNeE7QFT7aF2oezYbCek1qEwx/8Gnt6We4o7XLCxSw2NBI0hQVlKCfQayDyPIck 1VbEL54ZYGRz4spvigsoaSum3jwCMDnL98ewHhda8J7yxri+5JJbvLMq7+DMhGQODXafcs Gj0bO79w7ofGrMnjKsI4sqKXrVgBrjgSsCVdR+oRMfoBRBO+nS5kdKOshAiL2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=stig.io header.s=MBO0001 header.b=YMaYUYYJ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.54 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=stig.io header.s=MBO0001 header.b=YMaYUYYJ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 1B14FD024 X-Spam-Score: -1.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: NdSDY/aEspiC On 2022-01-12 17:38, Stig Palmquist wrote: > LGTM, tests work with GnuPG 2.3 > > Nice use of awk btw. > > Stig. > > On 2022-01-11 19:52, David Bremner wrote: > > As stressed by the gpg documentation, the non-'with-colons' output > > format is subject to change, and indeed it did in 2.3.x (x<=3). This > > should make the the test suite more robust against such changes. > > --- > > test/test-lib.sh | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/test/test-lib.sh b/test/test-lib.sh > > index 6bc0b723..f1275b85 100644 > > --- a/test/test-lib.sh > > +++ b/test/test-lib.sh > > @@ -145,7 +145,7 @@ add_gpgsm_home () { > > mkdir -p -m 0700 "$GNUPGHOME" > > gpgsm --batch --no-tty --no-common-certs-import --pinentry-mode=loopback --passphrase-fd 3 \ > > --disable-dirmngr --import >"$GNUPGHOME"/import.log 2>&1 3<<<'' <$NOTMUCH_SRCDIR/test/smime/0xE0972A47.p12 > > - fpr=$(gpgsm --batch --list-key test_suite@notmuchmail.org | sed -n 's/.*fingerprint: //p') > > + fpr=$(gpgsm --batch --with-colons --list-key test_suite@notmuchmail.org | awk -F: '/^fpr/ {print $10}') > > echo "$fpr S relax" >> "$GNUPGHOME/trustlist.txt" > > gpgsm --quiet --batch --no-tty --no-common-certs-import --disable-dirmngr --import < $NOTMUCH_SRCDIR/test/smime/ca.crt > > echo "4D:E0:FF:63:C0:E9:EC:01:29:11:C8:7A:EE:DA:3A:9A:7F:6E:C1:0D S" >> "$GNUPGHOME/trustlist.txt" > > -- > > 2.34.1 > > > -- Stig Palmquist