summaryrefslogtreecommitdiff
path: root/src/common/tortls.c
AgeCommit message (Collapse)Author
2008-01-21We accidentally enabled the under-development v2 TLS handshakeRoger Dingledine
code, which is causing log entries like "TLS error while renegotiating handshake". Disable it again. Resolves bug 590. svn:r13219
2008-01-21 r17717@catbus: nickm | 2008-01-21 17:09:23 -0500Nick Mathewson
Fix certificate leak. svn:r13218
2008-01-16 r17639@catbus: nickm | 2008-01-15 19:09:21 -0500Nick Mathewson
Fix some hard to trigger but nonetheless real memory leaks spotted by an anonymous contributor. Needs review. Partial backport candidate. svn:r13147
2008-01-10minor cleanupsRoger Dingledine
svn:r13095
2008-01-07 r17490@catbus: nickm | 2008-01-07 11:48:02 -0500Nick Mathewson
Fix bug 582: decref the idcert when we add it to the store. svn:r13052
2008-01-06 r17473@catbus: nickm | 2008-01-05 22:15:05 -0500Nick Mathewson
Add a reverse mapping from SSL to tor_tls_t*: we need this in order to do a couple of things the sensible way from inside callbacks. Also, add a couple of missing cases in connection_or.c svn:r13040
2007-12-31 r15767@tombo: nickm | 2007-12-31 16:06:27 -0500Nick Mathewson
Note an unfreed cert svn:r13008
2007-12-12clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine
svn:r12786
2007-12-08 r15223@tombo: nickm | 2007-12-07 23:41:21 -0500Nick Mathewson
Aaand, do the code to enable the client side of the new TLS handshake. There are some loose ends that need tying up in connection_or, and a lot of half-baked code to remove, and some special cases to test for, and lots and lots of testing to do, but that is what weekends are for. svn:r12721
2007-12-03 r16919@catbus: nickm | 2007-12-03 12:59:02 -0500Nick Mathewson
Add DHE-RSA-AES256-SHA to the list of ciphers encountered from v1 connections. svn:r12652
2007-12-01 r15088@tombo: nickm | 2007-11-30 23:47:29 -0500Nick Mathewson
Add support to get a callback invoked when the client renegotiate a connection. Also, make clients renegotiate. (not enabled yet, until they detect that the server acted like a v2 server) svn:r12623
2007-12-01 r15087@tombo: nickm | 2007-11-30 22:32:26 -0500Nick Mathewson
Start getting freaky with openssl callbacks in tortls.c: detect client ciphers, and if the list doesn't look like the list current Tors use, present only a single cert do not ask for a client cert. Also, support for client-side renegotiation. None of this is enabled unless you define V2_HANDSHAKE_SERVER. svn:r12622
2007-11-14 r16669@catbus: nickm | 2007-11-14 14:50:03 -0500Nick Mathewson
When we complete an OR handshake, set up all the internal fields and mark the connection as open. svn:r12495
2007-11-07 r16523@catbus: nickm | 2007-11-07 11:35:49 -0500Nick Mathewson
Improve "tls error. breaking" message a little. svn:r12411
2007-11-07a note from steven about how to set up a private test networkRoger Dingledine
without link encryption. svn:r12410
2007-11-06 r16455@catbus: nickm | 2007-11-06 12:48:00 -0500Nick Mathewson
Parse CERT cells and act correctly when we get them. svn:r12396
2007-11-05 r16432@catbus: nickm | 2007-11-05 14:18:57 -0500Nick Mathewson
Send and parse link_auth cells properly. svn:r12386
2007-11-05 r16413@catbus: nickm | 2007-11-05 13:14:18 -0500Nick Mathewson
Add functions to encode certificates svn:r12384
2007-11-05 r16412@catbus: nickm | 2007-11-05 11:45:17 -0500Nick Mathewson
Make TLS contexts reference-counted, and add a reference from TLS objects to their corresponding context. This lets us reliably get the certificates for a given TLS connection, even if we have rotated TLS contexts. svn:r12383
2007-11-05 r16411@catbus: nickm | 2007-11-05 11:27:37 -0500Nick Mathewson
Remember X509 certificates in the context. Store peer/self certificate digests in handshake state. svn:r12382
2007-11-05 r16410@catbus: nickm | 2007-11-05 10:54:29 -0500Nick Mathewson
Code to remember client_random and server_random values, and to compute hmac using TLS master secret. svn:r12381
2007-10-31 r16302@catbus: nickm | 2007-10-31 16:45:16 -0400Nick Mathewson
Clean spaces. svn:r12301
2007-10-30 r16285@catbus: nickm | 2007-10-30 17:43:25 -0400Nick Mathewson
Implement (but do not enable) link connection version negotiation svn:r12286
2007-10-25 r16159@catbus: nickm | 2007-10-25 12:53:38 -0400Nick Mathewson
Drop support for OpenSSL 0.9.6. svn:r12191
2007-10-22 r15997@catbus: nickm | 2007-10-21 20:25:40 -0400Nick Mathewson
New code (disabled for now) to use the SSL context's cert store instead of using its "extra chain cert" list to get our identity certificate sent. This is a little close to what OpenSSL expects people to do, and it has the advantage that we should be able to keep the id cert from being sent by setting the NO_CHAIN_CERT bit. I have tried turning new code on, and it seemed to work fine. svn:r12086
2007-07-29 r13988@catbus: nickm | 2007-07-29 16:32:36 -0400Nick Mathewson
Cheesy attempt to break some censorware. Not a long-term fix, but it will be intersting to watch the epidemiology of the workarounds as the censors apply them. svn:r10975
2007-05-24 r12936@catbus: nickm | 2007-05-24 14:12:34 -0400Nick Mathewson
Review XXXX comments without a version; upgrade some to XXXX020. svn:r10315
2007-05-04fix some code comments, a wrapper, and add a todo itemRoger Dingledine
svn:r10111
2007-04-30 r12595@catbus: nickm | 2007-04-30 18:32:34 -0400Nick Mathewson
Move private function declarations from crypto.c into a new #ifdef CRYPTO_PRIVATE block in crypto.h svn:r10074
2007-02-16 r11832@catbus: nickm | 2007-02-16 15:31:59 -0500Nick Mathewson
Fix 35 remaining DOCDOC comments. Yowza. svn:r9596
2007-02-12 r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson
Update copyright dates. svn:r9570
2007-02-12 r11773@catbus: nickm | 2007-02-12 15:18:48 -0500Nick Mathewson
Implement proposal 106: stop requiring clients to have certificates, and stop checking for nicknames in certificates. [See proposal 106 for rationale.] Also improve messages when checking TLS handshake, to re-resolve bug 382. svn:r9568
2007-02-02 r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson
Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch! svn:r9477
2007-01-30 r11607@catbus: nickm | 2007-01-30 17:19:27 -0500Nick Mathewson
Audit non-const char arguments; make a lot more of them const. svn:r9466
2007-01-15 r11966@Kushana: nickm | 2007-01-15 16:12:17 -0500Nick Mathewson
Tidy up ORCONN reason patch from Mike Perry. Changes: make some of the handling of TLS error codes less error prone. Enforce house style wrt spaces. Make it compile with --enable-gcc-warnings. Only set or_conn->tls_error in the case of an actual error. Add a changelog entry. svn:r9355
2007-01-15 r11957@Kushana: nickm | 2007-01-15 15:25:57 -0500Nick Mathewson
Patch from Mike Perry: Track reasons for OR connection failure; display them in control events. Needs review and revision. svn:r9354
2007-01-09apparently i think of comments with no whitespace around them asRoger Dingledine
"read this if you don't understand the code and want some help." which is not the same as "hey, you think you understand this code, but you don't." svn:r9307
2007-01-09Fix an assert error introduced in 0.1.2.5-alpha: if a single TLSRoger Dingledine
connection handles more than 4 gigs in either direction, we assert. svn:r9306
2007-01-05more progress and cleanupsRoger Dingledine
svn:r9269
2006-12-29 r11741@Kushana: nickm | 2006-12-28 22:41:29 -0500Nick Mathewson
Count TLS bytes accurately: previously, we counted only the number of bytes read or transmitted via tls, not the number of extra bytes used to do so. This has been a lonstanding wart. The fix "Works for me". svn:r9207
2006-12-13 r11566@Kushana: nickm | 2006-12-13 17:46:24 -0500Nick Mathewson
Try to fix an assert failure in new write limiting code: make buffers.c aware of previous "forced" write sizes from tortls. svn:r9105
2006-10-07 r8923@totoro: nickm | 2006-10-07 11:44:33 -0400tor-0.1.2.2-alphaNick Mathewson
More doxygen comments svn:r8637
2006-09-19Merge in some bsockets calls, all wrapped inside #if defined(USE_BSOCKETS)Nick Mathewson
svn:r8427
2006-08-31 r8696@Kushana: nickm | 2006-08-31 14:43:44 -0400Nick Mathewson
Try to appease some warnings with newer gccs that believe that ignoring a return value is okay, but casting a return value and then ignoring it is a sign of madness. svn:r8312
2006-07-04ok, i'm not allowed to say that there. oh well.Roger Dingledine
svn:r6720
2006-07-04fix a misleading function commentRoger Dingledine
svn:r6717
2006-07-04if we're the server-side of the tls and there are problems,Roger Dingledine
don't yell as loudly. svn:r6716
2006-06-07and now the exciting part: there is now no such thing as doingRoger Dingledine
a client-only tls, that is, one with no certs. svn:r6558
2006-06-07simplify the tortls api: we only support being a "server", thatRoger Dingledine
is, even tor clients do the same sort of handshake. this has been true for years, so it's best to get rid of the stale code. svn:r6557
2006-06-07looks like we missed a piece of the 0.1.1.9 paranoia code.Roger Dingledine
hopefully this change is a no-op. svn:r6556