Mercurial > dropbear
comparison runopts.h @ 1347:b28624698130 fuzz
copy over some fuzzing code from AFL branch
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 12 May 2017 23:14:54 +0800 |
parents | 9169e4e7cbee |
children | 5c2899e35b63 |
comparison
equal
deleted
inserted
replaced
1346:78b7e0634117 | 1347:b28624698130 |
---|---|
56 #ifdef ENABLE_USER_ALGO_LIST | 56 #ifdef ENABLE_USER_ALGO_LIST |
57 char *cipher_list; | 57 char *cipher_list; |
58 char *mac_list; | 58 char *mac_list; |
59 #endif | 59 #endif |
60 | 60 |
61 #ifdef DROPBEAR_FUZZ | |
62 struct { | |
63 int fuzzing; | |
64 | |
65 // to record an unencrypted stream | |
66 FILE* recordf; | |
67 | |
68 // fuzzing input | |
69 buffer *input; | |
70 | |
71 // dropbear_exit() jumps back | |
72 sigjmp_buf jmp; | |
73 | |
74 uid_t pw_uid; | |
75 gid_t pw_gid; | |
76 char* pw_name; | |
77 char* pw_dir; | |
78 char* pw_shell; | |
79 char* pw_passwd; | |
80 | |
81 } fuzz; | |
82 #endif | |
83 | |
61 } runopts; | 84 } runopts; |
62 | 85 |
63 extern runopts opts; | 86 extern runopts opts; |
64 | 87 |
65 int readhostkey(const char * filename, sign_key * hostkey, | 88 int readhostkey(const char * filename, sign_key * hostkey, |