Add rough support for choosing ciphers/hashes with "-c" or "-m"

This commit is contained in:
Matt Johnston
2012-05-17 00:12:42 +08:00
parent 10d7a35841
commit 036edd6206
7 changed files with 208 additions and 11 deletions

View File

@@ -47,6 +47,10 @@ typedef struct runopts {
int enable_compress;
#endif
#ifdef ENABLE_USER_ALGO_LIST
char *cipher_list;
char *mac_list;
#endif
} runopts;
@@ -148,4 +152,8 @@ typedef struct cli_runopts {
extern cli_runopts cli_opts;
void cli_getopts(int argc, char ** argv);
#ifdef ENABLE_USER_ALGO_LIST
void parse_ciphers_macs();
#endif
#endif /* _RUNOPTS_H_ */