diff options
author | David Howells <dhowells@redhat.com> | 2008-04-29 04:01:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:16 -0400 |
commit | 4a38e122e2cc6294779021ff4ccc784a3997059e (patch) | |
tree | 84b401b44e0550b04f831d98a91eacfd7cffb51d /include | |
parent | dceba9944181b1fd5993417b5c8fa0e3dda38f8d (diff) |
keys: allow the callout data to be passed as a blob rather than a string
Allow the callout data to be passed as a blob rather than a string for
internal kernel services that call any request_key_*() interface other than
request_key(). request_key() itself still takes a NUL-terminated string.
The functions that change are:
request_key_with_auxdata()
request_key_async()
request_key_async_with_auxdata()
Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Paul Moore <paul.moore@hp.com>
Cc: Chris Wright <chrisw@sous-sol.org>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: James Morris <jmorris@namei.org>
Cc: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/key.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/key.h b/include/linux/key.h index a70b8a8f2005..163f864b6bd4 100644 --- a/include/linux/key.h +++ b/include/linux/key.h | |||
@@ -208,16 +208,19 @@ extern struct key *request_key(struct key_type *type, | |||
208 | 208 | ||
209 | extern struct key *request_key_with_auxdata(struct key_type *type, | 209 | extern struct key *request_key_with_auxdata(struct key_type *type, |
210 | const char *description, | 210 | const char *description, |
211 | const char *callout_info, | 211 | const void *callout_info, |
212 | size_t callout_len, | ||
212 | void *aux); | 213 | void *aux); |
213 | 214 | ||
214 | extern struct key *request_key_async(struct key_type *type, | 215 | extern struct key *request_key_async(struct key_type *type, |
215 | const char *description, | 216 | const char *description, |
216 | const char *callout_info); | 217 | const void *callout_info, |
218 | size_t callout_len); | ||
217 | 219 | ||
218 | extern struct key *request_key_async_with_auxdata(struct key_type *type, | 220 | extern struct key *request_key_async_with_auxdata(struct key_type *type, |
219 | const char *description, | 221 | const char *description, |
220 | const char *callout_info, | 222 | const void *callout_info, |
223 | size_t callout_len, | ||
221 | void *aux); | 224 | void *aux); |
222 | 225 | ||
223 | extern int wait_for_key_construction(struct key *key, bool intr); | 226 | extern int wait_for_key_construction(struct key *key, bool intr); |