]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
gss:krb5 only include enctype numbers in gm_upcall_enctypes
authorKevin Coffman <kwc@citi.umich.edu>
Thu, 3 Mar 2011 00:51:41 +0000 (00:51 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 11 Mar 2011 20:39:27 +0000 (15:39 -0500)
Make the value in gm_upcall_enctypes just the enctype values.
This allows the values to be used more easily elsewhere.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/auth_gss/auth_gss.c
net/sunrpc/auth_gss/gss_krb5_mech.c

index 45dbf1521b9a8de0c18bb187bb8ef25f06fea134..f3914d0c5079596d04af62417ca909693675a64f 100644 (file)
@@ -417,7 +417,7 @@ static void gss_encode_v1_msg(struct gss_upcall_msg *gss_msg,
                gss_msg->msg.len += len;
        }
        if (mech->gm_upcall_enctypes) {
-               len = sprintf(p, mech->gm_upcall_enctypes);
+               len = sprintf(p, "enctypes=%s ", mech->gm_upcall_enctypes);
                p += len;
                gss_msg->msg.len += len;
        }
index f375decc024b4bbd176ee448fc72e26fc4cd020c..9022f0a6503e31dd6435da77fee3bda7694d4a53 100644 (file)
@@ -750,7 +750,7 @@ static struct gss_api_mech gss_kerberos_mech = {
        .gm_ops         = &gss_kerberos_ops,
        .gm_pf_num      = ARRAY_SIZE(gss_kerberos_pfs),
        .gm_pfs         = gss_kerberos_pfs,
-       .gm_upcall_enctypes = "enctypes=18,17,16,23,3,1,2 ",
+       .gm_upcall_enctypes = "18,17,16,23,3,1,2",
 };
 
 static int __init init_kerberos_module(void)