diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-12-06 00:21:24 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-01-03 11:29:47 -0500 |
commit | 5c68a1efaa9511baf2a2af0a49946e0a2de9e246 (patch) | |
tree | 2412460c251075f029c0d878dcf87bc2e97c3a15 /src/test | |
parent | 1ed4786dba8912ab7a6eb16adf7554cf9a5c1ed1 (diff) | |
download | tor-5c68a1efaa9511baf2a2af0a49946e0a2de9e246.tar.gz tor-5c68a1efaa9511baf2a2af0a49946e0a2de9e246.zip |
Don't check create cells too much when we're relaying them
We want to sanity-check our own create cells carefully, and other
people's loosely.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_cell_formats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_cell_formats.c b/src/test/test_cell_formats.c index bdbc555eb1..932124c100 100644 --- a/src/test/test_cell_formats.c +++ b/src/test/test_cell_formats.c @@ -651,7 +651,7 @@ test_cfmt_extend_cells(void *arg) tt_int_op(p2_cmd, ==, RELAY_COMMAND_EXTEND); tt_int_op(p2_len, ==, 26+TAP_ONIONSKIN_CHALLENGE_LEN); test_memeq(p2, p, RELAY_PAYLOAD_SIZE); - tt_int_op(0, ==, create_cell_format(&cell, cc)); + tt_int_op(0, ==, create_cell_format_relayed(&cell, cc)); /* Now let's do a minimal ntor EXTEND2 cell. */ memset(&ec, 0xff, sizeof(ec)); @@ -721,6 +721,7 @@ test_cfmt_extend_cells(void *arg) /* Now the handshake prologue */ "01050063"); test_memeq(p2+1+8+22+4, b, 99+20); + tt_int_op(0, ==, create_cell_format_relayed(&cell, cc)); /* == Now try parsing some junk */ |