Lines Matching defs:methods

67 /* methods */
267 packet_disconnect("no authentication methods enabled");
325 char *methods;
398 methods = authmethods_get(authctxt);
399 debug3("%s: failure partial=%d next methods=\"%s\"", __func__,
400 partial, methods);
402 packet_put_cstring(methods);
406 free(methods);
412 * methods list. Returns 1 if allowed, or no methods lists configured.
482 * Check a comma-separated list of methods for validity. Is need_enable is
483 * non-zero, then also require that the methods are enabled.
484 * Returns 0 on success or -1 if the methods list is invalid.
489 char *methods, *omethods, *method, *p;
497 omethods = methods = xstrdup(_methods);
498 while ((method = strsep(&methods, ",")) != NULL) {
530 * any methods lists that include disabled methods. Note that this might
542 debug3("%s: checking methods", __func__);
548 logit("Authentication methods list \"%s\" contains "
553 debug("authentication methods list %d: %s",
560 "disabled methods");
567 list_starts_with(const char *methods, const char *method,
574 if (strncmp(methods, method, l) != 0)
576 p = methods + l;
594 * Remove method from the start of a comma-separated list of methods.
595 * Returns 0 if the list of methods did not start with that method or 1
599 remove_method(char **methods, const char *method, const char *submethod)
601 char *omethods = *methods, *p;
613 *methods = xstrdup(p);
630 debug3("%s: updating methods list after \"%s\"", __func__, method);
637 debug2("authentication methods list %d complete", i);
640 debug3("authentication methods list %d remaining: \"%s\"",