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