Lines Matching defs:type
110 int auth_onoff(char *type, int on);
191 findauthenticator(int type, int way)
195 while (ap->type && (ap->type != type || ap->way != way))
197 return(ap->type ? ap : 0);
211 while (ap->type) {
213 i_support |= typemask(ap->type);
215 printf(">>>%s: I support auth type %d %d\r\n",
217 ap->type, ap->way);
220 printf(">>>%s: Init failed: auth type %d %d\r\n",
221 Name, ap->type, ap->way);
239 getauthmask(char *type, int *maskp)
243 if (AUTHTYPE_NAME(0) && !strcasecmp(type, AUTHTYPE_NAME(0))) {
249 if (AUTHTYPE_NAME(x) && !strcasecmp(type, AUTHTYPE_NAME(x))) {
258 auth_enable(char *type)
260 return(auth_onoff(type, 1));
264 auth_disable(char *type)
266 return(auth_onoff(type, 0));
270 auth_onoff(char *type, int on)
275 if (!strcasecmp(type, "?") || !strcasecmp(type, "help")) {
276 printf("auth %s 'type'\n", on ? "enable" : "disable");
277 printf("Where 'type' is one of:\n");
280 for (ap = authenticators; ap->type; ap++) {
281 if ((mask & (i = typemask(ap->type))) != 0)
284 printf("\t%s\n", AUTHTYPE_NAME(ap->type));
289 if (!getauthmask(type, &mask)) {
290 printf("%s: invalid authentication type\n", type);
323 for (ap = authenticators; ap->type; ap++) {
324 if ((mask & (i = typemask(ap->type))) != 0)
327 printf("%s: %s\n", AUTHTYPE_NAME(ap->type),
328 (i_wont_support & typemask(ap->type)) ?
349 while (ap->type) {
350 if (i_support & ~i_wont_support & typemask(ap->type)) {
352 printf(">>>%s: Sending type %d %d\r\n",
353 Name, ap->type, ap->way);
355 *e++ = ap->type;
434 printf(">>>%s: Using type %d\r\n",