diff options
author | David Howells <dhowells@redhat.com> | 2019-06-19 11:10:16 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-06-26 15:58:13 -0400 |
commit | 3b8c4a08a471d56ecaaca939c972fdf5b8255629 (patch) | |
tree | 43ed0238e6fe5b09b6654310b6e71f051e55e1bc /security/keys | |
parent | 7743c48e54ee9be9c799cbf3b8e3e9f2b8d19e72 (diff) |
keys: Kill off request_key_async{,_with_auxdata}
Kill off request_key_async{,_with_auxdata}() as they're not currently used.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'security/keys')
-rw-r--r-- | security/keys/request_key.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/security/keys/request_key.c b/security/keys/request_key.c index f289982cb5db..36c55ef47b9e 100644 --- a/security/keys/request_key.c +++ b/security/keys/request_key.c | |||
@@ -739,56 +739,6 @@ struct key *request_key_with_auxdata(struct key_type *type, | |||
739 | } | 739 | } |
740 | EXPORT_SYMBOL(request_key_with_auxdata); | 740 | EXPORT_SYMBOL(request_key_with_auxdata); |
741 | 741 | ||
742 | /* | ||
743 | * request_key_async - Request a key (allow async construction) | ||
744 | * @type: Type of key. | ||
745 | * @description: The searchable description of the key. | ||
746 | * @callout_info: The data to pass to the instantiation upcall (or NULL). | ||
747 | * @callout_len: The length of callout_info. | ||
748 | * | ||
749 | * As for request_key_and_link() except that it does not add the returned key | ||
750 | * to a keyring if found, new keys are always allocated in the user's quota and | ||
751 | * no auxiliary data can be passed. | ||
752 | * | ||
753 | * The caller should call wait_for_key_construction() to wait for the | ||
754 | * completion of the returned key if it is still undergoing construction. | ||
755 | */ | ||
756 | struct key *request_key_async(struct key_type *type, | ||
757 | const char *description, | ||
758 | const void *callout_info, | ||
759 | size_t callout_len) | ||
760 | { | ||
761 | return request_key_and_link(type, description, callout_info, | ||
762 | callout_len, NULL, NULL, | ||
763 | KEY_ALLOC_IN_QUOTA); | ||
764 | } | ||
765 | EXPORT_SYMBOL(request_key_async); | ||
766 | |||
767 | /* | ||
768 | * request a key with auxiliary data for the upcaller (allow async construction) | ||
769 | * @type: Type of key. | ||
770 | * @description: The searchable description of the key. | ||
771 | * @callout_info: The data to pass to the instantiation upcall (or NULL). | ||
772 | * @callout_len: The length of callout_info. | ||
773 | * @aux: Auxiliary data for the upcall. | ||
774 | * | ||
775 | * As for request_key_and_link() except that it does not add the returned key | ||
776 | * to a keyring if found and new keys are always allocated in the user's quota. | ||
777 | * | ||
778 | * The caller should call wait_for_key_construction() to wait for the | ||
779 | * completion of the returned key if it is still undergoing construction. | ||
780 | */ | ||
781 | struct key *request_key_async_with_auxdata(struct key_type *type, | ||
782 | const char *description, | ||
783 | const void *callout_info, | ||
784 | size_t callout_len, | ||
785 | void *aux) | ||
786 | { | ||
787 | return request_key_and_link(type, description, callout_info, | ||
788 | callout_len, aux, NULL, KEY_ALLOC_IN_QUOTA); | ||
789 | } | ||
790 | EXPORT_SYMBOL(request_key_async_with_auxdata); | ||
791 | |||
792 | /** | 742 | /** |
793 | * request_key_rcu - Request key from RCU-read-locked context | 743 | * request_key_rcu - Request key from RCU-read-locked context |
794 | * @type: The type of key we want. | 744 | * @type: The type of key we want. |