diff fuzzer-verify.c @ 1688:e01f9ec6d177

Fix untested rsa-sha256 change to fuzzer-verify
author Matt Johnston <matt@ucc.asn.au>
date Tue, 26 May 2020 23:13:23 +0800
parents d5cdc60db08e
children
line wrap: on
line diff
--- a/fuzzer-verify.c	Tue May 26 20:15:39 2020 +0800
+++ b/fuzzer-verify.c	Tue May 26 23:13:23 2020 +0800
@@ -2,6 +2,7 @@
 #include "session.h"
 #include "fuzz-wrapfd.h"
 #include "debug.h"
+#include "dss.h"
 
 static void setup_fuzzer(void) {
 	fuzz_common_setup();
@@ -32,7 +33,7 @@
 			enum signature_type sigtype;
 			if (keytype == DROPBEAR_SIGNKEY_RSA) {
 				/* Flip a coin to decide rsa signature type */
-				int flag = buf_getbyte(fuzz_input);
+				int flag = buf_getbyte(fuzz.input);
 				if (flag & 0x01) {
 					sigtype = DROPBEAR_SIGNATURE_RSA_SHA256;
 				} else {