/* XDR the MSG_DENIED part of a reply message union  */
static bool_t xdr_rejected_reply(XDR *xdrs, struct rejected_reply *rr)
/* XDR the MSG_DENIED part of a reply message union  */
static bool_t xdr_rejected_reply(XDR *xdrs, struct rejected_reply *rr)
{
    if (!xdr_enum(xdrs, (enum_t *) & (rr->rj_stat)))
        return (FALSE);
    switch (rr->rj_stat) {
    case RPC_MISMATCH:
        if (!xdr_u_long(xdrs, &(rr->rj_vers.low)))
            return (FALSE);
        return (xdr_u_long(xdrs, &(rr->rj_vers.high)));
    case AUTH_ERROR:
        return (xdr_enum(xdrs, (enum_t *) & (rr->rj_why)));
    }
    return (FALSE);
}