diff options
Diffstat (limited to 'net/sunrpc/auth_gss/gss_mech_switch.c')
-rw-r--r-- | net/sunrpc/auth_gss/gss_mech_switch.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/sunrpc/auth_gss/gss_mech_switch.c b/net/sunrpc/auth_gss/gss_mech_switch.c index 26872517ccf..61801a069ff 100644 --- a/net/sunrpc/auth_gss/gss_mech_switch.c +++ b/net/sunrpc/auth_gss/gss_mech_switch.c | |||
@@ -194,6 +194,20 @@ gss_mech_get_by_pseudoflavor(u32 pseudoflavor) | |||
194 | EXPORT_SYMBOL(gss_mech_get_by_pseudoflavor); | 194 | EXPORT_SYMBOL(gss_mech_get_by_pseudoflavor); |
195 | 195 | ||
196 | u32 | 196 | u32 |
197 | gss_svc_to_pseudoflavor(struct gss_api_mech *gm, u32 service) | ||
198 | { | ||
199 | int i; | ||
200 | |||
201 | for (i = 0; i < gm->gm_pf_num; i++) { | ||
202 | if (gm->gm_pfs[i].service == service) { | ||
203 | return gm->gm_pfs[i].pseudoflavor; | ||
204 | } | ||
205 | } | ||
206 | return RPC_AUTH_MAXFLAVOR; /* illegal value */ | ||
207 | } | ||
208 | EXPORT_SYMBOL(gss_svc_to_pseudoflavor); | ||
209 | |||
210 | u32 | ||
197 | gss_pseudoflavor_to_service(struct gss_api_mech *gm, u32 pseudoflavor) | 211 | gss_pseudoflavor_to_service(struct gss_api_mech *gm, u32 pseudoflavor) |
198 | { | 212 | { |
199 | int i; | 213 | int i; |