authlist
struct authlist AuthList[] = {
struct authlist *c;
struct authlist *c;
c = (struct authlist *)
genget(argv[1], (char **) AuthList, sizeof(struct authlist));
authmethod_get(char *authlist)
if (authlist == NULL || strlen(authlist) == 0)
authlist = options.preferred_authentications;
if (supported == NULL || strcmp(authlist, supported) != 0) {
debug3("start over, passed a different list %s", authlist);
supported = xstrdup(authlist);
char *authlist;
static Authmethod *authmethod_get(char *authlist);
authctxt.authlist = NULL;
userauth(struct ssh *ssh, char *authlist)
if (authlist == NULL) {
authlist = authctxt->authlist;
free(authctxt->authlist);
authctxt->authlist = authlist;
Authmethod *method = authmethod_get(authlist);
authctxt->server_user, authctxt->host, authlist);
free(authctxt->authlist);
authctxt->authlist = NULL;
char *authlist = NULL;
if (sshpkt_get_cstring(ssh, &authlist, NULL) != 0 ||
debug("Authentications that can continue: %s", authlist);
userauth(ssh, authlist);
authlist = NULL;
free(authlist);