Commit Graph

12669 Commits

Author SHA1 Message Date
jl777
f1024f06ac Test 2017-03-26 13:25:55 +03:00
jl777
7ed958da81 Test 2017-03-26 13:20:00 +03:00
jl777
5de55e14aa Test 2017-03-26 13:10:23 +03:00
jl777
b000fa04a6 Test 2017-03-26 12:53:24 +03:00
zkbot
45faa928ec Auto merge of #2177 - str4d:2061-tor-ephemeral-hs, r=daira
Tor ephemeral hidden services

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#6503 (included to reduce merge conflicts)
- bitcoin/bitcoin#6639
- bitcoin/bitcoin#6643
- bitcoin/bitcoin#7090
- bitcoin/bitcoin#7035
- bitcoin/bitcoin#7170
- bitcoin/bitcoin#7218 (non-QT part)
- bitcoin/bitcoin#7313
- bitcoin/bitcoin#7438
- bitcoin/bitcoin#7553
- bitcoin/bitcoin#7637
- bitcoin/bitcoin#7683
- bitcoin/bitcoin#7813
- bitcoin/bitcoin#7703
- bitcoin/bitcoin#8203
- bitcoin/bitcoin#9004
- bitcoin/bitcoin#9234
- bitcoin/bitcoin#9911 (partial)

Closes #2061.
2017-03-26 02:44:06 +00:00
zkbot
f7fcad709b Auto merge of #2203 - arcalinea:2142_security_log_message, r=daira
Add message directing users to security guide

Addresses #2142, which was blocking on updates to zcash/support/security.html. That page has now been added, so this message directing users to the site can be included.

It displays in the zcash-cli --help and --version message text, and on the zcashd metrics screen.
2017-03-26 01:36:24 +00:00
Jack Grigg
87b7f4d878 torcontrol: Log invalid parameters in Tor reply strings where meaningful 2017-03-26 14:35:13 +13:00
Daira Hopwood
f0d1accb7d Line-wrap privacy notice. Use <> around URL and end sentence with '.'.
Include privacy notice in help text for zcashd -help.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2017-03-26 02:08:29 +01:00
Jack Grigg
3290567bbd torcontrol: Check for reading errors in ReadBinaryFile
This ensures that ReadBinaryFile never returns exactly TOR_COOKIE_SIZE bytes if
the file was larger than that.
2017-03-26 13:53:13 +13:00
jl777
83f1c673bf Test 2017-03-25 23:05:17 +02:00
jl777
23bf71d1f6 Test 2017-03-25 20:36:39 +02:00
jl777
66294e69b2 Remove prints 2017-03-25 19:32:17 +02:00
jl777
67478d4a4c Test 2017-03-25 19:06:21 +02:00
jl777
1812efacf4 Test 2017-03-25 18:50:05 +02:00
jl777
b020e6a38e Test 2017-03-25 18:49:16 +02:00
jl777
1a9890f534 Test 2017-03-25 18:49:00 +02:00
jl777
dd98c02d47 test 2017-03-25 18:46:14 +02:00
jl777
a85440acf8 Test 2017-03-25 18:32:22 +02:00
jl777
8b51b9e489 Test 2017-03-25 18:31:20 +02:00
jl777
ca3bf7ed8f Test 2017-03-25 18:30:12 +02:00
jl777
f0100e72e6 Test 2017-03-25 18:29:49 +02:00
jl777
4ab9dbe9b2 Test 2017-03-25 18:19:05 +02:00
jl777
902ac92da3 Test 2017-03-25 18:14:15 +02:00
jl777
2eb6b74a26 Test 2017-03-25 18:09:52 +02:00
jl777
37f823fba7 Test 2017-03-25 18:01:19 +02:00
jl777
0bba91a407 Test 2017-03-25 17:59:24 +02:00
jl777
c49a34c04a Test 2017-03-25 17:58:53 +02:00
jl777
44cc3bc7e6 Test 2017-03-25 17:57:28 +02:00
jl777
2e8e57576e Test 2017-03-25 17:55:07 +02:00
Simon
99eb947a98 Add AMQP 1.0 support via Apache Qpid Proton C++ API 0.17.0 2017-03-25 08:51:40 -07:00
jl777
de65ff9543 Test 2017-03-25 17:51:17 +02:00
jl777
73326d0273 Test 2017-03-25 17:50:58 +02:00
jl777
1c5a00ced9 Test 2017-03-25 17:44:01 +02:00
Jack Grigg
64101d0407 torcontrol: Fix ParseTorReplyMapping
- Ignore remaining input if it is an OptArguments
- Correctly handle escapes
2017-03-26 00:35:13 +13:00
Jack Grigg
6dbd95afa1 torcontrol: Add unit tests for Tor reply parsers 2017-03-26 00:34:53 +13:00
jl777
39d28b0641 Expand time window 2017-03-25 13:25:37 +02:00
jl777
0af2786dc4 Fix miner 2017-03-25 10:35:45 +02:00
jl777
abdf25c80c Test 2017-03-25 10:28:21 +02:00
Jack Grigg
8966598033 torcontrol: Improve comments 2017-03-25 20:25:59 +13:00
Pavel Janík
4b5ba449bb Make some global variables less-global (static) 2017-03-25 20:25:57 +13:00
Pavel Janík
f0e9019223 Prevent -Wshadow warnings with gcc versions 4.8.5, 5.3.1 and 6.2.1.
Zcash: partial (ignoring src/test/script_tests.cpp due to merge conflicts)
2017-03-25 20:25:56 +13:00
Wladimir J. van der Laan
9e5c9d0a04 torcontrol: Explicitly request RSA1024 private key
When generating a new service key, explicitly request a RSA1024 one.

