From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kn3o2-0005vO-40 for mharc-grub-devel@gnu.org; Wed, 09 Dec 2020 13:03:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kn3nl-0005sg-I4 for grub-devel@gnu.org; Wed, 09 Dec 2020 13:03:08 -0500 Received: from dibed.net-space.pl ([84.10.22.86]:47388) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:192) (Exim 4.90_1) (envelope-from ) id 1kn3ni-0006HB-Tw for grub-devel@gnu.org; Wed, 09 Dec 2020 13:02:56 -0500 Received: from router-fw.i.net-space.pl ([192.168.52.1]:59352 "EHLO tomti.i.net-space.pl") by router-fw-old.i.net-space.pl with ESMTP id S2087666AbgLISCt (ORCPT ); Wed, 9 Dec 2020 19:02:49 +0100 X-Comment: RFC 2476 MSA function at dibed.net-space.pl logged sender identity as: dkiper Date: Wed, 9 Dec 2020 19:02:43 +0100 From: Daniel Kiper To: Glenn Washburn Cc: grub-devel@gnu.org, Patrick Steinhardt Subject: Re: [PATCH v8 06/18] luks2: Add idx member to struct grub_luks2_keyslot/segment/digest Message-ID: <20201209180243.6bgtyz7sjh6smzdn@tomti.i.net-space.pl> References: <56d4c397a1752b66376a3faf5e10776cb66894e8.1607466704.git.development@efficientek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56d4c397a1752b66376a3faf5e10776cb66894e8.1607466704.git.development@efficientek.com> User-Agent: NeoMutt/20170113 (1.7.2) Received-SPF: pass client-ip=84.10.22.86; envelope-from=dkiper@net-space.pl; helo=dibed.net-space.pl X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2020 18:03:12 -0000 On Tue, Dec 08, 2020 at 04:45:37PM -0600, Glenn Washburn wrote: > This allows code using these structs to know the named key associated with > these json data structures. In the future we can use these to provide better > error messages to the user. > > Get rid of idx local variable in luks2_get_keyslot() which was overloaded to > be used for both keyslot and segment slot keys. > > Signed-off-by: Glenn Washburn Reviewed-by: Daniel Kiper Daniel