Home | History | Annotate | Download | only in openssh

Lines Matching defs:method

269 	struct cauthmethod *method;
290 int *enabled; /* flag in option struct that enables method */
291 int *batch_flag; /* flag in option struct that disables method */
404 authctxt.method = authmethod_lookup("none");
411 if (authctxt.method == NULL)
426 debug("Authentication succeeded (%s).", authctxt.method->name);
432 if (authctxt->method != NULL && authctxt->method->cleanup != NULL)
433 authctxt->method->cleanup(authctxt);
444 Authmethod *method = authmethod_get(authlist);
445 if (method == NULL)
447 authctxt->method = method;
449 /* reset the per method handler */
453 /* and try new method */
454 if (method->userauth(authctxt) != 0) {
455 debug2("we sent a %s packet, wait for reply", method->name);
458 debug2("we did not send a packet, disable method");
459 method->enabled = NULL;
506 if (authctxt->method != NULL && authctxt->method->cleanup != NULL)
507 authctxt->method->cleanup(authctxt);
523 authctxt->method->name);
622 /* try another method if we did not send a packet */
638 /* Try one GSSAPI method at a time, rather than sending them all at
664 packet_put_cstring(authctxt->method->name);
773 /* Start again with next method on list */
803 /* Start again with the next method in the list */
869 packet_put_cstring(authctxt->method->name);
895 packet_put_cstring(authctxt->method->name);
937 packet_put_cstring(authctxt->method->name);
1048 buffer_put_cstring(&b, authctxt->method->name);
1072 buffer_put_cstring(&b, authctxt->method->name);
1117 packet_put_cstring(authctxt->method->name);
1371 * Send userauth request message specifying keyboard-interactive method.
1391 packet_put_cstring(authctxt->method->name);
1669 (r = sshbuf_put_cstring(b, authctxt->method->name)) != 0 ||
1695 (r = sshpkt_put_cstring(ssh, authctxt->method->name)) != 0 ||
1722 /* find auth method */
1725 * given auth method name, if configurable options permit this method fill
1729 authmethod_is_enabled(Authmethod *method)
1731 if (method == NULL)
1733 /* return false if options indicate this method is disabled */
1734 if (method->enabled == NULL || *method->enabled == 0)
1736 /* return false if batch mode is enabled but method needs interactive mode */
1737 if (method->batch_flag != NULL && *method->batch_flag != 0)
1745 Authmethod *method = NULL;
1747 for (method = authmethods; method->name != NULL; method++)
1748 if (strcmp(name, method->name) == 0)
1749 return method;
1750 debug2("Unrecognized authentication method name: %s", name ? name : "NULL");
1760 * Given the authentication method list sent by the server, return the
1761 * next method we should try. If the server initially sends a nil list,
1796 debug("Next authentication method: %s", name);
1807 Authmethod *method = NULL;
1812 for (method = authmethods; method->name != NULL; method++) {
1813 if (authmethod_is_enabled(method)) {
1816 buffer_append(&b, method->name, strlen(method->name));