Lines Matching refs:authmethods

69 static Authmethod *authmethods[] = {  variable
418 for (i = 0; authmethods[i] != NULL; i++) {
419 if (strcmp(authmethods[i]->name, "keyboard-interactive") != 0)
421 return xstrdup(authmethods[i]->name);
478 for (i = 0; authmethods[i] != NULL; i++) { in userauth_check_partial_failure()
479 if (authmethods[i]->required) in userauth_check_partial_failure()
481 if (authmethods[i]->sufficient) in userauth_check_partial_failure()
512 for (i = 0; authmethods[i] != NULL; i++) { in userauth_reset_methods()
514 authmethods[i]->required = 0; in userauth_reset_methods()
515 authmethods[i]->sufficient = 0; in userauth_reset_methods()
516 authmethods[i]->authenticated = 0; in userauth_reset_methods()
517 authmethods[i]->not_again = 0; in userauth_reset_methods()
518 authmethods[i]->postponed = 0; in userauth_reset_methods()
519 authmethods[i]->abandoned = 0; in userauth_reset_methods()
528 for (i = 0; authmethods[i] != NULL; i++) { in userauth_force_kbdint()
529 authmethods[i]->required = 0; in userauth_force_kbdint()
530 authmethods[i]->sufficient = 0; in userauth_force_kbdint()
565 for (i = 0; authmethods[i] != NULL; i++) { in authmethods_check_abandonment()
566 if (!authmethods[i]->postponed) in authmethods_check_abandonment()
570 if (method != authmethods[i]) { in authmethods_check_abandonment()
571 authmethods[i]->postponed = 0; in authmethods_check_abandonment()
572 if (authmethods[i]->abandon) in authmethods_check_abandonment()
573 authmethods[i]->abandon(authctxt, in authmethods_check_abandonment()
574 authmethods[i]); in authmethods_check_abandonment()
576 authmethods[i]->abandons++; in authmethods_check_abandonment()
578 if (authmethods[i]->is_initial) in authmethods_check_abandonment()
580 return (authmethods[i]->name); /* see above */ in authmethods_check_abandonment()
603 for (i = 0; authmethods[i] != NULL; i++) { in authmethods_get()
604 if (authmethods[i]->authenticated) in authmethods_get()
606 if (authmethods[i]->required) in authmethods_get()
608 if (authmethods[i]->sufficient) in authmethods_get()
615 for (i = 0; authmethods[i] != NULL; i++) { in authmethods_get()
616 if (strcmp(authmethods[i]->name, "none") == 0) in authmethods_get()
618 if (required && !authmethods[i]->required) in authmethods_get()
620 if (sufficient && !required && !authmethods[i]->sufficient) in authmethods_get()
622 if (authmethods[i]->not_again) in authmethods_get()
625 if (authmethods[i]->required) { in authmethods_get()
628 buffer_append(&b, authmethods[i]->name, in authmethods_get()
629 strlen(authmethods[i]->name)); in authmethods_get()
638 if ((partial && authmethods[i]->sufficient) || in authmethods_get()
639 (authmethods[i]->enabled != NULL && in authmethods_get()
640 *(authmethods[i]->enabled) != 0)) { in authmethods_get()
643 buffer_append(&b, authmethods[i]->name, in authmethods_get()
644 strlen(authmethods[i]->name)); in authmethods_get()
663 for (i = 0; authmethods[i] != NULL; i++) in authmethod_lookup()
664 if (((authmethods[i]->sufficient || in authmethod_lookup()
665 authmethods[i]->required) || in authmethod_lookup()
666 (authmethods[i]->enabled != NULL && in authmethod_lookup()
667 *(authmethods[i]->enabled) != 0)) && in authmethod_lookup()
668 !authmethods[i]->not_again && in authmethod_lookup()
669 strcmp(name, authmethods[i]->name) == 0) in authmethod_lookup()
670 return authmethods[i]; in authmethod_lookup()