diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-10-29 19:20:02 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-10-29 19:20:02 +0000 |
commit | 0c9dfffe5a19da330f3c2b6daa33c40aa786ba06 (patch) | |
tree | 6753fc75a167c7ed8b79271618232d79e10bca98 /src/or/eventdns.h | |
parent | c8a5e2d588e0d91fd13070dc0ee4d6b19de779c3 (diff) | |
download | tor-0c9dfffe5a19da330f3c2b6daa33c40aa786ba06.tar.gz tor-0c9dfffe5a19da330f3c2b6daa33c40aa786ba06.zip |
Implement the 0x20-hack to make DNS poisoning harder against us, especially when resolving large names. Add a cfg option to disable it, since apparently 3/10 of a percent of servers get it wrong.
svn:r17171
Diffstat (limited to 'src/or/eventdns.h')
-rw-r--r-- | src/or/eventdns.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/eventdns.h b/src/or/eventdns.h index 5073c797a5..d1c34ade7c 100644 --- a/src/or/eventdns.h +++ b/src/or/eventdns.h @@ -283,6 +283,7 @@ typedef void (*evdns_debug_log_fn_type)(int is_warning, const char *msg); void evdns_set_log_fn(evdns_debug_log_fn_type fn); void evdns_set_transaction_id_fn(uint16_t (*fn)(void)); +void evdns_set_random_bytes_fn(void (*fn)(char *, size_t)); #define DNS_NO_SEARCH 1 |