Back to index

glibc  2.9
Classes | Defines | Functions | Variables
auth_none.c File Reference
#include <rpc/rpc.h>
#include <bits/libc-lock.h>

Go to the source code of this file.

Classes

struct  authnone_private_s

Defines

#define MAX_MARSHAL_SIZE   20

Functions

static void authnone_verf (AUTH *)
static void authnone_destroy (AUTH *)
static bool_t authnone_marshal (AUTH *, XDR *)
static bool_t authnone_validate (AUTH *, struct opaque_auth *)
static bool_t authnone_refresh (AUTH *)
 __libc_once_define (static, authnone_private_guard)
static void authnone_create_once (void)
AUTHauthnone_create (void)

Variables

static struct auth_ops
static struct authnone_private_s

Class Documentation

struct authnone_private_s

Definition at line 62 of file auth_none.c.

Class Members
char marshalled_client
u_int mcnt
AUTH no_client

Define Documentation

#define MAX_MARSHAL_SIZE   20

Definition at line 41 of file auth_none.c.


Function Documentation

__libc_once_define ( static  ,
authnone_private_guard   
)
AUTH* authnone_create ( void  )

Definition at line 94 of file auth_none.c.

{
  __libc_once (authnone_private_guard, authnone_create_once);
  return &authnone_private.no_client;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void authnone_create_once ( void  ) [static]

Definition at line 74 of file auth_none.c.

{
  struct authnone_private_s *ap;
  XDR xdr_stream;
  XDR *xdrs;

  ap = &authnone_private;

  ap->no_client.ah_cred = ap->no_client.ah_verf = _null_auth;
  ap->no_client.ah_ops = (struct auth_ops *) &ops;
  xdrs = &xdr_stream;
  INTUSE(xdrmem_create) (xdrs, ap->marshalled_client,
                      (u_int) MAX_MARSHAL_SIZE, XDR_ENCODE);
  (void) INTUSE(xdr_opaque_auth) (xdrs, &ap->no_client.ah_cred);
  (void) INTUSE(xdr_opaque_auth) (xdrs, &ap->no_client.ah_verf);
  ap->mcnt = XDR_GETPOS (xdrs);
  XDR_DESTROY (xdrs);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void authnone_destroy ( AUTH auth) [static]

Definition at line 132 of file auth_none.c.

{
}
static bool_t authnone_marshal ( AUTH client,
XDR xdrs 
) [static]

Definition at line 102 of file auth_none.c.

{
  struct authnone_private_s *ap;

  /* authnone_create returned authnone_private->no_client, which is
     the first field of struct authnone_private_s.  */
  ap = (struct authnone_private_s *) client;
  if (ap == NULL)
    return FALSE;
  return (*xdrs->x_ops->x_putbytes) (xdrs, ap->marshalled_client, ap->mcnt);
}
static bool_t authnone_refresh ( AUTH auth) [static]

Definition at line 126 of file auth_none.c.

{
  return FALSE;
}
static bool_t authnone_validate ( AUTH auth,
struct opaque_auth oa 
) [static]

Definition at line 120 of file auth_none.c.

{
  return TRUE;
}
static void authnone_verf ( AUTH auth) [static]

Definition at line 115 of file auth_none.c.

{
}

Variable Documentation

struct auth_ops [static]
struct authnone_private_s [static]

Definition at line 68 of file auth_none.c.