summaryrefslogtreecommitdiff
path: root/src/svc.c
diff options
context:
space:
mode:
authorMatthew N. Dodd <matthew.nygard.dodd@gmail.com>2011-06-20 13:34:56 -0400
committerSteve Dickson <steved@redhat.com>2011-06-21 14:31:44 -0400
commit82cc2e6129c872c8be09381055f2fb5641c5e6fe (patch)
tree95cb10c6f9d83cddb5ccded527b0ad0605789149 /src/svc.c
parent2abb87646f696726f4ee3a89db6ebfc8adbd9b9b (diff)
downloadti-rpc-82cc2e6129c872c8be09381055f2fb5641c5e6fe.tar.gz
SVCAUTH_WRAP/SVCAUTH_UNWRAP
Server code lacks support for authenticator wrapping/unwrapping, which is particularly useful when using GSS. Verified for both tcp & udp using a trivial RPC server against an MIT Krb5 client. Signed-off-by: Frank Filz <ffilzlnx@us.ibm.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src/svc.c')
-rw-r--r--src/svc.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/svc.c b/src/svc.c
index b4a63d0..08cd6c9 100644
--- a/src/svc.c
+++ b/src/svc.c
@@ -77,9 +77,6 @@ static struct svc_callout
extern rwlock_t svc_lock;
extern rwlock_t svc_fd_lock;
-#ifdef HAVE_LIBGSSAPI
-extern struct svc_auth_ops svc_auth_gss_ops;
-#endif
static struct svc_callout *svc_find (rpcprog_t, rpcvers_t,
struct svc_callout **, char *);
@@ -717,11 +714,9 @@ svc_getreq_common (fd)
SVC_DESTROY (xprt);
break;
}
- else if ((xprt->xp_auth != NULL)
-#ifdef HAVE_LIBGSSAPI
- && (xprt->xp_auth->svc_ah_ops != &svc_auth_gss_ops)
-#endif
- ) {
+ else if ((xprt->xp_auth != NULL) &&
+ (xprt->xp_auth->svc_ah_private == NULL))
+ {
xprt->xp_auth = NULL;
}
}