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