The bitcoin P2P protocol has no support for the longer hidden service names
that will come with ed25519 keys, until it does, we depend on the old
hidden service type so make this explicit.

See #9214.
2017-03-25 20:25:55 +13:00
Wladimir J. van der Laan
ca5e229514 tor: Change auth order to only use HASHEDPASSWORD if -torpassword
Change authentication order to make it more clear (see #7700).

- If the `-torpassword` option is provided, force use of
  `HASHEDPASSWORD` auth.

- Give error message if `-torpassword` provided, but
  `HASHEDPASSWORD` auth is not available.

- Give error message if only `HASHEDPASSWORD` available, but
  `-torpassword` not given.
2017-03-25 20:25:50 +13:00
Jonas Schnelli
1a41e3f660 Fix torcontrol.cpp unused private field warning 2017-03-25 20:25:48 +13:00
Wladimir J. van der Laan
3d7cddcaa2 Fix memleak in TorController [rework]
It looks like, TorController::disconnected_cb(TorControlConnection&
conn) gets called multiple times which results in multiple event_new().

Avoid this by creating the event only once in the constructore, and
deleting it only once in the destructor (thanks to Cory Fields for the
idea).

Replaces the fix by Jonas Schnelli in #7610, see discussion there.
2017-03-25 20:25:46 +13:00
Patrick Strateman
a05be280e7 Remove vfReachable and modify IsReachable to only use vfLimited.
We do not know that a class of Network is reachable, only that it is not.
2017-03-25 20:25:45 +13:00
Gregory Maxwell
f28a87b4ba Decide eviction group ties based on time.
This corrects a bug the case of tying group size where the code may
 fail to select the group with the newest member. Since newest time
 is the final selection criteria, failing to break ties on it
 on the step before can undermine the final selection.

Tied netgroups are very common.
2017-03-25 20:25:44 +13:00
Gregory Maxwell
35db253fb6 Do not absolutely protect local peers from eviction.
With automatic tor HS support in place we should probably not be providing
 absolute protection for local peers, since HS inbound could be used to
 attack pretty easily.  Instead, this counts on the latency metric inside
 AttemptToEvictConnection to privilege actually local peers.
2017-03-25 20:25:42 +13:00
calebogden
e10e212470 Fixing typos on security-check.py and torcontrol.cpp 2017-03-25 20:25:41 +13:00
MarcoFalke
9b46a35b8d torcontrol debug: Change to a blanket message that covers both cases 2017-03-25 20:25:39 +13:00