clnt_policy.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
* Openvision retains the copyright to derivative works of
* this source code. Do *NOT* create a derivative of this
* source code before consulting with your legal department.
* Do *NOT* integrate *ANY* of this source code into another
* product before consulting with your legal department.
*
* For further information, read the top-level Openvision
* copyright which is contained in the top-level MIT Kerberos
* copyright.
*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
*/
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
*
*/
#if !defined(lint) && !defined(__CODECENTER__)
static char *rcsid = "$Header: /cvs/krbdev/krb5/src/lib/kadm5/clnt/clnt_policy.c,v 1.2 1998/02/14 02:32:57 tlyu Exp $";
#endif
#include <kadm5/kadm_rpc.h>
#include "client_internal.h"
#include <stdlib.h>
#include <string.h>
kadm5_create_policy(void *server_handle,
{
generic_ret *r;
return EINVAL;
if(r == NULL)
return KADM5_RPC_ERROR;
return r->code;
}
{
generic_ret *r;
return EINVAL;
if(r == NULL)
return KADM5_RPC_ERROR;
return r->code;
}
kadm5_modify_policy(void *server_handle,
{
generic_ret *r;
return EINVAL;
if(r == NULL)
return KADM5_RPC_ERROR;
return r->code;
}
{
gpol_ret *r;
return EINVAL;
if(r == NULL)
return KADM5_RPC_ERROR;
if(r->code == 0) {
if (!(*entp = (kadm5_policy_ent_t)
malloc(sizeof(kadm5_policy_ent_rec))))
return ENOMEM;
} else {
}
} else {
if (r->code == 0)
}
return r->code;
}
kadm5_get_policies(void *server_handle,
{
gpols_ret *r;
return EINVAL;
if(r == NULL)
return KADM5_RPC_ERROR;
if(r->code == 0) {
} else {
*count = 0;
}
return r->code;
}