diff options
author | Jeff Layton <jlayton@redhat.com> | 2007-11-03 00:48:29 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-11-03 00:48:29 -0400 |
commit | 09fe7ba78dedb9017401ed555ecc4435c99a7556 (patch) | |
tree | 145fc0688723fb5083da5c3f25efd40cd1c1e559 /fs/cifs/cifsproto.h | |
parent | 745542e210b3b15751ea9d511321924ac36b85db (diff) |
[CIFS] implement upcalls for SPNEGO blob via keyctl API
Add routines to handle upcalls to userspace via keyctl for the purpose
of getting a SPNEGO blob for a particular uid and server combination.
Clean up the Makefile a bit and set it up to only compile cifs_spnego
if CONFIG_CIFS_UPCALL is set. Also change CONFIG_CIFS_UPCALL to depend
on CONFIG_KEYS rather than CONFIG_CONNECTOR.
cifs_spnego.h defines the communications between kernel and userspace
and is intended to be shared with userspace programs.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 1ffe25592b25..dd1d7c200ee6 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h | |||
@@ -76,6 +76,8 @@ extern void header_assemble(struct smb_hdr *, char /* command */ , | |||
76 | extern int small_smb_init_no_tc(const int smb_cmd, const int wct, | 76 | extern int small_smb_init_no_tc(const int smb_cmd, const int wct, |
77 | struct cifsSesInfo *ses, | 77 | struct cifsSesInfo *ses, |
78 | void **request_buf); | 78 | void **request_buf); |
79 | extern struct key *cifs_get_spnego_key(struct cifsSesInfo *sesInfo, | ||
80 | const char *hostname); | ||
79 | extern int CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, | 81 | extern int CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, |
80 | const int stage, | 82 | const int stage, |
81 | const struct nls_table *nls_cp); | 83 | const struct nls_table *nls_cp); |