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