Nick Mathewson
36700ee99e
Mention trunnel in LICENSE and src/ext/README
2014-09-25 12:03:46 -04:00
Nick Mathewson
764e008092
Merge branch 'libscrypt_trunnel_squashed'
...
Conflicts:
src/test/test_crypto.c
2014-09-25 12:03:41 -04:00
Nick Mathewson
c433736734
Add tests for failing cases of crypto_pwbox
2014-09-25 11:58:14 -04:00
Nick Mathewson
3b7d0ed08e
Use trunnel for crypto_pwbox encoding/decoding.
...
This reduces the likelihood that I have made any exploitable errors
in the encoding/decoding.
This commit also imports the trunnel runtime source into Tor.
2014-09-25 11:58:14 -04:00
Nick Mathewson
3011149401
Adjust pwbox format: use a random IV each time
...
Suggested by yawning
2014-09-25 11:58:14 -04:00
Nick Mathewson
d0f5d2b662
Test a full array of s2k flags with pwbox test.
...
Suggested by yawning.
2014-09-25 11:58:14 -04:00
Nick Mathewson
05a6439f1f
Use preferred key-expansion means for pbkdf2, scrypt.
...
Use HKDF for RFC2440 s2k only.
2014-09-25 11:58:13 -04:00
Nick Mathewson
8d84f3af7b
Test vectors for PBKDF2 from RFC6070
2014-09-25 11:58:13 -04:00
Nick Mathewson
b59d0dae14
Test vectors for scrypt from draft-josefsson-scrypt-kdf-00
2014-09-25 11:58:13 -04:00
Nick Mathewson
2b2cab4141
Tweak and expose secret_to_key_compute_key for testing
...
Doing this lets me pass in a salt of an unusual length.
2014-09-25 11:58:13 -04:00
Nick Mathewson
8184839a47
Rudimentary-but-sufficient passphrase-encrypted box code.
...
See crypto_pwbox.c for a description of the file format.
There are tests for successful operation, but it still needs
error-case tests.
2014-09-25 11:58:13 -04:00
Nick Mathewson
e84e1c9745
More generic passphrase hashing code, including scrypt support
...
Uses libscrypt when found; otherwise, we don't have scrypt and we
only support openpgp rfc2440 s2k hashing, or pbkdf2.
Includes documentation and unit tests; coverage around 95%. Remaining
uncovered code is sanity-checks that shouldn't be reachable fwict.
2014-09-25 11:58:13 -04:00
Roger Dingledine
ecab261641
two more typos
2014-09-23 18:30:02 -04:00
Roger Dingledine
1987157d0c
+ is not how we say concatenate
2014-09-22 20:09:03 -04:00
Nick Mathewson
e6150c7fc0
Merge remote-tracking branch 'public/bug12693_025'
2014-09-22 14:45:38 -04:00
Nick Mathewson
2b3822d2da
Merge branch 'master' of git-rw.torproject.org:/tor
2014-09-22 14:35:14 -04:00
Nick Mathewson
bdd0c77643
Merge branch 'bug8197_squashed'
...
Conflicts:
src/test/test_policy.c
2014-09-22 14:34:52 -04:00
Roger Dingledine
00fafe9ab4
and forward-port those changelogs too
2014-09-22 14:21:26 -04:00
rl1987
80622c0664
Writing comments for newly added functions.
2014-09-22 14:18:01 -04:00
rl1987
45fc0612d3
Adding changes file for 8197.
2014-09-22 14:18:01 -04:00
rl1987
2e951f8dda
Whitespace fixes
2014-09-22 14:18:00 -04:00
rl1987
0eaf82947d
Using the new API in unit-test.
2014-09-22 14:18:00 -04:00
rl1987
c735b60e4c
New API for policies_parse_exit_policy().
2014-09-22 14:18:00 -04:00
Nick Mathewson
c8d927bad4
changes file for 12884
2014-09-22 10:55:53 -04:00
Adrien BAK
8858194952
Remove config options that have been obsolete since 0.2.3
2014-09-22 10:55:01 -04:00
Nick Mathewson
6c6ea8c425
Merge remote-tracking branch 'arma/feature13211'
2014-09-22 10:49:10 -04:00
Nick Mathewson
d3382297fe
Merge remote-tracking branch 'arma/feature13153'
2014-09-22 10:42:54 -04:00
Nick Mathewson
01b23a6d49
changes file for 7733
2014-09-22 10:39:51 -04:00
Nick Mathewson
1a1e695800
Merge remote-tracking branch 'public/bug7733a'
2014-09-22 10:38:05 -04:00
Nick Mathewson
bc758e4a5e
Merge remote-tracking branch 'intrigeri/bug13196-systemd-writable-run-directory'
2014-09-22 10:31:24 -04:00
Roger Dingledine
09183dc315
clients use optimistic data when reaching hidden services
...
Allow clients to use optimistic data when connecting to a hidden service,
which should cut out the initial round-trip for client-side programs
including Tor Browser.
(Now that Tor 0.2.2.x is obsolete, all hidden services should support
server-side optimistic data.)
See proposal 181 for details. Implements ticket 13211.
2014-09-21 20:02:12 -04:00
Roger Dingledine
530fac10aa
Use optimistic data even if we don't know exitnode->rs
...
I think we should know the routerstatus for our exit relay, since
we built a circuit to it. So I think this is just a code simplication.
2014-09-21 19:12:20 -04:00
Roger Dingledine
bbfb1aca55
get rid of routerstatus->version_supports_optimistic_data
...
Clients are now willing to send optimistic circuit data (before they
receive a 'connected' cell) to relays of any version. We used to
only do it for relays running 0.2.3.1-alpha or later, but now all
relays are new enough.
Resolves ticket 13153.
2014-09-21 19:04:18 -04:00
Roger Dingledine
4c8b809b96
get rid of trivial redundant comment
2014-09-21 18:56:48 -04:00
Roger Dingledine
1b40ea036f
Stop silently skipping invalid args to setevents
...
Return an error when the second or later arguments of the
"setevents" controller command are invalid events. Previously we
would return success while silently skipping invalid events.
Fixes bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns".
2014-09-21 16:05:24 -04:00
Roger Dingledine
e170205cd8
Merge branch 'maint-0.2.5'
2014-09-20 16:51:17 -04:00
Roger Dingledine
87576e826f
Merge branch 'maint-0.2.4' into maint-0.2.5
...
Conflicts:
src/or/config.c
2014-09-20 16:50:32 -04:00
Roger Dingledine
288b3ec603
Merge branch 'maint-0.2.3' into maint-0.2.4
2014-09-20 16:49:24 -04:00
Sebastian Hahn
0eec8e2aa5
gabelmoo's IPv4 address changed
2014-09-20 16:46:02 -04:00
intrigeri
2f47ab247a
Add changes file for #13196 .
...
Note that this will likely need to be folded with the changes file for #12751 ,
as this change is a mere fixup on top of the changes introduced for #12751 .
2014-09-19 16:10:39 +00:00
intrigeri
da384090f7
systemd unit file: set up /var/run/tor as writable for the Tor service.
...
For some strange reason, this was not needed with systemd v208.
But it's needed with systemd v215 on current Debian sid, and entirely
makes sense.
2014-09-19 16:10:39 +00:00
Nick Mathewson
6d6e21a239
Merge branch 'bug4244b_squashed'
2014-09-18 15:31:08 -04:00
Roger Dingledine
905443f074
Clients no longer write "DirReqStatistics 0" in their saveconf output
...
Stop modifying the value of our DirReqStatistics torrc option just
because we're not a bridge or relay. This bug was causing Tor
Browser users to write "DirReqStatistics 0" in their torrc files
as if they had chosen to change the config.
Fixes bug 4244; bugfix on 0.2.3.1-alpha.
2014-09-18 15:29:14 -04:00
Nick Mathewson
58e813d0fc
Fix a double-free in failing case of handle_control_authenticate.
...
Bugfix on ed8f020e205267e6270494634346ab68d830e1d8; bug not in any
released version of Tor. Found by Coverity; this is CID 1239290.
2014-09-18 11:13:57 -04:00
Nick Mathewson
d14127eb7a
Use the DL_SCHED_CONSENSUS schedule for consensuses.
...
Fixes bug 11679; bugfix on 0.2.2.6-alpha
2014-09-18 10:52:58 -04:00
Nick Mathewson
bb175dac96
Activate INSTRUMENT_DOWNLOADS under clang analyzer as well as coverity
...
Patch from teor; ticket 13177.
2014-09-18 10:23:33 -04:00
Nick Mathewson
3f9fac7ee4
Fix a windows unused-arg warning
2014-09-17 11:00:27 -04:00
Nick Mathewson
35156ffcc3
Merge remote-tracking branch 'public/ticket_13119_v3'
2014-09-17 10:27:40 -04:00
Peter Palfrader
64f65f2359
torrc.sample: Fix units
2014-09-16 12:03:47 -04:00
Arlo Breault
db9886b3e7
Ignore coverage_html/
2014-09-16 12:03:00 -04:00