From: Denis Kenzior Date: Thu, 02 Aug 2018 15:53:00 +0000 Subject: Re: [RFCv2 RESEND 04/13] KEYS: asym_tpm: extract key size & public key Message-Id: <73EDF894-D51E-4FD1-883D-58AF444A92D5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit List-Id: References: <20180719183011.8574-5-denkenz@gmail.com> In-Reply-To: <20180719183011.8574-5-denkenz@gmail.com> To: keyrings@vger.kernel.org Hi David, > On Aug 2, 2018, at 10:45 AM, David Howells wrote: > > Denis Kenzior wrote: > > Note that I've pulled my keys-asym-keyctl branch up to linus/master and > repushed. All your patches apply without issue, but patch #4 is broken: > >> + tk->key_len = key_len; >> + tk->pub_key = pub_key; >> + tk->pub_key_len = sz; > > This does not compile. > > ../crypto/asymmetric_keys/asym_tpm.c: In function 'extract_key_parameters': > ../crypto/asymmetric_keys/asym_tpm.c:144:6: error: 'struct tpm_key' has no member named 'key_len'; did you mean 'blob_len'? > tk->key_len = key_len; > ^~~~~~~ > blob_len > ../crypto/asymmetric_keys/asym_tpm.c:145:4: error: 'struct tpm_key' has no member named 'pub_key' > tk->pub_key = pub_key; > ^~ > ../crypto/asymmetric_keys/asym_tpm.c:146:4: error: 'struct tpm_key' has no member named 'pub_key_len' > tk->pub_key_len = sz; Whoops, my fault, looks like those members were added in patch 5. Let me rebase this on top of your tree and fix this as well. Regards, -Denis