aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_link_handshake.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-11 17:01:38 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 08:40:10 -0400
commit805e97a4336f07e366937f7ce4da0733fa4884c1 (patch)
tree3f49921af2142eb581bb8b4a95e58385f201c850 /src/test/test_link_handshake.c
parent53656381df2017c07a22ab9ed64633ab4a66e594 (diff)
downloadtor-805e97a4336f07e366937f7ce4da0733fa4884c1.tar.gz
tor-805e97a4336f07e366937f7ce4da0733fa4884c1.zip
Drop support for AUTHTYPE_RSA_SHA256_RFC5705 authentication.
This was a stopgap method, designed on the theory that some routers might support it before they could support Ed25519. But it looks like everybody who supports RFC5705 will also have an Ed25519 key, so there's not a lot of reason to have this even supported.
Diffstat (limited to 'src/test/test_link_handshake.c')
-rw-r--r--src/test/test_link_handshake.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_link_handshake.c b/src/test/test_link_handshake.c
index ba1c9b0f2f..bf5ff677c1 100644
--- a/src/test/test_link_handshake.c
+++ b/src/test/test_link_handshake.c
@@ -890,15 +890,15 @@ test_link_handshake_send_authchallenge(void *arg)
cell1 = mock_got_var_cell;
tt_int_op(0, ==, connection_or_send_auth_challenge_cell(c1));
cell2 = mock_got_var_cell;
- tt_int_op(40, ==, cell1->payload_len);
- tt_int_op(40, ==, cell2->payload_len);
+ tt_int_op(38, ==, cell1->payload_len);
+ tt_int_op(38, ==, cell2->payload_len);
tt_int_op(0, ==, cell1->circ_id);
tt_int_op(0, ==, cell2->circ_id);
tt_int_op(CELL_AUTH_CHALLENGE, ==, cell1->command);
tt_int_op(CELL_AUTH_CHALLENGE, ==, cell2->command);
- tt_mem_op("\x00\x03\x00\x01\x00\x02\x00\x03", ==, cell1->payload + 32, 8);
- tt_mem_op("\x00\x03\x00\x01\x00\x02\x00\x03", ==, cell2->payload + 32, 8);
+ tt_mem_op("\x00\x02\x00\x01\x00\x03", ==, cell1->payload + 32, 6);
+ tt_mem_op("\x00\x02\x00\x01\x00\x03", ==, cell2->payload + 32, 6);
tt_mem_op(cell1->payload, !=, cell2->payload, 32);
done: