diff options
author | David Howells <dhowells@redhat.com> | 2014-07-28 14:11:32 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-07-29 13:07:58 +0100 |
commit | 5ce43ad28262115a1eab866392f8cfb985094160 (patch) | |
tree | b89fbce6bb60fcd4dcb2102a11cf084fa6375552 /include | |
parent | 185de09c6aa9d38ec04e34b2d9a996561963f895 (diff) | |
download | linux-5ce43ad28262115a1eab866392f8cfb985094160.tar.gz linux-5ce43ad28262115a1eab866392f8cfb985094160.tar.bz2 linux-5ce43ad28262115a1eab866392f8cfb985094160.zip |
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')
-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; extern int verify_signature(const struct key *key, const struct public_key_signature *sig); +extern struct key *x509_request_asymmetric_key(struct key *keyring, + const char *issuer, + const char *key_id); + #endif /* _LINUX_PUBLIC_KEY_H */ |