summaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@fieldses.org>2005-10-13 16:54:37 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-10-18 23:19:42 -0700
commit293f1eb551a77fe5c8956a559a3c0baea95cd9bc (patch)
tree03c770935eb42f6deccb275be0326d2f4b17c80c /net/sunrpc
parent1d95db8e1688ed54e143a597c5570631a42fa594 (diff)
downloadlinux-stable-293f1eb551a77fe5c8956a559a3c0baea95cd9bc.tar.gz
linux-stable-293f1eb551a77fe5c8956a559a3c0baea95cd9bc.tar.bz2
linux-stable-293f1eb551a77fe5c8956a559a3c0baea95cd9bc.zip
SUNRPC: Add support for privacy to generic gss-api code.
Add support for privacy to generic gss-api code. This is dead code until we have both a mechanism that supports privacy and code in the client or server that uses it. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-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 58aeaddd8c79..06d97cb3481a 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,
qstate);
}
+u32
+gss_wrap(struct gss_ctx *ctx_id,
+ u32 qop,
+ int offset,
+ struct xdr_buf *buf,
+ struct page **inpages)
+{
+ return ctx_id->mech_type->gm_ops
+ ->gss_wrap(ctx_id, qop, offset, buf, inpages);
+}
+
+u32
+gss_unwrap(struct gss_ctx *ctx_id,
+ u32 *qop,
+ int offset,
+ struct xdr_buf *buf)
+{
+ return ctx_id->mech_type->gm_ops
+ ->gss_unwrap(ctx_id, qop, offset, buf);
+}
+
+
/* gss_delete_sec_context: free all resources associated with context_handle.
* Note this differs from the RFC 2744-specified prototype in that we don't
* bother returning an output token, since it would never be used anyway. */