xref: /illumos-gate/usr/src/lib/krb5/ss/requests.c (revision 1da57d55)
17c478bd9Sstevel@tonic-gate /*
2*56a424ccSmp  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
3*56a424ccSmp  * Use is subject to license terms.
47c478bd9Sstevel@tonic-gate  */
57c478bd9Sstevel@tonic-gate 
67c478bd9Sstevel@tonic-gate /*
77c478bd9Sstevel@tonic-gate  * Various minor routines...
87c478bd9Sstevel@tonic-gate  *
97c478bd9Sstevel@tonic-gate  * Copyright 1987, 1988, 1989 by MIT
107c478bd9Sstevel@tonic-gate  *
117c478bd9Sstevel@tonic-gate  * For copyright information, see mit-sipb-copyright.h.
127c478bd9Sstevel@tonic-gate  */
137c478bd9Sstevel@tonic-gate 
147c478bd9Sstevel@tonic-gate #include <stdio.h>
157c478bd9Sstevel@tonic-gate #include "ss_internal.h"
167c478bd9Sstevel@tonic-gate #include <libintl.h>
177c478bd9Sstevel@tonic-gate 
18*56a424ccSmp #define	DECLARE(name)	void name(argc,argv,sci_idx,info_ptr)int argc,sci_idx;const char * const *argv; pointer info_ptr;
197c478bd9Sstevel@tonic-gate 
207c478bd9Sstevel@tonic-gate /*
217c478bd9Sstevel@tonic-gate  * ss_self_identify -- assigned by default to the "." request
227c478bd9Sstevel@tonic-gate  */
DECLARE(ss_self_identify)237c478bd9Sstevel@tonic-gate DECLARE(ss_self_identify)
247c478bd9Sstevel@tonic-gate {
257c478bd9Sstevel@tonic-gate      register ss_data *info = ss_info(sci_idx);
267c478bd9Sstevel@tonic-gate      printf((char *)dgettext(TEXT_DOMAIN,
277c478bd9Sstevel@tonic-gate 	    "%s version %s\n"), info->subsystem_name,
287c478bd9Sstevel@tonic-gate 	    info->subsystem_version);
297c478bd9Sstevel@tonic-gate }
307c478bd9Sstevel@tonic-gate 
317c478bd9Sstevel@tonic-gate /*
327c478bd9Sstevel@tonic-gate  * ss_subsystem_name -- print name of subsystem
337c478bd9Sstevel@tonic-gate  */
DECLARE(ss_subsystem_name)347c478bd9Sstevel@tonic-gate DECLARE(ss_subsystem_name)
357c478bd9Sstevel@tonic-gate {
367c478bd9Sstevel@tonic-gate      printf("%s\n", ss_info(sci_idx)->subsystem_name);
377c478bd9Sstevel@tonic-gate }
387c478bd9Sstevel@tonic-gate 
397c478bd9Sstevel@tonic-gate /*
407c478bd9Sstevel@tonic-gate  * ss_subsystem_version -- print version of subsystem
417c478bd9Sstevel@tonic-gate  */
DECLARE(ss_subsystem_version)427c478bd9Sstevel@tonic-gate DECLARE(ss_subsystem_version)
437c478bd9Sstevel@tonic-gate {
447c478bd9Sstevel@tonic-gate      printf("%s\n", ss_info(sci_idx)->subsystem_version);
457c478bd9Sstevel@tonic-gate }
467c478bd9Sstevel@tonic-gate 
477c478bd9Sstevel@tonic-gate /*
487c478bd9Sstevel@tonic-gate  * ss_unimplemented -- routine not implemented (should be
497c478bd9Sstevel@tonic-gate  * set up as (dont_list,dont_summarize))
507c478bd9Sstevel@tonic-gate  */
DECLARE(ss_unimplemented)517c478bd9Sstevel@tonic-gate DECLARE(ss_unimplemented)
527c478bd9Sstevel@tonic-gate {
537c478bd9Sstevel@tonic-gate      ss_perror(sci_idx, SS_ET_UNIMPLEMENTED, "");
547c478bd9Sstevel@tonic-gate }
55