Deleted Added
full compact
svc_auth_unix.c (241141) svc_auth_unix.c (241181)
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *

--- 18 unchanged lines hidden (view full) ---

27 * Mountain View, California 94043
28 */
29
30#if defined(LIBC_SCCS) && !defined(lint)
31static char *sccsid2 = "@(#)svc_auth_unix.c 1.28 88/02/08 Copyr 1984 Sun Micro";
32static char *sccsid = "@(#)svc_auth_unix.c 2.3 88/08/01 4.0 RPCSRC";
33#endif
34#include <sys/cdefs.h>
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *

--- 18 unchanged lines hidden (view full) ---

27 * Mountain View, California 94043
28 */
29
30#if defined(LIBC_SCCS) && !defined(lint)
31static char *sccsid2 = "@(#)svc_auth_unix.c 1.28 88/02/08 Copyr 1984 Sun Micro";
32static char *sccsid = "@(#)svc_auth_unix.c 2.3 88/08/01 4.0 RPCSRC";
33#endif
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/lib/libc/rpc/svc_auth_unix.c 241141 2012-10-02 19:00:56Z pfg $");
35__FBSDID("$FreeBSD: head/lib/libc/rpc/svc_auth_unix.c 241181 2012-10-04 04:15:18Z pfg $");
36
37/*
38 * svc_auth_unix.c
39 * Handles UNIX flavor authentication parameters on the service side of rpc.
40 * There are two svc auth implementations here: AUTH_UNIX and AUTH_SHORT.
41 * _svcauth_unix does full blown unix style uid,gid+gids auth,
42 * _svcauth_short uses a shorthand auth to index into a cache of longhand auths.
43 * Note: the shorthand has been gutted for efficiency.

--- 19 unchanged lines hidden (view full) ---

63{
64 enum auth_stat stat;
65 XDR xdrs;
66 struct authunix_parms *aup;
67 int32_t *buf;
68 struct area {
69 struct authunix_parms area_aup;
70 char area_machname[MAX_MACHINE_NAME+1];
36
37/*
38 * svc_auth_unix.c
39 * Handles UNIX flavor authentication parameters on the service side of rpc.
40 * There are two svc auth implementations here: AUTH_UNIX and AUTH_SHORT.
41 * _svcauth_unix does full blown unix style uid,gid+gids auth,
42 * _svcauth_short uses a shorthand auth to index into a cache of longhand auths.
43 * Note: the shorthand has been gutted for efficiency.

--- 19 unchanged lines hidden (view full) ---

63{
64 enum auth_stat stat;
65 XDR xdrs;
66 struct authunix_parms *aup;
67 int32_t *buf;
68 struct area {
69 struct authunix_parms area_aup;
70 char area_machname[MAX_MACHINE_NAME+1];
71 gid_t area_gids[NGRPS];
71 u_int area_gids[NGRPS];
72 } *area;
73 u_int auth_len;
74 size_t str_len, gid_len;
75 u_int i;
76
77 assert(rqst != NULL);
78 assert(msg != NULL);
79

--- 77 unchanged lines hidden ---
72 } *area;
73 u_int auth_len;
74 size_t str_len, gid_len;
75 u_int i;
76
77 assert(rqst != NULL);
78 assert(msg != NULL);
79

--- 77 unchanged lines hidden ---