diff options
author | Theodore Tso <tytso@mit.edu> | 1993-06-03 12:31:48 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1993-06-03 12:31:48 +0000 |
commit | acbed92e113f54d33789d427e697a23a0f07ab64 (patch) | |
tree | 164a1dbc44306b6d896eb46165623e44223c37a9 /src/util/ss/requests.c | |
parent | df53bcea92bd141193e4d63cd1cccdab138579b7 (diff) | |
download | krb5-acbed92e113f54d33789d427e697a23a0f07ab64.tar.gz krb5-acbed92e113f54d33789d427e697a23a0f07ab64.tar.xz krb5-acbed92e113f54d33789d427e697a23a0f07ab64.zip |
Initial revision
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2610 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/ss/requests.c')
-rw-r--r-- | src/util/ss/requests.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/util/ss/requests.c b/src/util/ss/requests.c new file mode 100644 index 0000000000..bfe69f120b --- /dev/null +++ b/src/util/ss/requests.c @@ -0,0 +1,48 @@ +/* + * Various minor routines... + * + * Copyright 1987, 1988, 1989 by MIT + * + * For copyright information, see mit-sipb-copyright.h. + */ + +#include "mit-sipb-copyright.h" +#include <stdio.h> +#include "ss_internal.h" + +#define DECLARE(name) name(argc,argv,sci_idx)int argc,sci_idx;char **argv; + +/* + * ss_self_identify -- assigned by default to the "." request + */ +DECLARE(ss_self_identify) +{ + register ss_data *info = ss_info(sci_idx); + printf("%s version %s\n", info->subsystem_name, + info->subsystem_version); +} + +/* + * ss_subsystem_name -- print name of subsystem + */ +DECLARE(ss_subsystem_name) +{ + printf("%s\n", ss_info(sci_idx)->subsystem_name); +} + +/* + * ss_subsystem_version -- print version of subsystem + */ +DECLARE(ss_subsystem_version) +{ + printf("%s\n", ss_info(sci_idx)->subsystem_version); +} + +/* + * ss_unimplemented -- routine not implemented (should be + * set up as (dont_list,dont_summarize)) + */ +DECLARE(ss_unimplemented) +{ + ss_perror(sci_idx, SS_ET_UNIMPLEMENTED, ""); +} |