Mercurial > dropbear
comparison packet.c @ 1751:3b9b427925a0
Load password and key for client fuzzer.
Add fuzz_dump()
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 20 Oct 2020 23:34:38 +0800 |
parents | 3a97f14c0235 |
children |
comparison
equal
deleted
inserted
replaced
1750:7cb8bc5ce8b9 | 1751:3b9b427925a0 |
---|---|
342 | 342 |
343 /* check the hmac */ | 343 /* check the hmac */ |
344 if (checkmac() != DROPBEAR_SUCCESS) { | 344 if (checkmac() != DROPBEAR_SUCCESS) { |
345 dropbear_exit("Integrity error"); | 345 dropbear_exit("Integrity error"); |
346 } | 346 } |
347 } | 347 |
348 } | |
349 | |
350 #if DROPBEAR_FUZZ | |
351 fuzz_dump(ses.readbuf->data, ses.readbuf->len); | |
352 #endif | |
348 | 353 |
349 /* get padding length */ | 354 /* get padding length */ |
350 buf_setpos(ses.readbuf, PACKET_PADDING_OFF); | 355 buf_setpos(ses.readbuf, PACKET_PADDING_OFF); |
351 padlen = buf_getbyte(ses.readbuf); | 356 padlen = buf_getbyte(ses.readbuf); |
352 | 357 |