#include <wintirpc.h>
#include <reentrant.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/auth.h>
#include <rpc/auth_unix.h>
Go to the source code of this file.
|
static void | authunix_nextverf (AUTH *) |
|
static bool_t | authunix_marshal (AUTH *, XDR *, u_int *seq) |
|
static bool_t | authunix_validate (AUTH *, struct opaque_auth *, u_int) |
|
static bool_t | authunix_refresh (AUTH *, void *) |
|
static void | authunix_destroy (AUTH *) |
|
static void | marshal_new_auth (AUTH *) |
|
static struct auth_ops * | authunix_ops (void) |
|
AUTH * | authunix_create (char *machname, uid_t uid, gid_t gid, int len, gid_t *aup_gids) |
|
AUTH * | authunix_create_default () |
|
static bool_t | authunix_wrap (AUTH *auth, XDR *xdrs, xdrproc_t func, caddr_t args, u_int seq) |
|
◆ AUTH_PRIVATE
◆ authunix_create()
Definition at line 107 of file auth_unix.c.
129 goto cleanup_authunix_create;
136 goto cleanup_authunix_create;
149 aup.aup_time =
now.tv_sec;
150 aup.aup_machname = machname;
154 aup.aup_gids = aup_gids;
169 goto cleanup_authunix_create;
181 cleanup_authunix_create:
#define memmove(s1, s2, n)
bool_t xdr_authunix_parms(XDR *xdrs, struct authunix_parms *p)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
struct opaque_auth au_origcred
static void marshal_new_auth(AUTH *)
#define gettimeofday(tv, tz)
struct opaque_auth _null_auth
static struct auth_ops * authunix_ops(void)
struct opaque_auth ah_verf
struct __auth::auth_ops * ah_ops
void xdrmem_create(XDR *xdrs, char *addr, u_int size, enum xdr_op op)
struct opaque_auth ah_cred
#define mem_free(ptr, bsize)
struct opaque_auth au_shcred
Referenced by authunix_create_default().
◆ authunix_create_default()
Definition at line 198 of file auth_unix.c.
208 machname[
sizeof(machname) - 1] = 0;
212 if ((
len = getgroups(
NGRPS, gids)) < 0)
AUTH * authunix_create(char *machname, uid_t uid, gid_t gid, int len, gid_t *aup_gids)
INT WSAAPI gethostname(OUT char FAR *name, IN INT namelen)
Referenced by rpc_broadcast_exp().
◆ authunix_destroy()
static void authunix_destroy |
( |
AUTH * |
auth | ) |
|
|
static |
Definition at line 332 of file auth_unix.c.
struct opaque_auth au_origcred
struct opaque_auth ah_verf
#define mem_free(ptr, bsize)
struct opaque_auth au_shcred
#define AUTH_PRIVATE(auth)
Referenced by authunix_ops().
◆ authunix_marshal()
Definition at line 238 of file auth_unix.c.
#define XDR_PUTBYTES(xdrs, addr, len)
char au_marshed[MAX_AUTH_BYTES]
#define AUTH_PRIVATE(auth)
Referenced by authunix_ops().
◆ authunix_nextverf()
static void authunix_nextverf |
( |
AUTH * |
auth | ) |
|
|
static |
◆ authunix_ops()
Definition at line 396 of file auth_unix.c.
398 static struct auth_ops ops;
404 if (ops.ah_nextverf ==
NULL) {
414 ops.ah_unwrap = authunix_unwrap;
static void authunix_nextverf(AUTH *)
static bool_t authunix_validate(AUTH *, struct opaque_auth *, u_int)
static bool_t authunix_marshal(AUTH *, XDR *, u_int *seq)
static bool_t authunix_wrap(AUTH *auth, XDR *xdrs, xdrproc_t func, caddr_t args, u_int seq)
static bool_t authunix_refresh(AUTH *, void *)
static void authunix_destroy(AUTH *)
Referenced by authunix_create().
◆ authunix_refresh()
Definition at line 288 of file auth_unix.c.
305 aup.aup_machname =
NULL;
315 aup.aup_time =
now.tv_sec;
bool_t xdr_authunix_parms(XDR *xdrs, struct authunix_parms *p)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
struct opaque_auth au_origcred
static void marshal_new_auth(AUTH *)
#define gettimeofday(tv, tz)
#define XDR_SETPOS(xdrs, pos)
_CRTIMP int __cdecl stat(const char *_Filename, struct stat *_Stat)
void xdrmem_create(XDR *xdrs, char *addr, u_int size, enum xdr_op op)
struct opaque_auth ah_cred
#define XDR_DESTROY(xdrs)
#define AUTH_PRIVATE(auth)
Referenced by authunix_ops().
◆ authunix_validate()
Definition at line 253 of file auth_unix.c.
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
struct opaque_auth au_origcred
static void marshal_new_auth(AUTH *)
void xdrmem_create(XDR *xdrs, char *addr, u_int size, enum xdr_op op)
struct opaque_auth ah_cred
#define mem_free(ptr, bsize)
struct opaque_auth au_shcred
#define AUTH_PRIVATE(auth)
Referenced by authunix_ops().
◆ authunix_wrap()
◆ marshal_new_auth()
static void marshal_new_auth |
( |
AUTH * |
auth | ) |
|
|
static |
Definition at line 358 of file auth_unix.c.
362 XDR *xdrs = &xdr_stream;
struct opaque_auth ah_verf
void xdrmem_create(XDR *xdrs, char *addr, u_int size, enum xdr_op op)
struct opaque_auth ah_cred
char au_marshed[MAX_AUTH_BYTES]
#define XDR_DESTROY(xdrs)
#define AUTH_PRIVATE(auth)
Referenced by authunix_create(), authunix_refresh(), and authunix_validate().