Back to index

glibc  2.9
Defines | Functions
authdes_prot.c File Reference
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/auth.h>
#include <rpc/auth_des.h>

Go to the source code of this file.

Defines

#define ATTEMPT(xdr_op)   if (!(xdr_op)) return (FALSE)

Functions

bool_t xdr_authdes_cred (XDR *xdrs, struct authdes_cred *cred)
bool_t xdr_authdes_verf (register XDR *xdrs, register struct authdes_verf *verf)

Define Documentation

#define ATTEMPT (   xdr_op)    if (!(xdr_op)) return (FALSE)

Definition at line 41 of file authdes_prot.c.


Function Documentation

bool_t xdr_authdes_cred ( XDR xdrs,
struct authdes_cred cred 
)

Definition at line 44 of file authdes_prot.c.

{
  /*
   * Unrolled xdr
   */
  ATTEMPT (INTUSE(xdr_enum) (xdrs, (enum_t *) & cred->adc_namekind));
  switch (cred->adc_namekind)
    {
    case ADN_FULLNAME:
      ATTEMPT (INTUSE(xdr_string) (xdrs, &cred->adc_fullname.name,
                               MAXNETNAMELEN));
      ATTEMPT (INTUSE(xdr_opaque) (xdrs, (caddr_t) & cred->adc_fullname.key,
                               sizeof (des_block)));
      ATTEMPT (INTUSE(xdr_opaque) (xdrs, (caddr_t) & cred->adc_fullname.window,
                               sizeof (cred->adc_fullname.window)));
      return (TRUE);
    case ADN_NICKNAME:
      ATTEMPT (INTUSE(xdr_opaque) (xdrs, (caddr_t) & cred->adc_nickname,
                               sizeof (cred->adc_nickname)));
      return TRUE;
    default:
      return FALSE;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t xdr_authdes_verf ( register XDR xdrs,
register struct authdes_verf verf 
)

Definition at line 72 of file authdes_prot.c.

{
  /*
   * Unrolled xdr
   */
  ATTEMPT (INTUSE(xdr_opaque) (xdrs, (caddr_t) & verf->adv_xtimestamp,
                            sizeof (des_block)));
  ATTEMPT (INTUSE(xdr_opaque) (xdrs, (caddr_t) & verf->adv_int_u,
                            sizeof (verf->adv_int_u)));
  return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function: