]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/cifs/cifs_spnego.c
[CIFS] have cifs_get_spnego_key get the hostname from TCP_Server_Info
[linux-2.6-omap-h63xx.git] / fs / cifs / cifs_spnego.c
index d79eee41e9c5924a10196297409ab14bfcfc1d84..c466b56e0283c7165bef5cb346a79094a363c58d 100644 (file)
@@ -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=