aboutsummaryrefslogtreecommitdiff
path: root/src/options.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2019-07-06 01:43:10 +0200
committerToni Uhlig <matzeton@googlemail.com>2019-07-06 01:43:10 +0200
commit7977be8365673f7f47c1e45f0508f099b7b94246 (patch)
tree58fa4fd528cc612c232d30ea7a7cf1060fa20420 /src/options.h
parent012a207b03ce131b7edd7360d9322f0bc02bfaab (diff)
parentc64928e8e0211edf2ccfa628dfa41e5bd62ef8ae (diff)
Merge branch 'master' into coverity_scan
Diffstat (limited to 'src/options.h')
-rw-r--r--src/options.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/options.h b/src/options.h
index 9c2ca3f..5551426 100644
--- a/src/options.h
+++ b/src/options.h
@@ -75,6 +75,10 @@ struct options {
/** Device to capture packets from */
char *pcap_device;
#endif
+ /** Force MD5 based challenge response. */
+ int force_md5;
+ /** Force SHA512 based challenge response. */
+ int force_sha512;
/** List all available pcap devices and exit */
int list_pcap_devices;
/** Usually stdout, but can be altered by the user */
@@ -84,8 +88,10 @@ struct options {
int print_stats;
/** Password (must be the same on proxy and client for authentica tion to succeed) */
char *password;
- /** MD5 digest of challenge+password */
- md5_byte_t password_digest[kMD5_digest_size];
+ /** MD5 digest of password */
+ md5_byte_t md5_password_digest[kMD5_digest_size];
+ /** SHA512 digest of password */
+ unsigned char sha512_password_digest[kSHA512_digest_size];
/** use UDP instead of ICMP */
int udp;
/** unpriviledged mode */