1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

(do_ssh2_authconn_state).method is redundant since r6437; remove.

Remove FIXMEs from .type assignments, as they look fine.

[originally from svn r6442]
[r6437 == 8719f92c14]
This commit is contained in:
Jacob Nevins 2005-10-31 22:43:51 +00:00
parent 8719f92c14
commit 6724e01956

12
ssh.c
View File

@ -6473,11 +6473,6 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
struct Packet *pktin) struct Packet *pktin)
{ {
struct do_ssh2_authconn_state { struct do_ssh2_authconn_state {
enum {
AUTH_INVALID, AUTH_PUBLICKEY_AGENT, AUTH_PUBLICKEY_FILE,
AUTH_PASSWORD,
AUTH_KEYBOARD_INTERACTIVE
} method;
enum { enum {
AUTH_TYPE_NONE, AUTH_TYPE_NONE,
AUTH_TYPE_PUBLICKEY, AUTH_TYPE_PUBLICKEY,
@ -7016,7 +7011,6 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
s->type = AUTH_TYPE_PUBLICKEY_OFFER_LOUD; s->type = AUTH_TYPE_PUBLICKEY_OFFER_LOUD;
continue; /* process this new message */ continue; /* process this new message */
} }
s->method = AUTH_PUBLICKEY_FILE;
logevent("Offer of public key accepted"); logevent("Offer of public key accepted");
/* /*
@ -7165,7 +7159,6 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
int name_len, inst_len, lang_len; int name_len, inst_len, lang_len;
int i; int i;
s->method = AUTH_KEYBOARD_INTERACTIVE;
s->type = AUTH_TYPE_KEYBOARD_INTERACTIVE; s->type = AUTH_TYPE_KEYBOARD_INTERACTIVE;
ssh->pkt_ctx &= ~SSH2_PKTCTX_AUTH_MASK; ssh->pkt_ctx &= ~SSH2_PKTCTX_AUTH_MASK;
@ -7276,7 +7269,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
end_log_omission(ssh, s->pktout); end_log_omission(ssh, s->pktout);
} }
ssh2_pkt_send(ssh, s->pktout); ssh2_pkt_send(ssh, s->pktout);
s->type = AUTH_TYPE_KEYBOARD_INTERACTIVE; /*FIXME?*/ s->type = AUTH_TYPE_KEYBOARD_INTERACTIVE;
} else if (s->can_passwd) { } else if (s->can_passwd) {
@ -7285,7 +7278,6 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
*/ */
int ret; /* not live over crReturn */ int ret; /* not live over crReturn */
s->method = AUTH_PASSWORD;
ssh->pkt_ctx &= ~SSH2_PKTCTX_AUTH_MASK; ssh->pkt_ctx &= ~SSH2_PKTCTX_AUTH_MASK;
ssh->pkt_ctx |= SSH2_PKTCTX_PASSWORD; ssh->pkt_ctx |= SSH2_PKTCTX_PASSWORD;
@ -7340,7 +7332,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
end_log_omission(ssh, s->pktout); end_log_omission(ssh, s->pktout);
ssh2_pkt_send(ssh, s->pktout); ssh2_pkt_send(ssh, s->pktout);
logevent("Sent password"); logevent("Sent password");
s->type = AUTH_TYPE_PASSWORD; /*FIXME?*/ s->type = AUTH_TYPE_PASSWORD;
} else { } else {