diff options
author | David Howells <dhowells@redhat.com> | 2016-04-06 11:13:33 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-04-06 11:13:33 -0400 |
commit | a022ec02691cf68e1fe237d5f79d54aa95446cc6 (patch) | |
tree | 589406a35b30f6157bc04cc5a00f5c553057ba4e /crypto | |
parent | 3b764563177c1e435ef3e2608271c07955f73ea6 (diff) |
KEYS: Add identifier pointers to public_key_signature struct
Add key identifier pointers to public_key_signature struct so that they can
be used to retain the identifier of the key to be used to verify the
signature in both PKCS#7 and X.509.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/asymmetric_keys/signature.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/asymmetric_keys/signature.c b/crypto/asymmetric_keys/signature.c index 3beee3976ed5..11b7ba170904 100644 --- a/crypto/asymmetric_keys/signature.c +++ b/crypto/asymmetric_keys/signature.c | |||
@@ -24,7 +24,11 @@ | |||
24 | */ | 24 | */ |
25 | void public_key_signature_free(struct public_key_signature *sig) | 25 | void public_key_signature_free(struct public_key_signature *sig) |
26 | { | 26 | { |
27 | int i; | ||
28 | |||
27 | if (sig) { | 29 | if (sig) { |
30 | for (i = 0; i < ARRAY_SIZE(sig->auth_ids); i++) | ||
31 | kfree(sig->auth_ids[i]); | ||
28 | kfree(sig->s); | 32 | kfree(sig->s); |
29 | kfree(sig->digest); | 33 | kfree(sig->digest); |
30 | kfree(sig); | 34 | kfree(sig); |