aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Expand)AuthorAge
* Merge branch 'cov217_master'Nick Mathewson2011-07-01
|\
| * Replace 4 more sscanf()s with tor_sscanf()•••For some inexplicable reason, Coverity departs from its usual standards of avoiding false positives here, and warns about all sscanf usage, even when the formatting strings are totally safe. Addresses CID # 447, 446. Nick Mathewson2011-07-01
* | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-07-01
|\ \ | |/ |/|
| * Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-07-01
| |\
| | * Fix insanely large stack_allocation in log_credential_status•••I'm not one to insist on C's miserly stack limits, but allocating a 256K array on the stack is too much even for me. Bugfix on 0.2.1.7-alpha. Found by coverity. Fixes CID # 450. Nick Mathewson2011-07-01
* | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-22
|\| |
| * | Improve documentation of smartlist_split_stringRobert Ransom2011-06-22
| * | Fix minor comment issuesRobert Ransom2011-06-22
* | | Log SSL state changes at LOG_DEBUG, LD_HANDSHAKE.•••This can be slightly useful for debugging blocking events. Addresses ticket 3116; based on loud_ssl_states branch. Nick Mathewson2011-06-20
* | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-20
|\| |
| * | Fix overwide lines in util.cNick Mathewson2011-06-20
* | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-14
|\| |
| * | Make ControlSocketsGroupWritable work with User.•••Original message from bug3393: check_private_dir() to ensure that ControlSocketsGroupWritable is safe to use. Unfortunately, check_private_dir() only checks against the currently running user… which can be root until privileges are dropped to the user and group configured by the User config option. The attached patch fixes the issue by adding a new effective_user argument to check_private_dir() and updating the callers. It might not be the best way to fix the issue, but it did in my tests. (Code by lunar; changelog by nickm) Jérémy Bobbio2011-06-14
* | | Merge remote-tracking branch 'asn2/bug3336'Nick Mathewson2011-06-06
|\ \ \
| * | | Add the heartbeat domain in log.c:domain_list[]•••so that parse_log_domain() doesn't fail. George Kadianakis2011-06-05
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-06
|\ \ \ \ | | |/ / | |/| |
| * | | Check maximum properly in crypto_rand_int()•••George Kadianakis notes that if you give crypto_rand_int() a value above INT_MAX, it can return a negative number, which is not what the documentation would imply. The simple solution is to assert that the input is in [1,INT_MAX+1]. If in the future we need a random-value function that can return values up to UINT_MAX, we can add one. Fixes bug 3306; bugfix on 0.2.2pre14. Nick Mathewson2011-06-06
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-03
|\| | |
| * | | Reject 128-byte keys that are not 1024-bit•••When we added the check for key size, we required that the keys be 128 bytes. But RSA_size (which defers to BN_num_bytes) will return 128 for keys of length 1017..1024. This patch adds a new crypto_pk_num_bits() that returns the actual number of significant bits in the modulus, and uses that to enforce key sizes. Also, credit the original bug3318 in the changes file. Nick Mathewson2011-06-03
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-06-01
|\| | |
| * | | Fix compile error in procmon.c•••An elusive compile-error (MingW-gcc v4.50 on Win_XP); a missing comma (!) and a typo ('err_msg' at line 277 changed to 'errmsg'). Aso changed the format for 'err_code' at line 293 into a "%ld" to suppress a warning. How did this go unnoticed for ~1 month? Btw. This is my 1st ever 'git commit', so it better work. Gisle2011-06-01
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'•••The conflicts were mainly caused by the routerinfo->node transition. Conflicts: src/or/circuitbuild.c src/or/command.c src/or/connection_edge.c src/or/directory.c src/or/dirserv.c src/or/relay.c src/or/rendservice.c src/or/routerlist.c Nick Mathewson2011-05-30
|\| | |
| * | | whitespace fixesNick Mathewson2011-05-30
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'•••Conflicts: src/common/compat.c src/or/main.c Nick Mathewson2011-05-30
|\| | | | |/ / |/| |
| * | Merge remote-tracking branch 'public/bug3270' into maint-0.2.2Nick Mathewson2011-05-30
| |\ \
| | * | Use a 64-bit type to hold sockets on win64.•••On win64, sockets are of type UINT_PTR; on win32 they're u_int; elsewhere they're int. The correct windows way to check a socket for being set is to compare it with INVALID_SOCKET; elsewhere you see if it is negative. On Libevent 2, all callbacks take sockets as evutil_socket_t; we've been passing them int. This patch should fix compilation and correctness when built for 64-bit windows. Fixes bug 3270. Nick Mathewson2011-05-23
* | | | Fix a -Wunused-but-set-variable instance in masterNick Mathewson2011-05-28
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-05-23
|\| | |
| * | | Unbreak the build on libevent 1.x systemsRobert Ransom2011-05-22
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'•••Conflicts: src/common/Makefile.am src/or/control.c Nick Mathewson2011-05-23
|\| | |
| * | | Merge branch 'feature3049-v2' into maint-0.2.2•••Conflicts: src/common/Makefile.am Nick Mathewson2011-05-23
| |\ \ \ | | |/ / | |/| |
| | * | The first argument for a libevent callback should be evutil_socket_tNick Mathewson2011-05-23
| | * | Appease make check-spaces wrt procmon.hNick Mathewson2011-05-23
| | * | Fix some commentsRobert Ransom2011-05-20
| | * | Implement __OwningControllerProcess option•••Implements part of feature 3049. Robert Ransom2011-05-20
| | * | Improve a documentation commentRobert Ransom2011-05-12
| | * | Fix comment typoRobert Ransom2011-05-12
| | * | Fix comment typoRobert Ransom2011-05-10
* | | | Merge branch 'maint-0.2.2'Roger Dingledine2011-05-21
|\| | |
| * | | what's up with this trailing whitespaceRoger Dingledine2011-05-20
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-05-16
|\| | |
| * | | Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2•••Fixed trivial conflict due to headers moving into their own .h files from or.h. Conflicts: src/or/or.h Nick Mathewson2011-05-16
| |\ \ \ | | | |/ | | |/|
| | * | squash! Add crypto_pk_check_key_public_exponent function•••Rename crypto_pk_check_key_public_exponent to crypto_pk_public_exponent_ok: it's nice to name predicates s.t. you can tell how to interpret true and false. Nick Mathewson2011-05-16
| | * | Add crypto_pk_check_key_public_exponent functionRobert Ransom2011-05-16
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-05-15
|\| | |
| * | | Increase the length of the buffer in smartlist_string_num_isin().•••This was harmless, since we only used this for checking for lists of port values, but it's the principle of the thing. Fixes 3175; bugfix on 0.1.0.1-rc Nick Mathewson2011-05-15
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-05-15
|\| | |
| * | | Make check_private_dir check for group ownership as appropriateNick Mathewson2011-05-15
| * | | Fix up some comment issues spotted by rransomNick Mathewson2011-05-15
| * | | Add a new flag to check_private_dir to make it _not_ change permissions•••We'll need this for checking permissions on the directories that hold control sockets: if somebody says "ControlSocket ~/foo", it would be pretty rude to do a chmod 700 on their homedir. Nick Mathewson2011-05-15