summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2014-12-30Fix a memory leak in tor-resolveNick Mathewson
Resolves bug 14050
2014-12-30Remove a logically dead check to please coverityNick Mathewson
2014-12-29Wipe all of the target space in tor_addr_{to,from}_sockaddr()Nick Mathewson
Otherwise we risk a subsequent memdup or memcpy copying uninitialized RAM into some other place that might eventually expose it. Let's make sure that doesn't happen. Closes ticket 14041
2014-12-29Merge branch 'resolvemyaddr_squashed'Nick Mathewson
2014-12-29Adding comprehensive test cases for resolve_my_address.rl1987
Also, improve comments on resolve_my_address to explain what it actually does.
2014-12-29Fix a few commentsrl1987
2014-12-23tweak whitespace; log bad socket family if bug occursNick Mathewson
2014-12-23Add the transparent proxy getsockopt to the sandboxFrancisco Blas Izquierdo Riera (klondike)
When receiving a trasnsparently proxied request with tor using iptables tor dies because the appropriate getsockopt calls aren't enabled on the sandbox. This patch fixes this by adding the two getsockopt calls used when doing transparent proxying with tor to the sandbox for the getsockopt policy. This patch is released under the same license as the original file as long as the author is credited. Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
2014-12-22Merge remote-tracking branch 'origin/maint-0.2.5'Nick Mathewson
2014-12-22Merge remote-tracking branch 'public/bug14013_024' into maint-0.2.5Nick Mathewson
2014-12-22When decoding a base-{16,32,64} value, clear the target buffer firstNick Mathewson
This is a good idea in case the caller stupidly doesn't check the return value from baseX_decode(), and as a workaround for the current inconsistent API of base16_decode. Prevents any fallout from bug 14013.
2014-12-21Make log bufer 10k, not 9.78k.teor
2014-12-21Fix a comment in tor_addr_parseteor
2014-12-19Define an int64_min when it is missingNick Mathewson
2014-12-10Add better support to obfuscate statistics.Karsten Loesing
2014-12-02Constify crypto_pk_get_digest().George Kadianakis
2014-11-27Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold'Nick Mathewson
Conflicts: src/or/or.h src/test/Makefile.nmake
2014-11-12Merge remote-tracking branch 'public/bug7484'Nick Mathewson
Conflicts: src/test/test_addr.c
2014-11-12Replace operators used as macro arguments with OP_XX macrosNick Mathewson
Part of fix for 13172
2014-11-12Merge branch 'ticket13172'Nick Mathewson
2014-11-09Downgrade RSA signature verification failure error message to info loglevel.rl1987
2014-11-06Define macros meaning <,>,==,!=,<=,>=Nick Mathewson
This lets us avoid putting operators directly in macro arguments, and thus will help us unconfuse coccinelle. For ticket 13172.
2014-11-0511291: Fix warnings, add changes file, rename 'mask'.Nick Mathewson
2014-11-05Merge remote-tracking branch 'meejah/ticket-11291-extra-utests'Nick Mathewson
Conflicts: src/or/config.c
2014-11-04Merge branch 'bug13315_squashed'Nick Mathewson
Conflicts: src/or/buffers.c
2014-11-04fix indentationNick Mathewson
2014-11-04Use correct argument types for inet_pton.Nick Mathewson
(I blame whoever decided that using a void* for a union was a good idea.)
2014-11-04Checking if FQDN is actually IPv6 address string and handling that case.rl1987
2014-11-04Adding helper function that checks if string is a valid IPv6 address.rl1987
2014-11-04Introducing helper function to validate IPv4 address strings.rl1987
2014-11-04Introducing helper function to validate DNS name strings.rl1987
2014-11-02Use tor_malloc_zero(x), not tor_calloc(x,sizeof(char))Nick Mathewson
(Also, fixes a wide line.)
2014-11-02Apply new calloc coccinelle patchNick Mathewson
2014-11-02Use the | trick to save a comparison in our calloc check.Nick Mathewson
2014-11-02Switch to a < comparison for our calloc check; explain how it worksNick Mathewson
2014-11-02Document the calloc function overflow check.Mansour Moufid
2014-11-02Remove a duplicate comment.Mansour Moufid
2014-11-02Refactor the tor_reallocarray_ overflow check.Mansour Moufid
2014-11-02Refactor the tor_calloc_ overflow check.Mansour Moufid
2014-10-31Refactor {str,digest}map into a common implementation; add digest256mapNick Mathewson
Needed for #13399.
2014-10-30Silence spurious clang warningsteor
Silence clang warnings under --enable-expensive-hardening, including: + implicit truncation of 64 bit values to 32 bit; + const char assignment to self; + tautological compare; and + additional parentheses around equality tests. (gcc uses these to silence assignment, so clang warns when they're present in an equality test. But we need to use extra parentheses in macros to isolate them from other code).
2014-10-28Add another year to our copyright dates.Nick Mathewson
Because in 95 years, we or our successors will surely care about enforcing the BSD license terms on this code. Right?
2014-10-27Remove configure option to disable curve25519Sebastian Hahn
By now, support in the network is widespread and it's time to require more modern crypto on all Tor instances, whether they're clients or servers. By doing this early in 0.2.6, we can be sure that at some point all clients will have reasonable support.
2014-10-23Fix minor typos, two line lengths, and a repeated includeteor
2014-10-22Merge remote-tracking branch 'public/bug11824_v2'Nick Mathewson
2014-10-22Merge remote-tracking branch 'public/ticket6938'Nick Mathewson
Conflicts: src/tools/tor-resolve.c
2014-10-21Merge remote-tracking branch 'teor/bug13476-improve-time-handling'Nick Mathewson
2014-10-20Merge remote-tracking branch 'teor/memwipe-more-keys'Nick Mathewson
2014-10-20Use a macro to indicate "The ecdhe group we use by default".Nick Mathewson
This might make Coverity happier about the if statement where we have a default case that's the same as one of the other cases. CID 1248515
2014-10-20Memwipe more keys after tor has finished with themteor
Ensure we securely wipe keys from memory after crypto_digest_get_digest and init_curve25519_keypair_from_file have finished using them. Fixes bug 13477.