Mercurial > dropbear
comparison svr-auth.c @ 330:5488db2e9e4e
merge of 332f709a4cb39cde4cedab7c3be89e05f3023067
and ca4ca78b82c5d430c69ce01bf794e8886ce81431
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 10 Jun 2006 16:39:40 +0000 |
parents | baea1d43e7eb |
children | 973fccb59ea4 7e43f5e473b9 |
comparison
equal
deleted
inserted
replaced
329:8ed0dce45126 | 330:5488db2e9e4e |
---|---|
313 } | 313 } |
314 | 314 |
315 buf_setpos(typebuf, 0); | 315 buf_setpos(typebuf, 0); |
316 buf_putstring(ses.writepayload, buf_getptr(typebuf, typebuf->len), | 316 buf_putstring(ses.writepayload, buf_getptr(typebuf, typebuf->len), |
317 typebuf->len); | 317 typebuf->len); |
318 | |
319 TRACE(("auth fail: methods %d, '%s'", ses.authstate.authtypes, | |
320 buf_getptr(typebuf, typebuf->len))); | |
321 | |
318 buf_free(typebuf); | 322 buf_free(typebuf); |
319 | 323 |
320 buf_putbyte(ses.writepayload, partial ? 1 : 0); | 324 buf_putbyte(ses.writepayload, partial ? 1 : 0); |
321 encrypt_packet(); | 325 encrypt_packet(); |
322 | |
323 TRACE(("auth fail: methods %d, '%s'", ses.authstate.authtypes, | |
324 buf_getptr(typebuf, typebuf->len))); | |
325 | 326 |
326 if (incrfail) { | 327 if (incrfail) { |
327 usleep(300000); /* XXX improve this */ | 328 usleep(300000); /* XXX improve this */ |
328 ses.authstate.failcount++; | 329 ses.authstate.failcount++; |
329 } | 330 } |