Loading ChangeLog +5 −6 Original line number Diff line number Diff line Loading @@ -22,12 +22,11 @@ Changes in version 0.2.0.1-alpha - 2007-??-?? logging information that would be very useful to an attacker. - Start work implementing proposal 103: Add a standalone tool to generate key certificates. - Initial implementation of a client-side DNS proxy feature to replace the need for dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen for DNS requests on port 9999, use the Tor network to resolve them anonymously, and send the reply back like a regular DNS server. The code is still buggy, undocumented, and only implements a subset of DNS. - A client-side DNS proxy feature to replace the need for dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen for DNS requests on port 9999, use the Tor network to resolve them anonymously, and send the reply back like a regular DNS server. The code is still only implements a subset of DNS. o Security fixes: - Directory authorities now call routers stable if they have an Loading src/common/compat.c +17 −2 Original line number Diff line number Diff line Loading @@ -807,7 +807,14 @@ tor_inet_aton(const char *c, struct in_addr* addr) #endif } /** DOCDOC */ /** Given <b>af</b>==AF_INET and <b>src</b> a struct in_addr, or * <b>af</b>==AF_INET6 and <b>src</b> a struct in6_addr, try to format the * address and store it in the <b>len</b>-byte buffer <b>dst</b>. Returns * <b>dst</b> on success, NULL on failure. * * (Like inet_ntop(af,src,dst,len), but works on platforms that don't have it: * Tor sometimes needs to format ipv6 addresses even on platforms without ipv6 * support.) */ const char * tor_inet_ntop(int af, const void *src, char *dst, size_t len) { Loading Loading @@ -881,7 +888,15 @@ tor_inet_ntop(int af, const void *src, char *dst, size_t len) #endif } /** DOCDOC */ /** Given <b>af</b>==AF_INET or <b>af</b>==AF_INET6, and a string <b>src</b> * encoding an IPv4 address or IPv6 address correspondingly, try to parse the * address and store the result in <b>dst</b> (which must have space for a * struct in_addr or a struct in6_addr, as appropriate). Return 1 on success, * 0 on a bad parse, and -1 on a bad <b>af</b>. * * (Like inet_pton(af,src,dst) but works on platforms that don't have it: Tor * sometimes needs to format ipv6 addresses even on platforms without ipv6 * support.) */ int tor_inet_pton(int af, const char *src, void *dst) { Loading src/common/container.h +2 −2 Original line number Diff line number Diff line Loading @@ -78,8 +78,8 @@ extern INLINE void smartlist_set(smartlist_t *sl, int idx, void *val) { #define smartlist_set(sl, idx, val) ((sl)->list[idx] = (val)) #endif // void smartlist_swap(smartlist_t *sl, int idx1, int idx2); /**DOCDOC*/ /** Exchange the elements at indices <b>idx1</b> and <b>idx2</b> of the * smartlist <b>sl</b>. */ static INLINE void smartlist_swap(smartlist_t *sl, int idx1, int idx2) { if (idx1 != idx2) { Loading src/common/log.c +7 −2 Original line number Diff line number Diff line Loading @@ -88,10 +88,15 @@ int _log_global_min_severity = LOG_NOTICE; static void delete_log(logfile_t *victim); static void close_log(logfile_t *victim); /** DOCDOC */ /** Name of the application: used to generate the message we write at the * start of each new log. */ static char *appname = NULL; /** DOCDOC */ /** Set the "application name" for the logs to <b>name</b>: we'll use this * name in the message we write when starting up, and at the start of each new * log. * * Tor uses this string to write the version number to the log file. */ void log_set_application_name(const char *name) { Loading src/common/mempool.c +2 −1 Original line number Diff line number Diff line Loading @@ -498,8 +498,9 @@ mp_pool_assert_ok(mp_pool_t *pool) } #ifdef TOR /** Dump information about <b>pool</b>'s memory usage to the Tor log at level * <b>severity</b>. */ /*FFFF uses Tor logging functions. */ /**DOCDOC*/ void mp_pool_log_status(mp_pool_t *pool, int severity) { Loading Loading
ChangeLog +5 −6 Original line number Diff line number Diff line Loading @@ -22,12 +22,11 @@ Changes in version 0.2.0.1-alpha - 2007-??-?? logging information that would be very useful to an attacker. - Start work implementing proposal 103: Add a standalone tool to generate key certificates. - Initial implementation of a client-side DNS proxy feature to replace the need for dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen for DNS requests on port 9999, use the Tor network to resolve them anonymously, and send the reply back like a regular DNS server. The code is still buggy, undocumented, and only implements a subset of DNS. - A client-side DNS proxy feature to replace the need for dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen for DNS requests on port 9999, use the Tor network to resolve them anonymously, and send the reply back like a regular DNS server. The code is still only implements a subset of DNS. o Security fixes: - Directory authorities now call routers stable if they have an Loading
src/common/compat.c +17 −2 Original line number Diff line number Diff line Loading @@ -807,7 +807,14 @@ tor_inet_aton(const char *c, struct in_addr* addr) #endif } /** DOCDOC */ /** Given <b>af</b>==AF_INET and <b>src</b> a struct in_addr, or * <b>af</b>==AF_INET6 and <b>src</b> a struct in6_addr, try to format the * address and store it in the <b>len</b>-byte buffer <b>dst</b>. Returns * <b>dst</b> on success, NULL on failure. * * (Like inet_ntop(af,src,dst,len), but works on platforms that don't have it: * Tor sometimes needs to format ipv6 addresses even on platforms without ipv6 * support.) */ const char * tor_inet_ntop(int af, const void *src, char *dst, size_t len) { Loading Loading @@ -881,7 +888,15 @@ tor_inet_ntop(int af, const void *src, char *dst, size_t len) #endif } /** DOCDOC */ /** Given <b>af</b>==AF_INET or <b>af</b>==AF_INET6, and a string <b>src</b> * encoding an IPv4 address or IPv6 address correspondingly, try to parse the * address and store the result in <b>dst</b> (which must have space for a * struct in_addr or a struct in6_addr, as appropriate). Return 1 on success, * 0 on a bad parse, and -1 on a bad <b>af</b>. * * (Like inet_pton(af,src,dst) but works on platforms that don't have it: Tor * sometimes needs to format ipv6 addresses even on platforms without ipv6 * support.) */ int tor_inet_pton(int af, const char *src, void *dst) { Loading
src/common/container.h +2 −2 Original line number Diff line number Diff line Loading @@ -78,8 +78,8 @@ extern INLINE void smartlist_set(smartlist_t *sl, int idx, void *val) { #define smartlist_set(sl, idx, val) ((sl)->list[idx] = (val)) #endif // void smartlist_swap(smartlist_t *sl, int idx1, int idx2); /**DOCDOC*/ /** Exchange the elements at indices <b>idx1</b> and <b>idx2</b> of the * smartlist <b>sl</b>. */ static INLINE void smartlist_swap(smartlist_t *sl, int idx1, int idx2) { if (idx1 != idx2) { Loading
src/common/log.c +7 −2 Original line number Diff line number Diff line Loading @@ -88,10 +88,15 @@ int _log_global_min_severity = LOG_NOTICE; static void delete_log(logfile_t *victim); static void close_log(logfile_t *victim); /** DOCDOC */ /** Name of the application: used to generate the message we write at the * start of each new log. */ static char *appname = NULL; /** DOCDOC */ /** Set the "application name" for the logs to <b>name</b>: we'll use this * name in the message we write when starting up, and at the start of each new * log. * * Tor uses this string to write the version number to the log file. */ void log_set_application_name(const char *name) { Loading
src/common/mempool.c +2 −1 Original line number Diff line number Diff line Loading @@ -498,8 +498,9 @@ mp_pool_assert_ok(mp_pool_t *pool) } #ifdef TOR /** Dump information about <b>pool</b>'s memory usage to the Tor log at level * <b>severity</b>. */ /*FFFF uses Tor logging functions. */ /**DOCDOC*/ void mp_pool_log_status(mp_pool_t *pool, int severity) { Loading