xref: /titanic_41/usr/src/lib/krb5/ss/requests.c (revision 355b4669e025ff377602b6fc7caaf30dbc218371)
1 /*
2  * Copyright (c) 2000 by Sun Microsystems, Inc.
3  * All rights reserved.
4  */
5 
6 #pragma ident	"%Z%%M%	%I%	%E% SMI"
7 
8 /*
9  * Various minor routines...
10  *
11  * Copyright 1987, 1988, 1989 by MIT
12  *
13  * For copyright information, see mit-sipb-copyright.h.
14  */
15 
16 #include <ss/mit-sipb-copyright.h>
17 #include <stdio.h>
18 #include "ss_internal.h"
19 #include <libintl.h>
20 
21 #define	DECLARE(name)	void name(argc,argv,sci_idx)int argc,sci_idx;char **argv;
22 
23 /*
24  * ss_self_identify -- assigned by default to the "." request
25  */
26 DECLARE(ss_self_identify)
27 {
28      register ss_data *info = ss_info(sci_idx);
29      printf((char *)dgettext(TEXT_DOMAIN,
30 	    "%s version %s\n"), info->subsystem_name,
31 	    info->subsystem_version);
32 }
33 
34 /*
35  * ss_subsystem_name -- print name of subsystem
36  */
37 DECLARE(ss_subsystem_name)
38 {
39      printf("%s\n", ss_info(sci_idx)->subsystem_name);
40 }
41 
42 /*
43  * ss_subsystem_version -- print version of subsystem
44  */
45 DECLARE(ss_subsystem_version)
46 {
47      printf("%s\n", ss_info(sci_idx)->subsystem_version);
48 }
49 
50 /*
51  * ss_unimplemented -- routine not implemented (should be
52  * set up as (dont_list,dont_summarize))
53  */
54 DECLARE(ss_unimplemented)
55 {
56      ss_perror(sci_idx, SS_ET_UNIMPLEMENTED, "");
57 }
58 
59 int g_displayDebugSS = 0;
60 /*
61  * debug message display toggle
62  */
63 void
64 debugDisplaySS(int onOff) {
65 
66 	g_displayDebugSS = onOff;
67 }
68