comparison svr-auth.c @ 501:d58c478bd399

Add support for [email protected] delayed compression. Are still advertising 'zlib' for the server, need to allow delayed-only as an option
author Matt Johnston <matt@ucc.asn.au>
date Mon, 29 Sep 2008 02:23:04 +0000
parents 738313e73b1c
children d3ea8b9672f0
comparison
equal deleted inserted replaced
499:f3ca5ebc319a 501:d58c478bd399
366 CHECKCLEARTOWRITE(); 366 CHECKCLEARTOWRITE();
367 367
368 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_SUCCESS); 368 buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_SUCCESS);
369 encrypt_packet(); 369 encrypt_packet();
370 370
371 /* authdone must be set after encrypt_packet() for
372 * delayed-zlib mode */
371 ses.authstate.authdone = 1; 373 ses.authstate.authdone = 1;
372 ses.connect_time = 0; 374 ses.connect_time = 0;
373 375
374 376
375 if (ses.authstate.pw_uid == 0) { 377 if (ses.authstate.pw_uid == 0) {