Merge commit 'a058d1cc571af5fbcfe7f1d719df1abbfdb722f3' into merges
[unleashed.git] / usr / src / cmd / krb5 / kwarn / kwarnd.x
blobbb69a520667c62d19c52ef52fa935b06c25e9278
1 %/*
2 % * Copyright 1990-2002 Sun Microsystems, Inc.  All rights reserved.
3 % * Use is subject to license terms.
4 % */
6 /* %#pragma ident       "%Z%%M% %I%     %E% SMI" *
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.
13 % *
14 % *  File generated from kwarnd.x
15 % */
18 %#include <sys/types.h>
19 %#include <sys/time.h>
20 %#include <rpc/auth_sys.h>
21 %#include <locale.h>
24  * These are the definitions for the interface to KWARND.
25  */
27 #define MAX_PRINCIPAL_LEN 128
29 typedef string WARNING_NAME_T<MAX_PRINCIPAL_LEN>;
31 typedef unsigned int                            OM_UINT32;
33 struct kwarn_add_warning_arg {
34         WARNING_NAME_T warning_name;
35         long cred_exp_time;                     /* time in secs after epoch */
38 struct kwarn_add_warning_res {
39         OM_UINT32       status;                 /* status of kwarn call */
42 struct kwarn_del_warning_arg {
43         WARNING_NAME_T warning_name;
46 struct kwarn_del_warning_res {
47         OM_UINT32       status;                 /* status of kwarn call */
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  */
55 program KWARNPROG {
56     version KWARNVERS {
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;
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;
71     } = 1;
72 } = 100134;