diff options
author | David Howells <dhowells@redhat.com> | 2014-07-28 09:11:32 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-07-29 08:07:58 -0400 |
commit | 5ce43ad28262115a1eab866392f8cfb985094160 (patch) | |
tree | b89fbce6bb60fcd4dcb2102a11cf084fa6375552 /include/crypto | |
parent | 185de09c6aa9d38ec04e34b2d9a996561963f895 (diff) |
PKCS#7: Use x509_request_asymmetric_key()
pkcs7_request_asymmetric_key() and x509_request_asymmetric_key() do the same
thing, the latter being a copy of the former created by the IMA folks, so drop
the PKCS#7 version as the X.509 location is more general.
Whilst we're at it, rename the arguments of x509_request_asymmetric_key() to
better reflect what the values being passed in are intended to match on an
X.509 cert.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/public_key.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h index fc09732613ad..0d164c6af539 100644 --- a/include/crypto/public_key.h +++ b/include/crypto/public_key.h | |||
@@ -98,4 +98,8 @@ struct key; | |||
98 | extern int verify_signature(const struct key *key, | 98 | extern int verify_signature(const struct key *key, |
99 | const struct public_key_signature *sig); | 99 | const struct public_key_signature *sig); |
100 | 100 | ||
101 | extern struct key *x509_request_asymmetric_key(struct key *keyring, | ||
102 | const char *issuer, | ||
103 | const char *key_id); | ||
104 | |||
101 | #endif /* _LINUX_PUBLIC_KEY_H */ | 105 | #endif /* _LINUX_PUBLIC_KEY_H */ |