use sigtype where appropriate

This commit is contained in:
Matt Johnston
2020-04-06 23:18:26 +08:00
parent 90cfbe1f7a
commit 7dc2f36c3e
18 changed files with 233 additions and 142 deletions

View File

@@ -27,7 +27,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
unsigned int algolen;
char* algoname = buf_getstring(keyblob, &algolen);
if (have_algo(algoname, algolen, sshhostkey) == DROPBEAR_FAILURE) {
if (signature_type_from_name(algoname, algolen) == DROPBEAR_SIGNKEY_NONE) {
dropbear_exit("fuzzer imagined a bogus algorithm");
}