aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_entryconn.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-09-13 21:06:25 +0300
committerNick Mathewson <nickm@torproject.org>2017-09-14 09:13:11 -0400
commit0ac2afad0dc99ff6ce15f4cf63dcd2b9b3c6b637 (patch)
tree9bc97ea8e3c0540ea90d71f731f291adddeb51a8 /src/test/test_entryconn.c
parentdcaf971a01f912d74a076d53baf7689460c3474e (diff)
downloadtor-0ac2afad0dc99ff6ce15f4cf63dcd2b9b3c6b637.tar.gz
tor-0ac2afad0dc99ff6ce15f4cf63dcd2b9b3c6b637.zip
prop224 client-side: Start validating onion address pubkeys.
Fix the test_build_address() test and its test vectors python script. They were both using a bogus pubkey for building an HS address which does not validate anymore. Also fix a few more unittests that were using bogus onion addresses and were failing the validation. I replaced the bogus address with the one generated from the test vector script.
Diffstat (limited to 'src/test/test_entryconn.c')
-rw-r--r--src/test/test_entryconn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_entryconn.c b/src/test/test_entryconn.c
index 2d28f1d428..18b5fcc35e 100644
--- a/src/test/test_entryconn.c
+++ b/src/test/test_entryconn.c
@@ -801,7 +801,7 @@ test_entryconn_rewrite_onion_v3(void *arg)
/* Make a SOCKS request */
conn->socks_request->command = SOCKS_COMMAND_CONNECT;
strlcpy(conn->socks_request->address,
- "git.p3xnclpu4mu22dwaurjtsybyqk4xfjmcfz6z62yl24uwmhjatiwnlnad.onion",
+ "git.25njqamcweflpvkl73j4szahhihoc4xt3ktcgjnpaingr5yhkenl5sid.onion",
sizeof(conn->socks_request->address));
/* Make an onion connection using the SOCKS request */
@@ -818,7 +818,7 @@ test_entryconn_rewrite_onion_v3(void *arg)
tt_int_op(ENTRY_TO_CONN(conn)->state, OP_EQ, AP_CONN_STATE_CIRCUIT_WAIT);
/* check that the address got rewritten */
tt_str_op(conn->socks_request->address, OP_EQ,
- "p3xnclpu4mu22dwaurjtsybyqk4xfjmcfz6z62yl24uwmhjatiwnlnad");
+ "25njqamcweflpvkl73j4szahhihoc4xt3ktcgjnpaingr5yhkenl5sid");
/* check that HS information got attached to the connection */
tt_assert(ENTRY_TO_EDGE_CONN(conn)->hs_ident);
tt_assert(!ENTRY_TO_EDGE_CONN(conn)->rend_data);