-
Committer:
Simon Tatham
-
Date:
2018-12-06 18:06:15 UTC
-
Revision ID:
git-v1:6002b272f4c89db7f0d10678d6ba6d84bd9a8f40
Retain permitted methods list in userauth layer state.
There are situations - or _should_ be, at any rate - in which we
terminate a userauth attempt without having received a
USERAUTH_FAILURE from the server, which means that we can't depend on
always starting a userauth loop iteration by extracting the server's
list of permitted methods from the current failure message. If there
isn't a current failure message, the best we can do is remember the
state from last time.
That's already what we do for actually deciding which methods to
attempt (we set s->can_foo from the methods string). But we should
also keep the full original version of the string, for use in error
message.