xref: /illumos-gate/usr/src/cmd/krb5/kwarn/kwarnd.x (revision 0ccfe5834c3b867c1b6c273cae02ec8922bc0fd2)
1 %/*
2 % * Copyright 1990-2002 Sun Microsystems, Inc.  All rights reserved.
3 % * Use is subject to license terms.
4 % */
5 %
6 %/*
7 % *  RPC protocol information for kwarnd, the usermode daemon that
8 % *  assists kinit, kdestroy with kwarnapi. It is kwarnd that executes all
9 % *  kwarnapi calls and sends credential cache expiration warning messages.
10 
11 % *
12 % *  File generated from kwarnd.x
13 % */
14 %
15 %
16 %#include <sys/types.h>
17 %#include <sys/time.h>
18 %#include <rpc/auth_sys.h>
19 %#include <locale.h>
20 %
21 /*
22  * These are the definitions for the interface to KWARND.
23  */
24 
25 #define MAX_PRINCIPAL_LEN 128
26 
27 typedef string WARNING_NAME_T<MAX_PRINCIPAL_LEN>;
28 
29 typedef unsigned int				OM_UINT32;
30 
31 struct kwarn_add_warning_arg {
32 	WARNING_NAME_T warning_name;
33 	long cred_exp_time;			/* time in secs after epoch */
34 };
35 
36 struct kwarn_add_warning_res {
37 	OM_UINT32	status;			/* status of kwarn call */
38 };
39 
40 struct kwarn_del_warning_arg {
41 	WARNING_NAME_T warning_name;
42 };
43 
44 struct kwarn_del_warning_res {
45 	OM_UINT32	status;			/* status of kwarn call */
46 };
47 
48 /*
49  *  The server accepts requests only from the loopback address.
50  *  Unix authentication is used, and the port must be in the reserved range.
51  */
52 
53 program KWARNPROG {
54     version KWARNVERS {
55 
56 	/*
57 	 *  Called by the client to add a cred expiration warning
58 	 */
59 	kwarn_add_warning_res
60 		KWARN_ADD_WARNING(kwarn_add_warning_arg)			= 1;
61 
62 	/*
63 	 *  Called by the client to delete a cred expiration warning
64 	 */
65 	kwarn_del_warning_res
66 		KWARN_DEL_WARNING(kwarn_del_warning_arg)			= 2;
67 
68 
69     } = 1;
70 } = 100134;
71