Skip to content

Commit

Permalink
gss:krb5 only include enctype numbers in gm_upcall_enctypes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
Kevin Coffman authored and Trond Myklebust committed Mar 11, 2011
1 parent 5c635e0 commit f862822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/sunrpc/auth_gss/auth_gss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion net/sunrpc/auth_gss/gss_krb5_mech.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f862822

Please sign in to comment.