aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth_gss/gss_mech_switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/auth_gss/gss_mech_switch.c')
-rw-r--r--net/sunrpc/auth_gss/gss_mech_switch.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/sunrpc/auth_gss/gss_mech_switch.c b/net/sunrpc/auth_gss/gss_mech_switch.c
index 58aeaddd8c7..06d97cb3481 100644
--- a/net/sunrpc/auth_gss/gss_mech_switch.c
+++ b/net/sunrpc/auth_gss/gss_mech_switch.c
@@ -276,6 +276,28 @@ gss_verify_mic(struct gss_ctx *context_handle,
276 qstate); 276 qstate);
277} 277}
278 278
279u32
280gss_wrap(struct gss_ctx *ctx_id,
281 u32 qop,
282 int offset,
283 struct xdr_buf *buf,
284 struct page **inpages)
285{
286 return ctx_id->mech_type->gm_ops
287 ->gss_wrap(ctx_id, qop, offset, buf, inpages);
288}
289
290u32
291gss_unwrap(struct gss_ctx *ctx_id,
292 u32 *qop,
293 int offset,
294 struct xdr_buf *buf)
295{
296 return ctx_id->mech_type->gm_ops
297 ->gss_unwrap(ctx_id, qop, offset, buf);
298}
299
300
279/* gss_delete_sec_context: free all resources associated with context_handle. 301/* gss_delete_sec_context: free all resources associated with context_handle.
280 * Note this differs from the RFC 2744-specified prototype in that we don't 302 * Note this differs from the RFC 2744-specified prototype in that we don't
281 * bother returning an output token, since it would never be used anyway. */ 303 * bother returning an output token, since it would never be used anyway. */