diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-06-30 10:51:58 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-06-30 10:51:58 +0200 |
commit | dd1d4b33c086fb13a27ee30b253adee88614f780 (patch) | |
tree | 397ab0e98ecbd4ecd28472e4380a7a24902e377a /src/options.h | |
parent | 76ad717ca068d9af838c346aca792e9d3afd6026 (diff) |
preparations for use of multiple hash algos for challenge response
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/options.h')
-rw-r--r-- | src/options.h | 10 |
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 */ |