dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / krb5 / kadm5 / clnt / clnt_privs.c
blob02ed65eb11b8e7aee0863f69d4f9df476192d372
1 /*
2 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
7 /*
8 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
10 * Openvision retains the copyright to derivative works of
11 * this source code. Do *NOT* create a derivative of this
12 * source code before consulting with your legal department.
13 * Do *NOT* integrate *ANY* of this source code into another
14 * product before consulting with your legal department.
16 * For further information, read the top-level Openvision
17 * copyright which is contained in the top-level MIT Kerberos
18 * copyright.
20 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
26 * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
28 * $Id: clnt_privs.c 18130 2006-06-14 21:42:02Z raeburn $
29 * $Source$
33 static char *rcsid = "$Header$";
35 #include <rpc/rpc.h> /* SUNWresync121 XXX */
36 #include <kadm5/admin.h>
37 #include <kadm5/kadm_rpc.h>
38 #include "client_internal.h"
40 kadm5_ret_t kadm5_get_privs(void *server_handle, long *privs)
42 getprivs_ret *r;
43 kadm5_server_handle_t handle = server_handle;
45 r = get_privs_2(&handle->api_version, handle->clnt);
46 if (r == NULL)
47 return KADM5_RPC_ERROR;
48 else if (r->code == KADM5_OK)
49 *privs = r->privs;
51 return r->code;