summaryrefslogtreecommitdiffstats
path: root/src/lib/kadm5/clnt/clnt_privs.c
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1996-07-24 22:22:49 +0000
committerTom Yu <tlyu@mit.edu>1996-07-24 22:22:49 +0000
commit0e159dd62f2da74c561803a72921a77d9c9f05ff (patch)
tree1e29e922cadddd05e2fd7bbee40e0205dbb68629 /src/lib/kadm5/clnt/clnt_privs.c
parent04d29de13e88ff63c1ab0acd924d1f672370afd7 (diff)
downloadkrb5-0e159dd62f2da74c561803a72921a77d9c9f05ff.tar.gz
krb5-0e159dd62f2da74c561803a72921a77d9c9f05ff.tar.xz
krb5-0e159dd62f2da74c561803a72921a77d9c9f05ff.zip
* Makefile.in, configure.in: break out client lib into a
subdirectory git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8805 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/kadm5/clnt/clnt_privs.c')
-rw-r--r--src/lib/kadm5/clnt/clnt_privs.c70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/lib/kadm5/clnt/clnt_privs.c b/src/lib/kadm5/clnt/clnt_privs.c
new file mode 100644
index 0000000000..7eab2f80eb
--- /dev/null
+++ b/src/lib/kadm5/clnt/clnt_privs.c
@@ -0,0 +1,70 @@
+/*
+ * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
+ *
+ * $Id$
+ * $Source$
+ *
+ * $Log$
+ * 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 <rpc/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;
+}