static struct getargs args[] = { /* * used by MIT * a: ~A * V: verbose * F: ~f * P: ~p * C: v4 cache name? * 5: * * old flags * 4: * 9: */ { "afslog", 0 , arg_flag, &do_afslog, NP_("obtain afs tokens", ""), NULL }, { "cache", 'c', arg_string, &cred_cache, NP_("credentials cache", ""), "cachename" }, { "forwardable", 'F', arg_negative_flag, &forwardable_flag, NP_("get tickets not forwardable", ""), NULL }, { NULL, 'f', arg_flag, &forwardable_flag, NP_("get forwardable tickets", ""), NULL }, { "keytab", 't', arg_string, &keytab_str, NP_("keytab to use", ""), "keytabname" }, { "lifetime", 'l', arg_string, &lifetime, NP_("lifetime of tickets", ""), "time" },
static char *cache_str; static char *out_cache_str; static char *delegation_cred_str; static char *etype_str; static int transit_flag = 1; static int forwardable_flag; static int canonicalize_flag; static char *impersonate_str; static char *nametype_str; static int version_flag; static int help_flag; struct getargs args[] = { { "cache", 'c', arg_string, &cache_str, NP_("credential cache to use", ""), "cache"}, { "out-cache", 0, arg_string, &out_cache_str, NP_("credential cache to store credential in", ""), "cache"}, { "delegation-credential-cache",0,arg_string, &delegation_cred_str, NP_("where to find the ticket use for delegation", ""), "cache"}, { "canonicalize", 0, arg_flag, &canonicalize_flag, NP_("canonicalize the principal", ""), NULL }, { "forwardable", 0, arg_flag, &forwardable_flag, NP_("forwardable ticket requested", ""), NULL}, { "transit-check", 0, arg_negative_flag, &transit_flag, NULL, NULL }, { "enctype", 'e', arg_string, &etype_str, NP_("encryption type to use", ""), "enctype"}, { "impersonate", 0, arg_string, &impersonate_str, NP_("client to impersonate", ""), "principal"}, { "name-type", 0, arg_string, &nametype_str, NULL, NULL }, { "version", 0, arg_flag, &version_flag, NULL, NULL },
static char *etype_str = NULL; static char *ccache_name = NULL; static char *keytab_name = NULL; static char *sname = NULL; static int version_flag = 0; static int help_flag = 0; static int quiet_flag = 0; static void do_v5_kvno (int argc, char *argv[], char *ccache_name, char *etype_str, char *keytab_name, char *sname); struct getargs args[] = { { "enctype", 'e', arg_string, &etype_str, NP_("Encryption type to use", ""), "enctype" }, { "cache", 'c', arg_string, &ccache_name, NP_("Credentials cache", ""), "cachename" }, { "keytab", 'k', arg_string, &keytab_name, NP_("Keytab to use", ""), "keytabname" }, { "server", 'S', arg_string, &sname, NP_("Server to get ticket for", ""), "principal" }, { "quiet", 'q', arg_flag, &quiet_flag, NP_("Quiet", "") }, { "version", 0, arg_flag, &version_flag }, { "help", 0, arg_flag, &help_flag } }; static void usage(int ret) {
static int transit_flag = 1; static int forwardable_flag; static int canonicalize_flag; static int is_hostbased_flag; static int is_canonical_flag; static char *impersonate_str; static char *nametype_str; static int store_flag = 1; static int cached_only_flag; static int debug_flag; static int version_flag; static int help_flag; struct getargs args[] = { { "cache", 'c', arg_string, &cache_str, NP_("credential cache to use", ""), "cache"}, { "out-cache", 0, arg_string, &out_cache_str, NP_("credential cache to store credential in", ""), "cache"}, { "delegation-credential-cache",0,arg_string, &delegation_cred_str, NP_("where to find the ticket use for delegation", ""), "cache"}, { "canonicalize", 0, arg_flag, &canonicalize_flag, NP_("canonicalize the principal (chase referrals)", ""), NULL }, { "canonical", 0, arg_flag, &is_canonical_flag, NP_("the name components are canonical", ""), NULL }, { "forwardable", 0, arg_flag, &forwardable_flag, NP_("forwardable ticket requested", ""), NULL}, { "transit-check", 0, arg_negative_flag, &transit_flag, NULL, NULL }, { "enctype", 'e', arg_string, &etype_str, NP_("encryption type to use", ""), "enctype"}, { "impersonate", 0, arg_string, &impersonate_str, NP_("client to impersonate", ""), "principal"},
#include "kuser_locl.h" /* * */ static int version_flag = 0; static int help_flag = 0; static char *cache; static char *principal; static char *type; static struct getargs args[] = { { "type", 't', arg_string, &type, NP_("type of credential cache", ""), "type" }, { "cache", 'c', arg_string, &cache, NP_("name of credential cache", ""), "cache" }, { "principal", 'p', arg_string, &principal, NP_("name of principal", ""), "principal" }, { "version", 0, arg_flag, &version_flag, NP_("print version", ""), NULL }, { "help", 0, arg_flag, &help_flag, NULL, NULL} }; static void usage (int ret) __attribute__((noreturn)); static void usage (int ret) {