Mercurial > dropbear
comparison fuzz/fuzzer-pubkey.c @ 1777:97ad26e397a5
Add server postauth fuzzer, wrap connect_remote()
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 13 Nov 2020 23:18:05 +0800 |
parents | d5680e12ac33 |
children |
comparison
equal
deleted
inserted
replaced
1776:290caf301a4f | 1777:97ad26e397a5 |
---|---|
25 buffer *keyblob = buf_getstringbuf(fuzz.input); | 25 buffer *keyblob = buf_getstringbuf(fuzz.input); |
26 | 26 |
27 unsigned int algolen; | 27 unsigned int algolen; |
28 char* algoname = buf_getstring(keyblob, &algolen); | 28 char* algoname = buf_getstring(keyblob, &algolen); |
29 | 29 |
30 if (signature_type_from_name(algoname, algolen) == DROPBEAR_SIGNKEY_NONE) { | 30 if (signature_type_from_name(algoname, algolen) == DROPBEAR_SIGNATURE_NONE) { |
31 dropbear_exit("fuzzer imagined a bogus algorithm"); | 31 dropbear_exit("fuzzer imagined a bogus algorithm"); |
32 } | 32 } |
33 | 33 |
34 int ret = fuzz_checkpubkey_line(line, 5, "/home/me/authorized_keys", | 34 int ret = fuzz_checkpubkey_line(line, 5, "/home/me/authorized_keys", |
35 algoname, algolen, | 35 algoname, algolen, |