diff options
author | J. Bruce Fields <bfields@fieldses.org> | 2005-10-13 16:54:37 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-10-19 02:19:42 -0400 |
commit | 293f1eb551a77fe5c8956a559a3c0baea95cd9bc (patch) | |
tree | 03c770935eb42f6deccb275be0326d2f4b17c80c /net/sunrpc | |
parent | 1d95db8e1688ed54e143a597c5570631a42fa594 (diff) |
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.c | 22 |
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, | |||
276 | qstate); | 276 | qstate); |
277 | } | 277 | } |
278 | 278 | ||
279 | u32 | ||
280 | gss_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 | |||
290 | u32 | ||
291 | gss_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. */ |