2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2N/A/*
2N/A * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
2N/A *
2N/A * $Id: clnt_privs.c 23100 2009-10-31 00:48:38Z tlyu $
2N/A * $Source$
2N/A *
2N/A */
2N/A
2N/A/*
2N/A * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
2N/A *
2N/A * Openvision retains the copyright to derivative works of
2N/A * this source code. Do *NOT* create a derivative of this
2N/A * source code before consulting with your legal department.
2N/A * Do *NOT* integrate *ANY* of this source code into another
2N/A * product before consulting with your legal department.
2N/A *
2N/A * For further information, read the top-level Openvision
2N/A * copyright which is contained in the top-level MIT Kerberos
2N/A * copyright.
2N/A *
2N/A * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
2N/A *
2N/A */
2N/A
2N/A#if !defined(lint) && !defined(__CODECENTER__)
2N/Astatic char *rcsid = "$Header$";
2N/A#endif
2N/A
2N/A/* Solaris Kerberos */
2N/A#include <rpc/rpc.h>
2N/A#include <kadm5/admin.h>
2N/A#include <kadm5/kadm_rpc.h>
2N/A#include "client_internal.h"
2N/A
2N/Akadm5_ret_t kadm5_get_privs(void *server_handle, long *privs)
2N/A{
2N/A getprivs_ret *r;
2N/A kadm5_server_handle_t handle = server_handle;
2N/A
2N/A r = get_privs_2(&handle->api_version, handle->clnt);
2N/A if (r == NULL)
2N/A return KADM5_RPC_ERROR;
2N/A else if (r->code == KADM5_OK)
2N/A *privs = r->privs;
2N/A
2N/A return r->code;
2N/A}