mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Bugfixes for authenticate handling and generation
This commit is contained in:
parent
610cb0ecc4
commit
41b250d7ea
@ -1055,7 +1055,7 @@ command_process_authenticate_cell(var_cell_t *cell, or_connection_t *conn)
|
||||
ERR("We're not doing a v3 handshake");
|
||||
if (conn->link_proto < 3)
|
||||
ERR("We're not using link protocol >= 3");
|
||||
if (! conn->handshake_state->started_here)
|
||||
if (conn->handshake_state->started_here)
|
||||
ERR("We originated this connection");
|
||||
if (conn->handshake_state->received_authenticate)
|
||||
ERR("We already got one!");
|
||||
|
@ -2163,6 +2163,7 @@ connection_or_send_authenticate_cell(or_connection_t *conn, int authtype)
|
||||
16 /* just in case XXXX */ ;
|
||||
|
||||
cell = var_cell_new(cell_maxlen);
|
||||
cell->command = CELL_AUTHENTICATE;
|
||||
set_uint16(cell->payload, htons(AUTHTYPE_RSA_SHA256_TLSSECRET));
|
||||
/* skip over length ; we don't know that yet. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user