Commit 2b723f4e authored by Mike Perry's avatar Mike Perry
Browse files

Handle ntorv3 handshake type in various codepaths

parent 4ba1b9e5
Pipeline #16718 skipped
......@@ -62,7 +62,8 @@ check_create_cell(const create_cell_t *cell, int unknown_ok)
switch (cell->cell_type) {
case CELL_CREATE:
if (cell->handshake_type != ONION_HANDSHAKE_TYPE_TAP &&
cell->handshake_type != ONION_HANDSHAKE_TYPE_NTOR)
cell->handshake_type != ONION_HANDSHAKE_TYPE_NTOR &&
cell->handshake_type != ONION_HANDSHAKE_TYPE_NTOR_V3)
return -1;
break;
case CELL_CREATE_FAST:
......@@ -88,6 +89,9 @@ check_create_cell(const create_cell_t *cell, int unknown_ok)
if (cell->handshake_len != NTOR_ONIONSKIN_LEN)
return -1;
break;
case ONION_HANDSHAKE_TYPE_NTOR_V3:
// TODO-324: can we check this?
break;
default:
if (! unknown_ok)
return -1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment