summaryrefslogtreecommitdiff
path: root/src/auth_none.c
diff options
context:
space:
mode:
authorMatthew N. Dodd <matthew.nygard.dodd@gmail.com>2011-06-20 13:34:34 -0400
committerSteve Dickson <steved@redhat.com>2011-06-21 14:31:44 -0400
commit2abb87646f696726f4ee3a89db6ebfc8adbd9b9b (patch)
tree79cc735f03e1f724d68a8ef673ef4e9c76a60858 /src/auth_none.c
parent1e786fc401ff625fdcec3e0bdc495125feb0a070 (diff)
downloadti-rpc-2abb87646f696726f4ee3a89db6ebfc8adbd9b9b.tar.gz
AUTH_WRAP/AUTH_UNWRAP support.
Client code lacks support for authenticator wrapping/unwrapping, which is particularly useful when using GSS. Verified for both tcp & udp using a trivial RPC client against a MIT Krb5 server. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src/auth_none.c')
-rw-r--r--src/auth_none.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/auth_none.c b/src/auth_none.c
index a439ec6..008c589 100644
--- a/src/auth_none.c
+++ b/src/auth_none.c
@@ -155,6 +155,12 @@ authnone_destroy(AUTH *client)
{
}
+static bool_t
+authnone_wrap(AUTH *auth, XDR *xdrs, xdrproc_t xfunc, caddr_t xwhere)
+{
+ return ((*xfunc)(xdrs, xwhere));
+}
+
static struct auth_ops *
authnone_ops()
{
@@ -170,6 +176,8 @@ authnone_ops()
ops.ah_validate = authnone_validate;
ops.ah_refresh = authnone_refresh;
ops.ah_destroy = authnone_destroy;
+ ops.ah_wrap = authnone_wrap;
+ ops.ah_unwrap = authnone_wrap;
}
mutex_unlock(&ops_lock);
return (&ops);