diff options
author | David Howells <dhowells@redhat.com> | 2016-04-06 17:14:25 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-04-11 23:41:28 +0200 |
commit | 983023f28bff62b4462fd3575a86a8947ac592d8 (patch) | |
tree | 4bb0a779ff606b66d429d725108701b7cbf3f37d /include | |
parent | KEYS: Add a facility to restrict new links into a keyring (diff) | |
download | linux-983023f28bff62b4462fd3575a86a8947ac592d8.tar.xz linux-983023f28bff62b4462fd3575a86a8947ac592d8.zip |
KEYS: Move x509_request_asymmetric_key() to asymmetric_type.c
Move x509_request_asymmetric_key() to asymmetric_type.c so that it can be
generalised.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/public_key.h | 6 | ||||
-rw-r--r-- | include/keys/asymmetric-type.h | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h index b3928e801b8c..96ef27b8dd41 100644 --- a/include/crypto/public_key.h +++ b/include/crypto/public_key.h @@ -50,12 +50,6 @@ struct key; extern int verify_signature(const struct key *key, const struct public_key_signature *sig); -struct asymmetric_key_id; -extern struct key *x509_request_asymmetric_key(struct key *keyring, - const struct asymmetric_key_id *id, - const struct asymmetric_key_id *skid, - bool partial); - int public_key_verify_signature(const struct public_key *pkey, const struct public_key_signature *sig); diff --git a/include/keys/asymmetric-type.h b/include/keys/asymmetric-type.h index d1e23dda4363..735db697c4d2 100644 --- a/include/keys/asymmetric-type.h +++ b/include/keys/asymmetric-type.h @@ -76,6 +76,11 @@ const struct asymmetric_key_ids *asymmetric_key_ids(const struct key *key) return key->payload.data[asym_key_ids]; } +extern struct key *x509_request_asymmetric_key(struct key *keyring, + const struct asymmetric_key_id *id, + const struct asymmetric_key_id *skid, + bool partial); + /* * The payload is at the discretion of the subtype. */ |