aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-05-19cargo-online-mode configure argumentSebastian Hahn
Passing --enable-cargo-online-mode during configure allows cargo to make network requests while building Tor or running tests. If this flag is not supplied, the dependencies need to be available in the form of a local mirror.
2017-05-19Add rustfmt.tomlSebastian Hahn
2017-05-19Run cargo test during make checkSebastian Hahn
2017-05-19Add some Rust utility functions and print supportSebastian Hahn
This gives an indication in the log that Tor was built with Rust support, as well as laying some groundwork for further string-returning APIs to be converted to Rust
2017-04-29Add --enable-rust configure switchSebastian Hahn
Introduce a way to optionally enable Rust integration for our builds. No actual Rust code is added yet and specifying the flag has no effect other than failing the build if rustc and cargo are unavailable.
2017-04-28Fix a brazen memleak in consdiffmgr_add_consensus()Nick Mathewson
2017-04-28Increase MALLOC_MP_LIM to 16MBNick Mathewson
Increase the maximum allowed size passed to mprotect(PROT_WRITE) from 1MB to 16MB. This was necessary with the glibc allocator in order to allow worker threads to allocate more memory -- which in turn is necessary because of our new use of worker threads for compression. Closes ticket #22096. Found while working on #21648.
2017-04-27Merge branches 'consdiffmgr_orig_squashed' and 'actually_compute_diffs_squashed'Nick Mathewson
2017-04-27Pre-compress consensus diffs with supported consensus methods.Nick Mathewson
2017-04-27Store archived consensuses compressed on disk.Nick Mathewson
I'm just using gzip compression now, for performance.
2017-04-27Functionality to ensure there is space to add files to cache.Nick Mathewson
2017-04-27New force-delete option on consensus_cache_delete_pending()Nick Mathewson
If we're out of file space in the storage directory, we'll need to get rid of old files fast.
2017-04-27Lower the file limit in consdiffmgr, to support seccomp2Nick Mathewson
2017-04-27Pass incoming consensus documents to the consdiffmgr codeNick Mathewson
2017-04-27Fix use-after-free bug in storage_dir sandbox code.Nick Mathewson
2017-04-27Clean the consdiffmgr cache and launch new diffs as needed.Nick Mathewson
2017-04-27Initialize consdiffmgr when running as (or becoming) a server.Nick Mathewson
2017-04-27Use a cast to try to avoid a tautalogical comparison warningNick Mathewson
2017-04-27Merge branch 'parse_accept_encoding'Nick Mathewson
2017-04-27Move the "supported compression bitmask" into compress.[ch]Nick Mathewson
2017-04-27Document and test nul-terminating behavior of tor_uncompress()Nick Mathewson
We added this as a safety feature, but there are a few places in the code that actually depend on it.
2017-04-27whitespace fixNick Mathewson
2017-04-27Re-enable the partial-input test for zstd.Nick Mathewson
There were two issues here: first, zstd didn't exhibit the right behavior unless it got a very large input. That's fine. The second issue was a genuine bug, fixed by 39cfaba9e26d1ca0a.
2017-04-27Fix handling of "final" flag in zstd decompressionNick Mathewson
We were returning "DONE" on truncated input streams, which was not what we wanted.
2017-04-27Have a separate entry point for each compresion testNick Mathewson
2017-04-27Merge remote-tracking branch 'ahf/bugs/22085'Nick Mathewson
2017-04-27Merge branch 'dirreq'Nick Mathewson
2017-04-27Test support for multiple compression backends in the buffer code.Alexander Færøy
This patch refactors the buffer compression tests to support multiple comprssion backends. See: https://bugs.torproject.org/22085
2017-04-27Clean up mentions of 'zlib' and rename the mentions to 'compressed'.Alexander Færøy
This patch cleans up in various places where 'zlib' is mentioned.
2017-04-27Refactor compression tests into a single test.Alexander Færøy
This patch refactors our compression tests such that deflate, gzip, lzma, and zstd are all tested using the same code. Additionally we use run-time checks to see if the given compression method is supported instead of using HAVE_LZMA and HAVE_ZSTD. See: https://bugs.torproject.org/22085
2017-04-27Improve control flow in authority_certs_fetch_resource_implNick Mathewson
2017-04-27Include UPLOAD_RENDDESC_V2 in PURPOSE_IS_UPLOADNick Mathewson
This was only used in one place before, and it's safe to update it.
2017-04-26Fix compilation when lzma or zstd is absentNick Mathewson
2017-04-26Avoid a warning from the use of floating-point in zstdNick Mathewson
Replace "(preset - 0.5) * 1mb" with "preset * 1mb - 0.5 mb", to avoid warning about converting double to size_t.
2017-04-26Merge remote-tracking branch 'ahf/bugs/22066'Nick Mathewson
2017-04-26Approximate memory usage needed for the Zstandard backend.Alexander Færøy
This patch adds support for measuring the approximated memory usage by the individual `tor_zstd_compress_state_t` object instances. See: https://bugs.torproject.org/22066
2017-04-26Better documentation for `tor_uncompress()`.Alexander Færøy
This patch fixes the documentation string for `tor_uncompress()` to ensure that it does not explicitly mention zlib or gzip since we now support multiple compression backends.
2017-04-26Approximate memory usage needed for the LZMA backend.Alexander Færøy
This patch adds support for measuring the approximated memory usage by the individual `tor_lzma_compress_state_t` object instances. The LZMA library provides the functions `lzma_easy_encoder_memusage()` and `lzma_easy_decoder_memusage()` which is used to find the estimated usage in bytes. See: https://bugs.torproject.org/22066
2017-04-26Fix coverity cid 1405509Sebastian Hahn
Locking in the init function is not necessary, but coverity gets confused about it. So let's trick it.
2017-04-26Fix coverity cid 1405510Sebastian Hahn
This is a false positive, but let's appease coverity.
2017-04-26Store compression overhead from `tor_compress_state_t`.Alexander Færøy
The `tor_compress_state_t` data-type is used as a wrapper around the more specialized state-types used by the various compression backends. This patch ensures that the overhead of this "thin" wrapper type is included in the value returned by `tor_compress_get_total_allocation()`. See: https://bugs.torproject.org/22066
2017-04-26Remove unused header from the Zstandard compression backend.Alexander Færøy
Since we stopped looking at Zstandard error codes there is no need to include the zstd_errors.h header file anymore.
2017-04-25Configure sandbox using consdiffmgr; free cdm on exit.Nick Mathewson
2017-04-25Bitmask out the compression methods that we do not supportNick Mathewson
2017-04-25Tests for parse_accept_encodingNick Mathewson
2017-04-25Parse recognized entries from the Accept-Encoding header.Nick Mathewson
2017-04-25Use x-lzma, not x-lzma2, as the identifierNick Mathewson
2017-04-25Teach consdiffmgr to remember two digests: one compressed, one not.Nick Mathewson
2017-04-25Function to convert compression methods to/from strings.Nick Mathewson
2017-04-25Add stub function for libor-trace.Alexander Færøy
OS X's ar(1) doesn't allow us to create an archive with no object files. This patch adds a stub file with a stub function in it to make OS X happy again.