Lines Matching +full:multi +full:- +full:word
1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /* plugins/hostrealm/test/main.c - test module for host-realm interface */
36 * The first module returns multi-element lists. For host_realm and
46 #include <k5-int.h>
59 char *word = NULL, **list = NULL, **newptr; in split_comps() local
68 word = (q == NULL) ? strdup(p) : k5memdup0(p, q - p, &ret); in split_comps()
69 if (word == NULL) in split_comps()
75 list[count++] = word; in split_comps()
77 word = NULL; in split_comps()
87 free(word); in split_comps()
175 vt->name = "test1"; in hostrealm_test1_initvt()
176 vt->host_realm = split_comps; in hostrealm_test1_initvt()
177 vt->fallback_realm = split_comps; in hostrealm_test1_initvt()
178 vt->default_realm = multi_defrealm; in hostrealm_test1_initvt()
179 vt->free_list = free_realmlist; in hostrealm_test1_initvt()
192 vt->name = "test2"; in hostrealm_test2_initvt()
193 vt->host_realm = maybe_realm; in hostrealm_test2_initvt()
194 vt->default_realm = error; in hostrealm_test2_initvt()
195 vt->free_list = free_realmlist; in hostrealm_test2_initvt()