summaryrefslogtreecommitdiff
path: root/src/or/channeltls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-05-16 12:09:25 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 08:37:21 -0400
commit2bf655394942e5b76944df92c8cd002fc15d3382 (patch)
tree32c6e40e52784160a9b79c1ce969d50ff56c8b81 /src/or/channeltls.c
parentb004ff45d7f637675be976737eb7efea8da5b49c (diff)
downloadtor-2bf655394942e5b76944df92c8cd002fc15d3382.tar.gz
tor-2bf655394942e5b76944df92c8cd002fc15d3382.zip
Code to send correct authentication data when we are using AUTHTYPE>2
Implements the major part of 19156, except doesn't actually send the new cell type yet.
Diffstat (limited to 'src/or/channeltls.c')
-rw-r--r--src/or/channeltls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/channeltls.c b/src/or/channeltls.c
index e30ecb0541..8009c0b3b3 100644
--- a/src/or/channeltls.c
+++ b/src/or/channeltls.c
@@ -2170,7 +2170,8 @@ channel_tls_process_authenticate_cell(var_cell_t *cell, channel_tls_t *chan)
ssize_t bodylen =
connection_or_compute_authenticate_cell_body(
- chan->conn, expected, sizeof(expected), NULL, 1);
+ chan->conn, expected, sizeof(expected),
+ AUTHTYPE_RSA_SHA256_TLSSECRET, NULL, NULL, 1);
if (bodylen < 0 || bodylen != V3_AUTH_FIXED_PART_LEN)
ERR("Couldn't compute expected AUTHENTICATE cell body");