summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifs_spnego.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2007-11-16 22:23:17 +0000
committerSteve French <sfrench@us.ibm.com>2007-11-16 22:23:17 +0000
commitd6c2e4d02b72d8ae63784bdc57cfa285128de211 (patch)
tree4b5d3bcc06a72697413d588e3b87a2b18e619437 /fs/cifs/cifs_spnego.c
parentc359cf3c61c6ea9f4f461a8bd22023a15d75d9b5 (diff)
downloadlinux-stable-d6c2e4d02b72d8ae63784bdc57cfa285128de211.tar.gz
linux-stable-d6c2e4d02b72d8ae63784bdc57cfa285128de211.tar.bz2
linux-stable-d6c2e4d02b72d8ae63784bdc57cfa285128de211.zip
[CIFS] have cifs_get_spnego_key get the hostname from TCP_Server_Info
Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifs_spnego.c')
-rw-r--r--fs/cifs/cifs_spnego.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifs_spnego.c b/fs/cifs/cifs_spnego.c
index d79eee41e9c5..c466b56e0283 100644
--- a/fs/cifs/cifs_spnego.c
+++ b/fs/cifs/cifs_spnego.c
@@ -73,12 +73,13 @@ struct key_type cifs_spnego_key_type = {
#define MAX_IPV6_ADDR_LEN 42 /* eg FEDC:BA98:7654:3210:FEDC:BA98:7654:3210/60 */
/* get a key struct with a SPNEGO security blob, suitable for session setup */
struct key *
-cifs_get_spnego_key(struct cifsSesInfo *sesInfo, const char *hostname)
+cifs_get_spnego_key(struct cifsSesInfo *sesInfo)
{
struct TCP_Server_Info *server = sesInfo->server;
char *description, *dp;
size_t desc_len;
struct key *spnego_key;
+ const char *hostname = server->hostname;
/* BB: come up with better scheme for determining length */
/* length of fields (with semicolons): ver=0xyz ipv4= ipaddress host=