summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2011-11-24Implement dynamic prime reading and storing to disk.George Kadianakis
2011-11-24Make DynamicPrimes SIGHUP-able.George Kadianakis
Instead of passing the DynamicPrimes configuration option to crypto_global_init(), generate and set a new TLS DH prime when we read the torrc.
2011-11-24Improve code in the dynamic primes realm.George Kadianakis
2011-11-24Improve logging.George Kadianakis
2011-11-24Make it compile.George Kadianakis
2011-11-24Rename "Rakshasa" to "Dynamic Prime".George Kadianakis
2011-11-24Introduce the DynamicPrimes configuration option.George Kadianakis
2011-11-24Copy/Paste Jake's stuff.George Kadianakis
This commit copies parts of Jake's f3bb6846975193d9a6649c31f94bda47e4014070 commit verbatim to the current master.
2011-11-24appease check-spacesSebastian Hahn
2011-11-24Fix compile warning in tor_inet_pton() (on 64bit)Sebastian Hahn
This slipped through into 0.2.3.8-alpha unfortunately.
2011-11-23Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-11-23Merge remote-tracking branch 'public/bug4230' into maint-0.2.2Nick Mathewson
2011-11-20Sockets are unsigned on windowsSebastian Hahn
this gets rid of a warning about signed/unsigned comparison This is a backport of 0a5338e03cdf14ef80584c6ff8adeb49200b8a76 that accidentally only went into master
2011-11-20Get rid of an unused parameter warning on winSebastian Hahn
This is a backport of bed79c47f4ec0ee72b19e2b81c54131d516d07ef which accidentally only went into master
2011-11-19Minor tor_inet_pton bug fixesAnders Sundman
In particular: * Disallow "0x10::" * Don't blow up on ":" * Disallow "::10000"
2011-11-16Merge branch 'bug4457_master'Nick Mathewson
2011-11-16Fix a check-spaces complaintSebastian Hahn
2011-11-16Don't allow building on platforms where AF_UNSPEC != 0Sebastian Hahn
2011-11-15Make certificate skew into a protocol warningNick Mathewson
2011-11-15Allow up to a 30 days future skew, 48 hours past skew in certs.Nick Mathewson
2011-11-15Fix compile warnings on windowsSebastian Hahn
2011-11-14Disable IOCP and retry event_base_new_with_config once on failureNick Mathewson
This is a fancier bug4457 workaround for 0.2.3. In 0.2.2, we could just tell Libevent "Don't enable locking!" so it wouldn't try to make the event_base notifiable. But for IOCP, we need a notifiable base. (Eventually, we'll want a notifiable base for other stuff, like multithreaded crypto.) So the solution is to try a full-featured initialization, and then retry with all the options turned off if that fails.
2011-11-14Merge remote-tracking branch 'public/bug4457_022' into bug4457_masterNick Mathewson
Conflicts: src/common/compat_libevent.c Resolving conflict by not taking 7363eae13cb8 ("Use the EVENT_BASE_FLAG_NOLOCK flag to prevent socketpair() invocation"): in Tor 0.2.3.x, we _do_ sometimes use notifiable event bases.
2011-11-14Detect failure from event_init() or event_base_new_with_config()Nick Mathewson
2011-11-14Use the EVENT_BASE_FLAG_NOLOCK flag to prevent socketpair() invocationNick Mathewson
In Tor 0.2.2, we never need the event base to be notifiable, since we don't call it from other threads. This is a workaround for bug 4457, which is not actually a Tor bug IMO.
2011-11-14Merge remote-tracking branch '4ZM/topic/test/4433_address'Nick Mathewson
2011-11-11Remove the torint.h include from aes.hSebastian Hahn
This hasn't been needed for a while, there's nothing in aes.h now that would need uint* stuff.
2011-11-11Remove vestiges of RIJNDAEL_COUNTER_OPTIMIZATIONNick Mathewson
2011-11-11Stop using "u32" and "u8" in aes.cNick Mathewson
2011-11-11Dump our internal AES implementationNick Mathewson
This thing was pretty pointless on versions of OpenSSL 0.9.8 and later, and almost totally pointless on OpenSSL 1.0.0. Also, favor EVP by default, since it lets us get hardware acceleration where present. (See issue 4442)
2011-11-11Return value bugfix of tor_addr_to_PTR_nameAnders Sundman
Returns value semantics was inconsitent between IPv4 and IPv6
2011-11-11Fixed buffer bounds check bug in tor_addr_to_strAnders Sundman
2011-11-11Fixed of-by-one error in tor_inet_ntopAnders Sundman
The of-by-one error could lead to 1 byte buffer over runs IPv6 for addresses.
2011-11-09Correct the handling of overflow behavior in smartlist_ensure_capacityNick Mathewson
The old behavior was susceptible to the compiler optimizing out our assertion check, *and* could still overflow size_t on 32-bit systems even when it did work.
2011-11-09Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-11-09Don't warn when compiling with --disable-threadsSebastian Hahn
STMT_VOID semantics suggested by nick, thanks!
2011-11-03Remove some duplicate includesAndrea Gelmini
2011-10-28Fix a memory-poisoning memset in tortls.cNick Mathewson
2011-10-27Merge branch 'maint-0.2.2_secfix' into master_secfixSebastian Hahn
Conflicts: src/common/tortls.c src/or/connection_or.c src/or/dirserv.c src/or/or.h
2011-10-26Merge branch 'maint-0.2.1_secfix' into maint-0.2.2_secfixSebastian Hahn
Conflicts: src/or/connection_or.c
2011-10-26Don't send a certificate chain on outgoing TLS connections from non-relaysNick Mathewson
2011-10-26Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-10-26Properly refcount client_identity_keySebastian Hahn
In a2bb0bf we started using a separate client identity key. When we are in "public server mode" (that means not a bridge) we will use the same key. Reusing the key without doing the proper refcounting leads to a segfault on cleanup during shutdown. Fix that. Also introduce an assert that triggers if our refcount falls below 0. That should never happen.
2011-10-26Make crypto_free_pk_env tolerate NULL arg in 0.2.1. Error-proofing against ↵Nick Mathewson
bug 988 backport
2011-10-26Maintain separate server and client TLS contexts.Robert Ransom
Fixes bug #988. Conflicts: src/or/main.c src/or/router.c
2011-10-26Refactor tor_tls_context_new:Robert Ransom
* Make tor_tls_context_new internal to tortls.c, and return the new tor_tls_context_t from it. * Add a public tor_tls_context_init wrapper function to replace it. Conflicts: src/or/main.c src/or/router.c
2011-10-26Fix zlib macro brokenness on osx with zlib 1.2.4 and higher.Nick Mathewson
From the code: zlib 1.2.4 and 1.2.5 do some "clever" things with macros. Instead of saying "(defined(FOO) ? FOO : 0)" they like to say "FOO-0", on the theory that nobody will care if the compile outputs a no-such-identifier warning. Sorry, but we like -Werror over here, so I guess we need to define these. I hope that zlib 1.2.6 doesn't break these too. Possible fix for bug 1526.
2011-10-23Fix a reference-leak in tor_tls_received_v3_certificateNick Mathewson
We were calling SSL_get_peer_certificate but not X509_free. This is a major part of bug4252; the bug has been in no released version.
2011-10-23Fix memory leak in prop176 codeNick Mathewson
This fixes part of bug4252. Bug not in any released version.
2011-10-11Stop using addr_port_lookup as an address splitting functionNick Mathewson
It's too risky to have a function where if you leave one parameter NULL, it splits up address:port strings, but if you set it, it does hostname resolution.