Back to index

glibc  2.9
Functions
key_prot.c File Reference
#include "rpc/key_prot.h"

Go to the source code of this file.

Functions

bool_t xdr_keystatus (XDR *xdrs, keystatus *objp)
bool_t xdr_keybuf (XDR *xdrs, keybuf objp)
bool_t xdr_netnamestr (XDR *xdrs, netnamestr *objp)
bool_t xdr_cryptkeyarg (XDR *xdrs, cryptkeyarg *objp)
bool_t xdr_cryptkeyarg2 (XDR *xdrs, cryptkeyarg2 *objp)
bool_t xdr_cryptkeyres (XDR *xdrs, cryptkeyres *objp)
bool_t xdr_unixcred (XDR *xdrs, unixcred *objp)
bool_t xdr_getcredres (XDR *xdrs, getcredres *objp)
bool_t xdr_key_netstarg (XDR *xdrs, key_netstarg *objp)
bool_t xdr_key_netstres (XDR *xdrs, key_netstres *objp)

Function Documentation

bool_t xdr_cryptkeyarg ( XDR xdrs,
cryptkeyarg objp 
)

Definition at line 68 of file key_prot.c.

{
  if (!INTUSE(xdr_netnamestr) (xdrs, &objp->remotename))
    return FALSE;

  if (!INTUSE(xdr_des_block) (xdrs, &objp->deskey))
    return FALSE;

  return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t xdr_cryptkeyarg2 ( XDR xdrs,
cryptkeyarg2 objp 
)

Definition at line 81 of file key_prot.c.

{
  if (!INTUSE(xdr_netnamestr) (xdrs, &objp->remotename))
    return FALSE;
  if (!INTUSE(xdr_netobj) (xdrs, &objp->remotekey))
    return FALSE;
  if (!INTUSE(xdr_des_block) (xdrs, &objp->deskey))
    return FALSE;
  return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t xdr_cryptkeyres ( XDR xdrs,
cryptkeyres objp 
)

Definition at line 94 of file key_prot.c.

{
  if (!INTUSE(xdr_keystatus) (xdrs, &objp->status))
    return FALSE;
  switch (objp->status)
    {
    case KEY_SUCCESS:
      if (!INTUSE(xdr_des_block) (xdrs, &objp->cryptkeyres_u.deskey))
       return FALSE;
      break;
    default:
      break;
    }
  return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t xdr_getcredres ( XDR xdrs,
getcredres objp 
)

Definition at line 127 of file key_prot.c.

{
  if (!INTUSE(xdr_keystatus) (xdrs, &objp->status))
    return FALSE;
  switch (objp->status)
    {
    case KEY_SUCCESS:
      if (!INTUSE(xdr_unixcred) (xdrs, &objp->getcredres_u.cred))
       return FALSE;
      break;
    default:
      break;
    }
  return TRUE;
}

Here is the call graph for this function:

bool_t xdr_key_netstarg ( XDR xdrs,
key_netstarg objp 
)

Definition at line 144 of file key_prot.c.

{
  if (!INTUSE(xdr_keybuf) (xdrs, objp->st_priv_key))
    return FALSE;
  if (!INTUSE(xdr_keybuf) (xdrs, objp->st_pub_key))
    return FALSE;
  if (!INTUSE(xdr_netnamestr) (xdrs, &objp->st_netname))
    return FALSE;
  return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t xdr_key_netstres ( XDR xdrs,
key_netstres objp 
)

Definition at line 157 of file key_prot.c.

{
  if (!INTUSE(xdr_keystatus) (xdrs, &objp->status))
    return FALSE;
  switch (objp->status)
    {
    case KEY_SUCCESS:
      if (!INTUSE(xdr_key_netstarg) (xdrs, &objp->key_netstres_u.knet))
       return FALSE;
      break;
    default:
      break;
    }
  return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t xdr_keybuf ( XDR xdrs,
keybuf  objp 
)

Definition at line 48 of file key_prot.c.

{
  if (!INTUSE(xdr_opaque) (xdrs, objp, HEXKEYBYTES))
    return FALSE;

  return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t xdr_keystatus ( XDR xdrs,
keystatus objp 
)

Definition at line 38 of file key_prot.c.

{
  if (!INTUSE(xdr_enum) (xdrs, (enum_t *) objp))
    return FALSE;

  return TRUE;
}

Here is the call graph for this function:

bool_t xdr_netnamestr ( XDR xdrs,
netnamestr objp 
)

Definition at line 58 of file key_prot.c.

{
  if (!INTUSE(xdr_string) (xdrs, objp, MAXNETNAMELEN))
    return FALSE;

  return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t xdr_unixcred ( XDR xdrs,
unixcred objp 
)

Definition at line 112 of file key_prot.c.

{
  if (!INTUSE(xdr_u_int) (xdrs, &objp->uid))
    return FALSE;
  if (!INTUSE(xdr_u_int) (xdrs, &objp->gid))
    return FALSE;
  if (!INTUSE(xdr_array) (xdrs, (void *) &objp->gids.gids_val,
                       (u_int *) & objp->gids.gids_len, MAXGIDS,
                       sizeof (u_int), (xdrproc_t) INTUSE(xdr_u_int)))
    return FALSE;
  return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function: