Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

auth.h File Reference

#include <sys/cdefs.h>

Go to the source code of this file.

Defines

#define MAX_AUTH_BYTES   400
#define MAXNETNAMELEN   255
#define AUTH_NEXTVERF(auth)   ((*((auth)->ah_ops->ah_nextverf))(auth))
#define auth_nextverf(auth)   ((*((auth)->ah_ops->ah_nextverf))(auth))
#define AUTH_MARSHALL(auth, xdrs)   ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
#define auth_marshall(auth, xdrs)   ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
#define AUTH_VALIDATE(auth, verfp)   ((*((auth)->ah_ops->ah_validate))((auth), verfp))
#define auth_validate(auth, verfp)   ((*((auth)->ah_ops->ah_validate))((auth), verfp))
#define AUTH_REFRESH(auth)   ((*((auth)->ah_ops->ah_refresh))(auth))
#define auth_refresh(auth)   ((*((auth)->ah_ops->ah_refresh))(auth))
#define AUTH_DESTROY(auth)   ((*((auth)->ah_ops->ah_destroy))(auth))
#define auth_destroy(auth)   ((*((auth)->ah_ops->ah_destroy))(auth))
#define AUTH_NONE   0
#define AUTH_NULL   0
#define AUTH_UNIX   1
#define AUTH_SHORT   2
#define AUTH_DES   3

Typedefs

typedef des_block des_block
typedef __rpc_auth AUTH

Enumerations

enum  auth_stat {
  AUTH_OK = 0, AUTH_BADCRED = 1, AUTH_REJECTEDCRED = 2, AUTH_BADVERF = 3,
  AUTH_REJECTEDVERF = 4, AUTH_TOOWEAK = 5, AUTH_INVALIDRESP = 6, AUTH_FAILED = 7
}

Functions

__BEGIN_DECLS bool_t xdr_des_block __P ((XDR *, des_block *))
AUTH *authunix_create __P ((char *, int, int, int, int *))
AUTH *authunix_create_default __P ((void))
AUTH *authdes_create __P ((char *, u_int, struct sockaddr_in *, des_block *))

Variables

opaque_auth _null_auth


Define Documentation

#define AUTH_DES   3
 

Definition at line 192 of file auth.h.

#define auth_destroy auth   )     ((*((auth)->ah_ops->ah_destroy))(auth))
 

Definition at line 159 of file auth.h.

#define AUTH_DESTROY auth   )     ((*((auth)->ah_ops->ah_destroy))(auth))
 

Definition at line 157 of file auth.h.

#define auth_marshall auth,
xdrs   )     ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
 

Definition at line 144 of file auth.h.

#define AUTH_MARSHALL auth,
xdrs   )     ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
 

Definition at line 142 of file auth.h.

#define auth_nextverf auth   )     ((*((auth)->ah_ops->ah_nextverf))(auth))
 

Definition at line 139 of file auth.h.

#define AUTH_NEXTVERF auth   )     ((*((auth)->ah_ops->ah_nextverf))(auth))
 

Definition at line 137 of file auth.h.

#define AUTH_NONE   0
 

Definition at line 188 of file auth.h.

#define AUTH_NULL   0
 

Definition at line 189 of file auth.h.

#define auth_refresh auth   )     ((*((auth)->ah_ops->ah_refresh))(auth))
 

Definition at line 154 of file auth.h.

#define AUTH_REFRESH auth   )     ((*((auth)->ah_ops->ah_refresh))(auth))
 

Definition at line 152 of file auth.h.

#define AUTH_SHORT   2
 

Definition at line 191 of file auth.h.

#define AUTH_UNIX   1
 

Definition at line 190 of file auth.h.

#define auth_validate auth,
verfp   )     ((*((auth)->ah_ops->ah_validate))((auth), verfp))
 

Definition at line 149 of file auth.h.

#define AUTH_VALIDATE auth,
verfp   )     ((*((auth)->ah_ops->ah_validate))((auth), verfp))
 

Definition at line 147 of file auth.h.

#define MAX_AUTH_BYTES   400
 

Definition at line 53 of file auth.h.

#define MAXNETNAMELEN   255
 

Definition at line 54 of file auth.h.


Typedef Documentation

typedef struct __rpc_auth AUTH
 

typedef union des_block des_block
 

Definition at line 91 of file auth.h.


Enumeration Type Documentation

enum auth_stat
 

Enumeration values:
AUTH_OK 
AUTH_BADCRED 
AUTH_REJECTEDCRED 
AUTH_BADVERF 
AUTH_REJECTEDVERF 
AUTH_TOOWEAK 
AUTH_INVALIDRESP 
AUTH_FAILED 

Definition at line 59 of file auth.h.


Function Documentation

AUTH* authdes_create __P (char *, u_int, struct sockaddr_in *, des_block *)   ) 
 

AUTH* authunix_create_default __P (void)   ) 
 

AUTH* authunix_create __P (char *, int, int, int, int *)   ) 
 

__BEGIN_DECLS bool_t xdr_des_block __P (XDR *, des_block *)   ) 
 


Variable Documentation

struct opaque_auth _null_auth
 


Generated on Sun May 14 14:51:29 2006 by  doxygen 1.4.2