comparison fuzzer-pubkey.c @ 1674:ba6fc7afe1c5

use sigtype where appropriate
author Matt Johnston <matt@ucc.asn.au>
date Mon, 06 Apr 2020 23:18:26 +0800
parents 252b406d0e9a
children
comparison
equal deleted inserted replaced
1668:49cb3cf4bd6f 1674:ba6fc7afe1c5
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 (have_algo(algoname, algolen, sshhostkey) == DROPBEAR_FAILURE) { 30 if (signature_type_from_name(algoname, algolen) == DROPBEAR_SIGNKEY_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,