Lines Matching +full:num +full:- +full:ids
2 * Copyright (c) 2008 - 2010 Kungliga Tekniska Högskolan
35 #include "kcc-commands.h"
65 if (opt->cache_string && opt->principal_string) in kswitch()
67 N_("Both --cache and --principal given, choose one", "")); in kswitch()
69 if (opt->interactive_flag) { in kswitch()
71 krb5_ccache *ids = NULL; in kswitch() local
90 char num[10]; in kswitch() local
100 snprintf(num, sizeof(num), "%d", (int)(len + 1)); in kswitch()
101 rtbl_add_column_entry_by_id(ct, 0, num); in kswitch()
106 ids = erealloc(ids, (len + 1) * sizeof(ids[0])); in kswitch()
107 ids[len] = id; in kswitch()
123 id = ids[i - 1]; in kswitch()
124 ids[i - 1] = NULL; in kswitch()
128 if (ids[i]) in kswitch()
129 krb5_cc_close(kcc_context, ids[i]); in kswitch()
131 } else if (opt->principal_string) { in kswitch()
134 ret = krb5_parse_name(kcc_context, opt->principal_string, &p); in kswitch()
137 opt->principal_string); in kswitch()
143 opt->principal_string); in kswitch()
147 } else if (opt->cache_string) { in kswitch()
151 ops = krb5_cc_get_prefix_ops(kcc_context, opt->type_string); in kswitch()
155 asprintf(&str, "%s:%s", ops->prefix, opt->cache_string); in kswitch()