aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAge
* Give tor_cert_get_id_digests() fail-fast behaviorNick Mathewson2011-10-10
| | | | | | | | | | | | Right now we can take the digests only of an RSA key, and only expect to take the digests of an RSA key. The old tor_cert_get_id_digests() would return a good set of digests for an RSA key, and an all-zero one for a non-RSA key. This behavior is too error-prone: it carries the risk that we will someday check two non-RSA keys for equality and conclude that they must be equal because they both have the same (zero) "digest". Instead, let's have tor_cert_get_id_digests() return NULL for keys we can't handle, and make its callers explicitly test for NULL.
* Fix some more issues wrt tor_cert_new found by asnNick Mathewson2011-10-10
|
* Generate certificates that enable v3 handshakeNick Mathewson2011-10-10
|
* Remove a no-longer-relevant commentNick Mathewson2011-10-10
|
* Make tor_tls_cert_is_valid check key lengthsNick Mathewson2011-10-10
|
* Function to return peer cert as tor_tls_certNick Mathewson2011-10-10
|
* Add AUTH keys as specified in proposal 176Nick Mathewson2011-10-10
| | | | | | | | | | | | | | | | Our keys and x.509 certs are proliferating here. Previously we had: An ID cert (using the main ID key), self-signed A link cert (using a shorter-term link key), signed by the ID key Once proposal 176 and 179 are done, we will also have: Optionally, a presentation cert (using the link key), signed by whomever. An authentication cert (using a shorter-term ID key), signed by the ID key. These new keys are managed as part of the tls context infrastructure, since you want to rotate them under exactly the same circumstances, and since they need X509 certificates.
* Functions to get a public RSA key from a certNick Mathewson2011-10-10
|
* Function to detect certificate types that signal v3 certificatesNick Mathewson2011-10-10
|
* Function to get digests of the certs and their keysNick Mathewson2011-10-10
|
* More functions to manipulate certs received in cellsNick Mathewson2011-10-10
|
* Function to extract the TLSSECRETS field for v3 handshakesNick Mathewson2011-10-10
|
* Add a sha256 hmac function, with testsNick Mathewson2011-10-10
|
* Turn X509 certificates into a first-class type and add some functionsNick Mathewson2011-10-10
|
* New function to get all digests of a public keyNick Mathewson2011-10-10
|
* Fix a compile warning on OS X 10.6 and upSebastian Hahn2011-10-11
|
* Add a missing comma in tor_check_port_forwardingNick Mathewson2011-10-10
| | | | My fault; fix for bug 4213.
* Merge remote-tracking branch 'asn2/bug3656'Nick Mathewson2011-10-07
|\ | | | | | | | | | | | | | | | | Conflicts: src/common/util.c src/common/util.h src/or/config.h src/or/main.c src/test/test_util.c
| * Make it compile on Windows™.George Kadianakis2011-10-07
| |
| * Put some sense into our logging.George Kadianakis2011-09-12
| | | | | | | | | | Transform our logging severities to something more sensible. Remove sneaky printf()s.
| * Make check-spaces happy.George Kadianakis2011-09-11
| |
| * Enforce transport names being C identifiers.George Kadianakis2011-09-11
| | | | | | | | | | Introduce string_is_C_identifier() and use it to enforce transport names according to the 180 spec.
| * Introduce tor_terminate_process() function.George Kadianakis2011-09-11
| |
| * Improve the code a tad.George Kadianakis2011-08-15
| | | | | | | | | | | | | | | | | | | | * Use strcmpstart() instead of strcmp(x,y,strlen(y)). * Warn the user if the managed proxy failed to launch. * Improve function documentation. * Use smartlist_len() instead of n_unconfigured_proxies. * Split managed_proxy_destroy() to managed_proxy_destroy() and managed_proxy_destroy_with_transports(). * Constification.
| * Reuse get_string_from_pipe() in log_from_pipe().George Kadianakis2011-07-18
| |
| * Replaced ST_* enum prefix for stream status with IO_STREAM_*.George Kadianakis2011-07-18
| |
| * Make some utility functions.George Kadianakis2011-07-13
| | | | | | | | | | | | | | * Create a function that will get input from a stream, so that we can communicate with the managed proxy. * Hackish change to tor_spawn_background() so that we can specify an environ for our spawn.
* | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-10-03
|\ \
| * | Looks like Windows version 6.2 will be Windows 8Sebastian Hahn2011-10-01
| | | | | | | | | | | | Thanks to funkstar for the report
* | | Make bufferevents work with TokenBucketRefillIntervalNick Mathewson2011-09-22
| | |
* | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-09-20
|\| |
| * | Fix a potentially useless integer overflow check.Mansour Moufid2011-09-20
| | | | | | | | | | | | | | | | | | | | | GCC 4.2 and maybe other compilers optimize away unsigned integer overflow checks of the form (foo + bar < foo), for all bar. Fix one such check in `src/common/OpenBSD_malloc_Linux.c'.
* | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-09-09
|\| | | | | | | | | | | | | | | | | Conflicts: configure.in src/or/circuitbuild.c
| * | Check for lround with autoconf; fall back to rint.Nick Mathewson2011-08-30
| | |
| * | Fix a compilation issue on older FreeBSDsSebastian Hahn2011-08-30
| | |
* | | Fix double-closing a stdio streamSteven Murdoch2011-09-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | After a stream reached eof, we fclose it, but then test_util_spawn_background_partial_read() reads from it again, which causes an error and thus another fclose(). Some platforms are fine with this, others (e.g. debian-sid-i386) trigger a double-free() error. The actual code used by Tor (log_from_pipe() and tor_check_port_forwarding()) handle this case correctly.
* | | Tweaks on last process-launch patchesNick Mathewson2011-08-31
| | |
* | | Make a version of tor_read_all_handle() for non-Windows platformsSteven Murdoch2011-09-01
| | | | | | | | | | | | | | | | | | Mainly used for testing reading from subprocesses. To be more generic we now pass in a pointer to a process_handle_t rather than a Windows- specific HANDLE.
* | | Add a missing include to util.c to get waitpid() on LinuxNick Mathewson2011-08-31
| | |
* | | Rename tor_join_cmdline to tor_join_win_cmdline; tweak doxygenNick Mathewson2011-08-30
| | |
* | | Merge remote-tracking branch 'sjmurdoch/bug2046'Nick Mathewson2011-08-30
|\ \ \
| * | | Document limitation of log_from_handle with partial readsSteven Murdoch2011-08-30
| | | |
| * | | Factor out and re-write code for splitting lines from a handleSteven Murdoch2011-08-30
| | | | | | | | | | | | | | | | | | | | Now handles non-printable characters and will not output a spurious new-line if given a partial line.
| * | | Refactor out command line formattingSteven Murdoch2011-08-29
| | | | | | | | | | | | | | | | Now correctly handles whitespace, quotes and backslashes. Passes all unit tests.
| * | | Add a sanity checkSteven Murdoch2011-08-29
| | | |
| * | | Replace two magic tristates with #define'd namesSteven Murdoch2011-08-29
| | | | | | | | | | | | | | | | | | | | - process_handle_t.status - return value of tor_get_exit_code()
| * | | Make signature of tor_spawn_background more conventionalSteven Murdoch2011-08-28
| | | | | | | | | | | | | | | | | | | | | | | | Conventionally in Tor, structs are returned as pointers, so change tor_spawn_background() to return the process handle in a pointer rather than as return value.
| * | | Appease "make check-spaces"Steven Murdoch2011-08-24
| | | |
| * | | Improve comments and fix one bugSteven Murdoch2011-08-24
| | | |
| * | | We don't need to find our own path, just tell Windows to searchSteven Murdoch2011-08-24
| | | |