Пример #1
0
bool_t
xdr_cryptkeyarg(XDR *xdrs, cryptkeyarg *objp)
{
	if (!xdr_netnamestr(xdrs, &objp->remotename))
		return (FALSE);
	return (xdr_des_block(xdrs, &objp->deskey));
}
Пример #2
0
bool_t
xdr_cryptkeyres(XDR *xdrs, cryptkeyres *objp)
{
	if (!xdr_keystatus(xdrs, &objp->status))
		return (FALSE);
	if (objp->status != KEY_SUCCESS)
		return (TRUE);
	return (xdr_des_block(xdrs, &objp->cryptkeyres_u.deskey));
}
Пример #3
0
bool
xdr_cryptkeyarg(register XDR *xdrs, cryptkeyarg *objp)
{
    if (!xdr_netnamestr(xdrs, &objp->remotename))
        return (FALSE);
    if (!xdr_des_block(xdrs, &objp->deskey))
        return (FALSE);
    return (TRUE);
}
Пример #4
0
bool
xdr_cryptkeyarg(XDR *xdrs, cryptkeyarg *objp)
{
	if (!xdr_netnamestr(xdrs, &objp->remotename))
		return (false);
	if (!xdr_des_block(xdrs, &objp->deskey))
		return (false);
	return (true);
}
Пример #5
0
bool_t
xdr_cryptkeyarg2 (XDR * xdrs, cryptkeyarg2 * objp)
{
  if (!xdr_netnamestr (xdrs, &objp->remotename))
    return FALSE;
  if (!xdr_netobj (xdrs, &objp->remotekey))
    return FALSE;
  if (!xdr_des_block (xdrs, &objp->deskey))
    return FALSE;
  return TRUE;
}
Пример #6
0
bool_t
xdr_cryptkeyarg (XDR *xdrs, cryptkeyarg *objp)
{
	register int32_t *buf;

	 if (!xdr_netnamestr (xdrs, &objp->remotename))
		 return FALSE;
	 if (!xdr_des_block (xdrs, &objp->deskey))
		 return FALSE;
	return TRUE;
}
Пример #7
0
bool_t
xdr_setkeyarg3(XDR *xdrs, setkeyarg3 *objp)
{
	if (!xdr_keybuf3(xdrs, &objp->key))
		return (FALSE);
	if (!xdr_des_block(xdrs, &objp->userkey))
		return (FALSE);
	if (!xdr_algtype_t(xdrs, &objp->algtype))
		return (FALSE);
	return (xdr_keylen_t(xdrs, &objp->keylen));
}
Пример #8
0
bool_t
xdr_cryptkeyres(register XDR *xdrs, cryptkeyres *objp)
{

	if (!xdr_keystatus(xdrs, &objp->status))
		return (FALSE);
	switch (objp->status) {
	case KEY_SUCCESS:
		if (!xdr_des_block(xdrs, &objp->cryptkeyres_u.deskey))
			return (FALSE);
		break;
	}
	return (TRUE);
}
Пример #9
0
bool_t
xdr_key_netstarg3(XDR *xdrs, key_netstarg3 *objp)
{
	if (!xdr_keybuf3(xdrs, &objp->st_priv_key))
		return (FALSE);
	if (!xdr_keybuf3(xdrs, &objp->st_pub_key))
		return (FALSE);
	if (!xdr_netnamestr(xdrs, &objp->st_netname))
		return (FALSE);
	if (!xdr_algtype_t(xdrs, &objp->algtype))
		return (FALSE);
	if (!xdr_keylen_t(xdrs, &objp->keylen))
		return (FALSE);
	return (xdr_des_block(xdrs, &objp->userkey));
}
Пример #10
0
bool
xdr_cryptkeyres(XDR *xdrs, cryptkeyres *objp)
{
	if (!xdr_keystatus(xdrs, &objp->status))
		return (false);
	switch (objp->status) {
	case KEY_SUCCESS:
		if (!xdr_des_block(xdrs, &objp->cryptkeyres_u.deskey))
			return (false);
		break;
	default:
		break;
	}
	return (true);
}
Пример #11
0
bool_t
xdr_cryptkeyres (XDR * xdrs, cryptkeyres * objp)
{
  if (!xdr_keystatus (xdrs, &objp->status))
    return FALSE;
  switch (objp->status)
    {
    case KEY_SUCCESS:
      if (!xdr_des_block (xdrs, &objp->cryptkeyres_u.deskey))
	return FALSE;
      break;
    default:
      break;
    }
  return TRUE;
}