blob: 0452f72e023ff3b1b35c421a9f7426b670ba0be9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
*
* $Id$
* $Source$
*
* $Log$
* Revision 1.2 1998/02/14 02:32:58 tlyu
* * client_init.c:
* * client_principal.c:
* * client_rpc.c:
* * clnt_policy.c:
* * clnt_privs.c: Update header locations.
*
* * Makefile.in (LIBMAJOR): Bump major version to reflect change in
* rpc library.
*
* Revision 1.1 1996/07/24 22:22:48 tlyu
* * Makefile.in, configure.in: break out client lib into a
* subdirectory
*
* Revision 1.6 1996/07/22 20:35:57 marc
* this commit includes all the changes on the OV_9510_INTEGRATION and
* OV_MERGE branches. This includes, but is not limited to, the new openvision
* admin system, and major changes to gssapi to add functionality, and bring
* the implementation in line with rfc1964. before committing, the
* code was built and tested for netbsd and solaris.
*
* Revision 1.5.4.1 1996/07/18 03:08:45 marc
* merged in changes from OV_9510_BP to OV_9510_FINAL1
*
* Revision 1.5.2.1 1996/06/20 02:16:53 marc
* File added to the repository on a branch
*
* Revision 1.5 1996/05/17 21:36:50 bjaspan
* rename to kadm5, begin implementing version 2
*
* Revision 1.4 1996/05/16 21:45:51 bjaspan
* u_int32 -> long, add krb5_context
*
* Revision 1.3 1994/09/20 16:25:05 bjaspan
* [secure-admin/2436: API versioning fixes to various admin files]
* [secure-releng/2502: audit secure-admin/2436: random API versioning fixes]
*
* Sandbox:
*
* Unnecessary variable initialization removed.
*
* Revision 1.3 1994/09/12 20:26:39 jik
* Unnecessary variable initialization removed.
*
* Revision 1.2 1994/08/16 18:52:02 jik
* Versioning changes.
*
* Revision 1.1 1993/11/10 23:10:39 bjaspan
* Initial revision
*
*/
#if !defined(lint) && !defined(__CODECENTER__)
static char *rcsid = "$Header$";
#endif
#include <gssrpc/rpc.h>
#include <kadm5/admin.h>
#include <kadm5/kadm_rpc.h>
#include "client_internal.h"
kadm5_ret_t kadm5_get_privs(void *server_handle, long *privs)
{
getprivs_ret *r;
kadm5_server_handle_t handle = server_handle;
r = get_privs_1(&handle->api_version, handle->clnt);
if (r == NULL)
return KADM5_RPC_ERROR;
else if (r->code == KADM5_OK)
*privs = r->privs;
return r->code;
}
|