RTEMS CPU Kit with SuperCore  4.11.3
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
auth.h File Reference
#include <sys/cdefs.h>
#include <sys/socket.h>
#include <rpc/xdr.h>
Include dependency graph for auth.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  des_block
 
struct  opaque_auth
 
struct  __rpc_auth
 
struct  __rpc_auth::auth_ops
 
struct  netstarg
 

Macros

#define MAX_AUTH_BYTES   400
 
#define MAXNETNAMELEN   255 /* maximum length of network user's name */
 
#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 authsys_create   authunix_create
 
#define authsys_create_default   authunix_create_default
 
#define HEXKEYBYTES   48
 
#define AUTH_NONE   0 /* no authentication */
 
#define AUTH_NULL   0 /* backward compatibility */
 
#define AUTH_UNIX   1 /* unix style (uid, gids) */
 
#define AUTH_SYS   1 /* forward compatibility */
 
#define AUTH_SHORT   2 /* short hand unix style */
 
#define AUTH_DES   3 /* des style (encrypted timestamps) */
 

Typedefs

typedef union des_block des_block
 
typedef __END_DECLS struct __rpc_auth AUTH
 
typedef char kbuf[HEXKEYBYTES]
 
typedef char * namestr
 

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,
  _AUTH_STAT = 0xffffffff
}
 

Functions

__BEGIN_DECLS bool_t xdr_des_block (XDR *, des_block *)
 
__BEGIN_DECLS bool_t xdr_opaque_auth (XDR *xdrs, struct opaque_auth *ap)
 
AUTH * authunix_create (char *, int, int, int, int *)
 
AUTH * authunix_create_default (void)
 
AUTH * authnone_create (void)
 
__BEGIN_DECLS AUTH * authdes_create (char *, u_int, struct sockaddr *, des_block *)
 
__END_DECLS __BEGIN_DECLS int netname2user (char *, uid_t *, gid_t *, int *, gid_t *)
 
int netname2host (char *, char *, int)
 
int getnetname (char *)
 
int user2netname (char *, uid_t, char *)
 
int host2netname (char *, char *, char *)
 
void passwd2des (char *, char *)
 
__BEGIN_DECLS int key_decryptsession (const char *, des_block *)
 
int key_decryptsession_pk (char *, netobj *, des_block *)
 
int key_encryptsession (const char *, des_block *)
 
int key_encryptsession_pk (char *, netobj *, des_block *)
 
int key_gendes (des_block *)
 
int key_setsecret (const char *)
 
int key_secretkey_is_set (void)
 
int key_setnet (struct netstarg *)
 
int key_get_conv (char *, des_block *)
 
__END_DECLS __BEGIN_DECLS int getpublickey (char *, char *)
 
int getpublicandprivatekey (char *, char *)
 
int getsecretkey (char *, char *, char *)
 

Variables

struct opaque_auth _null_auth