aboutsummaryrefslogtreecommitdiff
path: root/src/lib/rpc/svc_auth.h
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2001-07-05 16:15:42 +0000
committerEzra Peisach <epeisach@mit.edu>2001-07-05 16:15:42 +0000
commitb3ccd7786f77efef5e10f7b331ee22f940940171 (patch)
tree8f50528afe8bfe8422c606be2196564bf09d4750 /src/lib/rpc/svc_auth.h
parentf47e5a386754320eb19fdfdcb17f86c3bd8f1d8a (diff)
downloadkrb5-b3ccd7786f77efef5e10f7b331ee22f940940171.zip
krb5-b3ccd7786f77efef5e10f7b331ee22f940940171.tar.gz
krb5-b3ccd7786f77efef5e10f7b331ee22f940940171.tar.bz2
* configure.in: Add AC_TYPE_GETGROUPS to determine argument to
getgroups. * auth_unix.c (authunix_create_default): Use GETGROUPS_T array in call to getgroups. Copy into array of int for call to authunix_create. Note: If auth_unix protection ever used with this code, we will need to cleanup assumptions in int being 32 bits in OTW transfer of gids. * clnt_tcp.c, svc_tcp.c: Change writetcp and readtcp to take char * as first argument to be compatible with xdrrec_create. * xdr.c (xdr_opaque): Cast argument in call to XDR_GETBYTES. * svc.h: Add prototype for gssrpc_svcudp_enablecache. * svc_auth_gssapi.c (_gssrpc_svcauth_gssapi): Change _svcauth_gssapi to _gssrpc_svcauth_gssapi for consistancy. * svc_auth.c: Move prototypes for _gssrpc_svcauth_{unix, null, short, gssapi} to: * svc_auth.h: here. * svc_auth_unix.c: Update _gssrpc_svcauth_short and _gssrpc_svcauth_unix to match prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13563 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/rpc/svc_auth.h')
-rw-r--r--src/lib/rpc/svc_auth.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/rpc/svc_auth.h b/src/lib/rpc/svc_auth.h
index 8147325..174c945 100644
--- a/src/lib/rpc/svc_auth.h
+++ b/src/lib/rpc/svc_auth.h
@@ -66,3 +66,16 @@ extern enum auth_stat _authenticate(struct svc_req *rqst, struct rpc_msg *msg,
((*((auth)->svc_ah_ops->svc_ah_unwrap))(auth, xdrs, xfunc, xwhere))
+#define _svcauth_null _gssrpc_svcauth_null
+#define _svcauth_unix _gssrpc_svcauth_unix
+#define _svcauth_short _gssrpc_svcauth_short
+#define _svcauth_gssapi _gssrpc_svcauth_gssapi
+/* no authentication */
+enum auth_stat _svcauth_null(struct svc_req *, struct rpc_msg *, bool_t *);
+/* unix style (uid, gids) */
+enum auth_stat _svcauth_unix(struct svc_req *, struct rpc_msg *, bool_t *);
+/* short hand unix style */
+enum auth_stat _svcauth_short(struct svc_req *, struct rpc_msg *, bool_t *);
+/* GSS-API style */
+enum auth_stat _svcauth_gssapi(struct svc_req *, struct rpc_msg *, bool_t *);
+