Mercurial > dropbear
comparison common-kex.c @ 883:ff597bf2cfb0
DROPBEAR_CLI_AUTH_IMMEDIATE fixed, now enabled by default
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 17 Jan 2014 21:39:27 +0800 |
parents | 220f55d540ae |
children | 19ce21bd198a |
comparison
equal
deleted
inserted
replaced
882:f05107560aa9 | 883:ff597bf2cfb0 |
---|---|
789 hash_desc->process(&hs, buf_getptr(ses.kexhashbuf, ses.kexhashbuf->len), | 789 hash_desc->process(&hs, buf_getptr(ses.kexhashbuf, ses.kexhashbuf->len), |
790 ses.kexhashbuf->len); | 790 ses.kexhashbuf->len); |
791 ses.hash = buf_new(hash_desc->hashsize); | 791 ses.hash = buf_new(hash_desc->hashsize); |
792 hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize)); | 792 hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize)); |
793 buf_setlen(ses.hash, hash_desc->hashsize); | 793 buf_setlen(ses.hash, hash_desc->hashsize); |
794 | |
795 #ifdef DEBUG_KEXHASH | |
796 printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len); | |
797 printhex("kexhash", ses.hash->data, ses.hash->len); | |
798 #endif | |
794 | 799 |
795 buf_burn(ses.kexhashbuf); | 800 buf_burn(ses.kexhashbuf); |
796 buf_free(ses.kexhashbuf); | 801 buf_free(ses.kexhashbuf); |
797 ses.kexhashbuf = NULL; | 802 ses.kexhashbuf = NULL; |
798 | 803 |