Mercurial > dropbear
comparison process-packet.c @ 42:837f9172df09
Remove some unused commented-out code
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 01 Aug 2004 11:02:44 +0000 |
parents | e2a1eaa19f22 |
children | 0cfba3034be5 |
comparison
equal
deleted
inserted
replaced
41:18eccbfb9641 | 42:837f9172df09 |
---|---|
90 TRACE(("Ignoring packet, type = %d", type)); | 90 TRACE(("Ignoring packet, type = %d", type)); |
91 ses.ignorenext = 0; | 91 ses.ignorenext = 0; |
92 goto out; | 92 goto out; |
93 } | 93 } |
94 | 94 |
95 /* XXX This code somewhere else perhaps? */ | |
96 #ifdef DROPBEAR_CLIENT | |
97 if (IS_DROPBEAR_CLIENT) { | |
98 | |
99 /* XXX - needs changing */ | |
100 /* In client mode, we REUSE ses.expecting to proceed to the | |
101 * next phase when a packet was received. | |
102 * If the "expecting" flag is set to a non-null value, it will | |
103 * be reset when a packet of that type is received. | |
104 * This is different from the server-mode behaviour, when | |
105 * a packet type mismatch would have caused sudden death. | |
106 */ | |
107 | |
108 /* check that we aren't expecting a particular packet */ | |
109 #if 0 | |
110 if (cli_ses.expecting && cli_ses.expecting == type) { | |
111 cli_ses.expecting = 0; | |
112 } | |
113 #endif | |
114 } | |
115 #endif | |
116 | 95 |
117 /* Kindly the protocol authors gave all the preauth packets type values | 96 /* Kindly the protocol authors gave all the preauth packets type values |
118 * less-than-or-equal-to 60 ( == MAX_UNAUTH_PACKET_TYPE ). | 97 * less-than-or-equal-to 60 ( == MAX_UNAUTH_PACKET_TYPE ). |
119 * NOTE: if the protocol changes and new types are added, revisit this | 98 * NOTE: if the protocol changes and new types are added, revisit this |
120 * assumption */ | 99 * assumption */ |