Mercurial > dropbear
comparison fuzz-common.c @ 1353:f3c8975de38e fuzz
setup svr_dropbear_exit
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 18 May 2017 23:36:54 +0800 |
parents | 2722f2347a48 |
children | 3677a510f545 |
comparison
equal
deleted
inserted
replaced
1352:66c1cfd5e100 | 1353:f3c8975de38e |
---|---|
4 | 4 |
5 #include "includes.h" | 5 #include "includes.h" |
6 #include "fuzz.h" | 6 #include "fuzz.h" |
7 #include "dbutil.h" | 7 #include "dbutil.h" |
8 #include "runopts.h" | 8 #include "runopts.h" |
9 #include "crypto_desc.h" | |
10 #include "session.h" | |
9 | 11 |
10 struct dropbear_fuzz_options fuzz; | 12 struct dropbear_fuzz_options fuzz; |
11 | 13 |
12 static void load_fixed_hostkeys(void); | 14 static void load_fixed_hostkeys(void); |
13 | 15 |
18 | 20 |
19 void svr_setup_fuzzer(void) { | 21 void svr_setup_fuzzer(void) { |
20 struct passwd *pw; | 22 struct passwd *pw; |
21 | 23 |
22 common_setup_fuzzer(); | 24 common_setup_fuzzer(); |
25 | |
26 _dropbear_exit = svr_dropbear_exit; | |
27 _dropbear_log = svr_dropbear_log; | |
23 | 28 |
24 char *argv[] = { | 29 char *argv[] = { |
25 "-E", | 30 "-E", |
26 }; | 31 }; |
27 | 32 |