From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id A58156DE0F43 for ; Wed, 18 Mar 2020 12:57:21 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.388 X-Spam-Level: X-Spam-Status: No, score=0.388 tagged_above=-999 required=5 tests=[AWL=-0.264, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4_IU-JDHqEQA for ; Wed, 18 Mar 2020 12:57:20 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 022966DE09CD for ; Wed, 18 Mar 2020 12:57:19 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 6D8DA1000B0; Wed, 18 Mar 2020 21:57:15 +0200 (EET) From: Tomi Ollila To: Daniel Kahn Gillmor , Notmuch Mail Subject: Re: [PATCH] mime-node: Pass the correct flags to g_mime_multipart_signed_verify In-Reply-To: <20200318074748.366383-1-dkg@fifthhorseman.net> References: <20200318074748.366383-1-dkg@fifthhorseman.net> User-Agent: Notmuch/0.28.3+84~g41389bb (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 19:57:21 -0000 On Wed, Mar 18 2020, Daniel Kahn Gillmor wrote: > GMIME_ENCRYPT_NONE and GMIME_VERIFY_NONE have the same value, but they > are different enumerated types. So in C, this is a cosmetic change, > but it is technically correct if we only had stricter typing. Change consistent with '@@ node_verify', LGTM. Tomi > > Signed-off-by: Daniel Kahn Gillmor > --- > mime-node.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mime-node.c b/mime-node.c > index d4996a33..e531078c 100644 > --- a/mime-node.c > +++ b/mime-node.c > @@ -201,7 +201,7 @@ node_verify (mime_node_t *node, GMimeObject *part) > > node->verify_attempted = true; > node->sig_list = g_mime_multipart_signed_verify ( > - GMIME_MULTIPART_SIGNED (part), GMIME_ENCRYPT_NONE, &err); > + GMIME_MULTIPART_SIGNED (part), GMIME_VERIFY_NONE, &err); > > if (node->sig_list) > set_signature_list_destructor (node); > -- > 2.25.1