Lines Matching defs:submethod
96 #define MATCH_NONE 0 /* method or submethod mismatch */
97 #define MATCH_METHOD 1 /* method matches (no submethod specified) */
98 #define MATCH_BOTH 2 /* method and submethod match */
99 #define MATCH_PARTIAL 3 /* method matches, submethod can't be checked */
345 const char *submethod)
372 if (!auth2_update_methods_lists(authctxt, method, submethod)) {
379 auth_log(ssh, authenticated, partial, method, submethod);
383 auth2_update_session_info(authctxt, method, submethod);
426 const char *submethod)
438 submethod) != MATCH_NONE)
557 const char *submethod)
568 if (!submethod)
570 l = strlen(submethod);
572 if (strncmp(submethod, p, l))
588 remove_method(char **methods, const char *method, const char *submethod)
594 match = list_starts_with(omethods, method, submethod);
598 if (submethod && match == MATCH_BOTH)
599 p += 1 + strlen(submethod); /* include colon */
615 const char *submethod)
622 submethod))
725 const char *submethod)
734 /* Append method[/submethod] */
736 method, submethod == NULL ? "" : "/",
737 submethod == NULL ? "" : submethod)) != 0)