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