summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2017-01-30Merge branch 'combined-fuzzing-v4'Nick Mathewson
2017-01-30Make a bunch of signature/digest-checking functions mockableNick Mathewson
2017-01-27Merge branches 'server_ciphers' and 'ciphers.inc'Nick Mathewson
2017-01-25Fix a signed/unsigned comparison warningNick Mathewson
2017-01-25Fail if file is too large to mmap.junglefowl
If tor_mmap_file is called with a file which is larger than SIZE_MAX, only a small part of the file will be memory-mapped due to integer truncation. This can only realistically happen on 32 bit architectures with large file support.
2017-01-24Re-run gen_server_ciphersNick Mathewson
2017-01-24Regenerate ciphers.incNick Mathewson
2017-01-11comment fix from pastlyNick Mathewson
2017-01-11Merge branch 'bug20569_030_02_squashed'Nick Mathewson
2017-01-11hs: Use AES-256 for v3 descriptorDavid Goulet
That key size is taken from proposal 224 thus specified in the protocol. Closes #20569 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-11Merge remote-tracking branch 'public/ticket21037'Nick Mathewson
2017-01-03Make tor_addr_lookup() mockable.Nick Mathewson
2017-01-02Make ed25519_fmt() log 0-valued keys more nicely.Nick Mathewson
Because <unset> makes more sense than AAAAAAAAAAAAAAAAAAA... (I have indeed verified that ed25519_fmt() is only used for logging. This patch also clarifies the intention that ed25519_fmt() is only for logging. Closes ticket 21037.
2016-12-23Note memset as redundant; see 20764.Nick Mathewson
2016-12-23This is no longer inline.Nick Mathewson
2016-12-23Fix unreachable heap corruption in base64_decode()Hans Jerry Illikainen
Give size_mul_check() external linkage and use it in base64_decode() to avoid a potential integer wrap. Closes #19222
2016-12-23Merge branch 'maint-0.2.9'Nick Mathewson
2016-12-21Withstand failures in CLOCK_MONOTONIC_COARSENick Mathewson
This came up on #21035, where somebody tried to build on a linux system with kernel headers including CLOCK_MONOTONIC_COARSE, then run on a kernel that didn't support it. I've adopted a belt-and-suspenders approach here: we detect failures at initialization time, and we also detect (loudly) failures later on. Fixes bug 21035; bugfix on 0.2.9.1-alpha when we started using monotonic time.
2016-12-18fix typos and trivial syntax problemsRoger Dingledine
2016-12-18clarify debug-level log while initializing entropyRoger Dingledine
I got confused when I saw my Tor saying it was opening a file that doesn't exist. It turns out it isn't opening it, it's just calling open() on it and then moving on when it's not there.
2016-12-16Revert "Stop checking whether environ is declared."Nick Mathewson
This reverts commit 954eeda619a59dae76144ad69967f0ed7341b564. Apparently, OpenBSD is what expects you to declare environ yourself. So 19142 is a wontfix.
2016-12-16Merge branch 'prop271_030_v1_squashed'Nick Mathewson
2016-12-16Lay down some infrastructure for bridges in the New Guard Order.Nick Mathewson
This includes: * making bridge_info_t exposed but opaque * allowing guards where we don't know an identity * making it possible to learn the identity of a guard * creating a guard that lacks a node_t * remembering a guard's address and port. * Looking up a guard by address and port. * Only enforcing the rule that we need a live consensus to update the "listed" status for guards when we are not using bridges.
2016-12-16Merge remote-tracking branch 'public/ticket19142'Nick Mathewson
2016-12-14Merge branch 'dgoulet_ticket19043_030_03_squashed'Nick Mathewson
2016-12-14crypto: Change crypto_mac_sha3_256 to use the key length in the constructionDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2016-12-14prop224: Add unittests handling v3 ESTABLISH_INTRO cells.George Kadianakis
Test for both v2 and v3 ESTABLISH_INTRO handling.
2016-12-14prop224 prepwork: Introduce HMAC-SHA3 function.George Kadianakis
2016-12-12Stop checking whether environ is declared.Nick Mathewson
There seems to be pretty good evidence that it's always declared, and that checking for it is pointless. Closes ticket 19142.
2016-12-12Merge remote-tracking branch 'jryans/log-severity'Nick Mathewson
2016-12-08whitespace cleanupsNick Mathewson
2016-12-08Merge branch 'feature15056_v1_squashed'Nick Mathewson
2016-12-08Add an ed25519_copy; use it in a couple of places dgoulet suggested.Nick Mathewson
2016-12-08Helper function for logging ed25519 public keys.Nick Mathewson
2016-12-07Merge branch 'maint-0.2.9'Nick Mathewson
2016-12-07Merge branch 'bug20710_025' into maint-0.2.9Nick Mathewson
2016-12-06Accept non-space whitespace characters in log severity syntax.J. Ryan Stinnett
Adds a test_config_parse_log_severity unit test to verify behavior. Fixes #19965.
2016-12-05whitespace fixNick Mathewson
2016-12-05Merge remote-tracking branch 'chelseakomlo/20717_hashing_api_bug'Nick Mathewson
2016-12-03Clarify that ClientRejectInternalAddresses also rejects mDNS *.local hostsJ. Ryan Stinnett
Fixes #17070.
2016-12-02Add accessor for inspecting timer callbacks.Nick Mathewson
2016-12-01Fix major errors in freeing getaddrinfo sandbox cacheNick Mathewson
Patch from cypherpunks. Fixes bug 20710; bugfix on 0.2.5.5-alpha.
2016-12-01Add an extra warning message to check_private_dirteor
2016-11-30Add a smartlist_remove_keeporder() function, with tests.Nick Mathewson
2016-11-30Add a GUARD log domain, for use with new guards codeNick Mathewson
2016-11-30Teach parse_iso_time about the spaceless variant.Nick Mathewson
(We previously added support for generating the spaceless 2016-11-14T19:58:12 variant, but not for actually parsing it.)
2016-11-24crypto_digest512 returns expected error value of -1Chelsea H. Komlo
2016-11-24crypto_digest256 returns expected error value of -1Chelsea H. Komlo
2016-11-24crypto_digest returns expected error value of -1Chelsea H. Komlo
2016-11-22Merge remote-tracking branch 'teor/fix-mingw-pagesize'Nick Mathewson