aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAge
* Whitespace fixNick Mathewson2012-06-15
|
* Move tor_gettimeofday_cached() into compat_libeventNick Mathewson2012-06-15
|
* Refactor GETINFO process/descriptor-limitNick Mathewson2012-06-15
| | | | | Previously it duplicated some getrlimit code and content from compat.c; now it doesn't.
* Triage the XXX023 and XXX022 comments: postpone many.Nick Mathewson2012-06-15
|
* Change smartlist_create->smartlist_new in bug4744 branch as merged to masterNick Mathewson2012-06-13
|
* Merge branch 'bug4744_squashed'Nick Mathewson2012-06-13
|\
| * Implement the client side of proposal 198Nick Mathewson2012-06-13
| | | | | | | | | | | | | | | | | | | | | | | | This is a feature removal: we no longer fake any ciphersuite other than the not-really-standard SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA (0xfeff). This change will let servers rely on our actually supporting what we claim to support, and thereby let Tor migrate to better TLS ciphersuites. As a drawback, Tor instances that use old openssl versions and openssl builds with ciphers disabled will no longer give the "firefox" cipher list.
| * Change our ciphersuite list to match ff8Nick Mathewson2012-05-15
| |
| * get_mozilla_ciphers: look at ssl3con.c, not sslenum.cNick Mathewson2012-03-14
| |
| * get_mozilla_ciphers: output lowercase hex.Nick Mathewson2012-03-14
| |
| * Try to make get_mozilla_ciphers output the right macros in the right orderNick Mathewson2012-03-14
| |
| * Have get_mozilla_ciphers take sourcedirs as argumentsNick Mathewson2012-03-14
| |
| * Make get_mozilla_ciphers script a little more regexy and readableNick Mathewson2012-03-14
| |
| * Script to generate ciphers.inc by ArturoNick Mathewson2012-03-14
| |
* | Fix another clang compile warningSebastian Hahn2012-06-13
| | | | | | | | We forgot this when we fixed 5969.
* | Merge remote-tracking branch 'public/bug4592'Nick Mathewson2012-06-11
|\ \
| * | Treat SW_SERVER_HELLO_B as another sign of an SSL handshakeNick Mathewson2012-05-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We've been only treating SW_SERVER_HELLO_A as meaning that an SSL handshake was happening. But that's not right: if the initial attempt to write a ServerHello fails, we would get a callback in state SW_SERVER_HELLO_B instead. (That's "instead" and not "in addition": any failed attempt to write the hello will fail and cause the info callback not to get written.) Fix for bug 4592; bugfix on 0.2.0.13-alpha.
* | | Merge branch 'bug6097'Nick Mathewson2012-06-11
|\ \ \
| * | | Fix mingw build with -DUNICODE -D_UNICODENick Mathewson2012-06-07
| | | | | | | | | | | | | | | | | | | | This is a very blunt fix, and mostly just turns some func() calls into FuncA() to make things build again. Fixes bug 6097.
| * | | Be more careful calling wcstombsNick Mathewson2012-06-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function is not guaranteed to NUL-terminate its output. It *is*, however, guaranteed not to generate more than two bytes per multibyte character (plus terminating nul), so the general approach I'm taking is to try to allocate enough space, AND to manually add a NUL at the end of each buffer just in case I screwed up the "enough space" thing. Fixes bug 5909.
* | | | typo noticed by "_raptor"Roger Dingledine2012-06-07
|/ / /
* | | Merge remote-tracking branch 'public/getfilesize_64'Nick Mathewson2012-06-05
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/common/compat.c The getfilesize change conflicted with the removal of file_handle from the windows tor_mmap_t.
| * | | Use GetFileSize correctly on win32Nick Mathewson2012-05-24
| | | | | | | | | | | | | | | | | | | | (Use its second parameter to find the high 32 bits of the file size; check its return value for error conditions.)
* | | | Fix some mingw build warningsNick Mathewson2012-06-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These include: - Having a weird in_addr that can't be initialized with {0} - Needing INVALID_HANDLE_VALUE instead of -1 for file handles. - Having a weird dependent definition for struct stat. - pid is signed, not unsigned.
* | | | Merge remote-tracking branch 'public/bug3894'Nick Mathewson2012-06-05
|\ \ \ \
| * | | | Fix some more FreeBSD4 issues (based on a patch from grarpamp)Nick Mathewson2012-05-16
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Apparently, freebsd 4 doesn't like malloc.h, needs sys/param.h for MIN/MAX, and doesn't have a SIZE_MAX. For bug 3894.
* | | | Fix "make check-spaces" issuesNick Mathewson2012-06-05
| | | |
* | | | Resolve about 24 DOCDOCsNick Mathewson2012-06-05
| | | |
* | | | Missing copyright/license statement for procmon.cNick Mathewson2012-06-04
| | | |
* | | | Update copyright dates to 2012; add a few missing copyright statementsNick Mathewson2012-06-04
| | | |
* | | | Add about 60 more DOCDOC comments to 0.2.3Nick Mathewson2012-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, try to resolve some doxygen issues. First, define a magic "This is doxygen!" macro so that we take the correct branch in various #if/#else/#endifs in order to get the right documentation. Second, add in a few grouping @{ and @} entries in order to get some variables and fields to get grouped together.
* | | | Resolve some markup complaints from doxygenNick Mathewson2012-06-04
| | | |
* | | | Resolve all currently pending DOCDOC items in masterNick Mathewson2012-06-04
| | | |
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2012-06-04
|\ \ \ \
| * \ \ \ Merge remote-tracking branch 'public/bug6033' into maint-0.2.2Nick Mathewson2012-06-04
| |\ \ \ \
| | * | | | Work around a bug in OpenSSL 1.0.1's TLS 1.1 and TLS 1.2 supportNick Mathewson2012-06-02
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It appears that when OpenSSL negotiates a 1.1 or 1.2 connection, and it decides to renegotiate, the client will send a record with version "1.0" rather than with the current TLS version. This would cause the connection to fail whenever both sides had OpenSSL 1.0.1, and the v2 Tor handshake was in use. As a workaround, disable TLS 1.1 and TLS 1.2. When a later version of OpenSSL is released, we can make this conditional on running a fixed version of OpenSSL. Alternatively, we could disable TLS 1.1 and TLS 1.2 only on the client side. But doing it this way for now means that we not only fix TLS with patched clients; we also fix TLS when the server has this patch and the client does not. That could be important to keep the network running well. Fixes bug 6033.
* | | | | Merge remote-tracking branch 'public/bug5089'Nick Mathewson2012-05-31
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/test/test_util.c Merge the unit tests; I added some when I did this branch against 0.2.2, and then the test format changed and master added more tests.
| * | | | | Have get_parent_directory() handle "/foo" and "/" correctly.Nick Mathewson2012-05-24
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The parent of "/foo" is "/"; and "/" is its own parent. This would cause Tor to fail if you tried to have a PF_UNIX control socket in the root directory. That would be a stupid thing to do for other reasons, but there's no reason to fail like _this_. Bug found by Esteban Manchado Velázquez. Fix for bug 5089; bugfix on Tor 0.2.2.26-beta. Unit test included.
* | | | | Merge remote-tracking branch 'public/close_file_mapping'Nick Mathewson2012-05-31
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/common/compat.h Conflict was between replacement of MS_WINDOWS with _WIN32 in master, and with removal of file_handle from tor_mmap_t struct in close_file_mapping branch (for bug 5951 fix).
| * | | | | reindent CreateFile arguments.Nick Mathewson2012-05-31
| | | | | |
| * | | | | Close the windows file handle after CreateFileMapping; it isn't neededNick Mathewson2012-05-23
| |/ / / / | | | | | | | | | | | | | | | I did the changes file; the rest came pseudonymously
* | | | | Merge remote-tracking branch 'linus/bug5355_ln'Nick Mathewson2012-05-31
|\ \ \ \ \
| * | | | | Don't stomp on errno.Linus Nordberg2012-05-29
| | | | | |
| * | | | | Refactor new getcwd codeNick Mathewson2012-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that the "path_length *= 2" statement can't overflow. Move the "malloc and getcwd" loop into its own function.
| * | | | | Stop using MAX_PATH, it might not be definedSebastian Hahn2012-03-10
| | | | | | | | | | | | | | | | | | | | | | | | This broke compilation on Hurd
* | | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2012-05-31
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | (For bug 5969 fix)
| * | | | | Fix more clang format-nonliteral warnings (bug 5969)Nick Mathewson2012-05-30
| | | | | |
| * | | | | Add __attribute__(format)s for our varargs printf/scanf wrappersNick Mathewson2012-05-30
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that if you set the third argument of __attribute__(format) to 0, GCC and Clang will check the format argument without expecting to find variadic arguments. This is the correct behavior for vsnprintf, vasprintf, and vscanf. I'm hoping this will fix bug 5969 (a clang warning) by telling clang that the format argument to tor_vasprintf is indeed a format string.
* | | | | Fix clang 3.1 compile warning in crypto.cSebastian Hahn2012-05-30
| | | | | | | | | | | | | | | | | | | | (Tweaked by nickm)
* | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2012-05-16
|\| | | |