Commit Graph

4851 Commits

Author SHA1 Message Date
Nick Mathewson 5ff859b89d improve errors in authcert.rs 2020-10-01 10:21:25 -04:00
Nick Mathewson a5f382aa61 Remove redundant signature check in authcert parsing. 2020-09-30 18:50:31 -04:00
Nick Mathewson d4d3e1c3db More tests on parsing, plus remove dead code. 2020-09-30 18:46:27 -04:00
Nick Mathewson c4d0ffa859 Start on some parser backend tests 2020-09-30 14:20:01 -04:00
Nick Mathewson 035e0422d9 tokenize: accept base64 with funny linewraps. 2020-09-30 14:19:07 -04:00
Nick Mathewson b57692aacd README edits 2020-09-30 10:51:31 -04:00
Nick Mathewson 9cab4e0f14 More tests for tokenize.rs, with some bugfixes 2020-09-30 09:39:52 -04:00
Nick Mathewson 59c46ec27b Start on some tests for parse::tokenize.rs 2020-09-29 17:30:48 -04:00
Nick Mathewson aafef113b3 Add tests for macros module in tor-netdoc.
Also improve output for multi-keyword tokens.
2020-09-29 17:02:56 -04:00
Nick Mathewson beee7a7f2a cargo upgrade 2020-09-29 16:43:16 -04:00
Nick Mathewson d0bed5e647 Throw a rudimentary CLI onto client-demo. 2020-09-29 16:42:27 -04:00
Nick Mathewson 91b7c7b874 Tests and minor debugging in tor_netdoc::types::policy 2020-09-29 11:34:07 -04:00
Nick Mathewson e02cccdf00 More tests for tor_netdoc::types 2020-09-29 10:15:08 -04:00
Nick Mathewson 788e0347cb Move around the modules inside tor-netdoc.
This change just gives them a more logical breakdown into parsing,
documents, and misc other types.
2020-09-29 09:05:17 -04:00
Nick Mathewson b0a53d4d40 Move RelayCell into a more reasonable place. 2020-09-29 08:43:13 -04:00
Nick Mathewson 5844037f89 Remove idmap as needlessly complex. 2020-09-29 08:24:51 -04:00
Nick Mathewson 5bb01ba305 make it work on rust 1.45 2020-09-28 21:57:29 -04:00
Nick Mathewson 8d5957ca4b test vectors for cell crypto. 2020-09-28 21:36:10 -04:00
Nick Mathewson f43db0d048 Mark most of the cell crypto code as crate-local. 2020-09-28 18:20:16 -04:00
Nick Mathewson 56101a0673 Add a round-trip test for cell encryption. 2020-09-28 18:16:30 -04:00
Nick Mathewson 3bcd647263 tor-cert: comment out cert-generation code
This won't be used until we have onion service or relay support.
2020-09-28 16:19:23 -04:00
Nick Mathewson 98ab84e774 Rename remaining get_ accessors 2020-09-28 16:13:14 -04:00
Nick Mathewson 9b276e6a5a tor_cert: rename accessors 2020-09-28 16:01:33 -04:00
Nick Mathewson 22c84aeaf6 Tests for CircTarget::linkspecs() 2020-09-28 15:53:23 -04:00
Nick Mathewson 05da5a7f73 Rename some identifiers in tor-linkspec.
By convention, rust accessor functions don't start with 'get'.
2020-09-28 15:29:39 -04:00
Nick Mathewson 3b3a6736f6 Rename ExtendTarget to CircTarget. 2020-09-28 15:22:24 -04:00
Nick Mathewson 079b38a609 Rewrite the TODO file. 2020-09-28 15:04:25 -04:00
Nick Mathewson 190d9e38f2 Tests for tor-cert 2020-09-28 12:02:32 -04:00
Nick Mathewson 52016aa35b A few more unit tests for tor-cell 2020-09-28 11:01:59 -04:00
Nick Mathewson 397d753e4e Fix a few clippy issues 2020-09-27 03:30:09 -04:00
Nick Mathewson 2feb750ba1 fix fuzzing targets that broke from recent refactoring 2020-09-27 03:16:53 -04:00
Nick Mathewson 34fb048e25 Tests for relay cell encoding/decoding. 2020-09-27 02:17:37 -04:00
Nick Mathewson 4ea9bb6153 Tests for channel-cell codec 2020-09-27 01:37:28 -04:00
Nick Mathewson eba1d796fb Add tests for certs cell accessors 2020-09-27 00:46:52 -04:00
Nick Mathewson 13edb7b10e Test a few more channel cell types. 2020-09-27 00:35:26 -04:00
Nick Mathewson 096f0d499f test ipv6 connected cell 2020-09-27 00:09:42 -04:00
Nick Mathewson 31b8d95c2f Tests for Unrecognized and Data relay messages 2020-09-27 00:01:55 -04:00
Nick Mathewson 7096a6b774 Add tests for END_REASON_EXITPOLICY messages. 2020-09-26 23:44:57 -04:00
Nick Mathewson a0a3004a82 More tests for begin cells, plus fixes 2020-09-26 23:38:22 -04:00
Nick Mathewson 207a971cd2 add a spec conformance comment 2020-09-26 19:27:15 -04:00
Nick Mathewson ad36e3acec Fix some comments that reflected a misunderstanding in SENDMEs
I had thought that the sendme authentication things used for
onion services were 32-byte; they're still only 20.
2020-09-26 19:25:51 -04:00
Nick Mathewson fa2fd4bbfe Add tests for a few more relay message types 2020-09-26 19:22:18 -04:00
Nick Mathewson 3d5cd55669 Add test vectors for a few relay message types.
I generated these by running an instrumented version of Tor through
chutney.
2020-09-26 17:32:15 -04:00
Nick Mathewson cb57d00161 Use the correct value for TAP_C_HANDSHAKE_LEN 2020-09-26 17:31:01 -04:00
Nick Mathewson d74f5f11f5 tor-proto conformance: do not write zero-valued flags in begin cell. 2020-09-26 17:24:48 -04:00
Nick Mathewson d3e4ca0ecb tor-cell: Add some test vectors for channel messages 2020-09-26 16:23:57 -04:00
Nick Mathewson a3143ab960 Run cargo upgrade. 2020-09-26 14:20:28 -04:00
Nick Mathewson 220a3acad2 update fuzzing cfg for tor-cell crate 2020-09-26 12:52:59 -04:00
Nick Mathewson b710e5c770 Split the cell-handling parts of tor-proto into a new crate. 2020-09-26 12:49:03 -04:00
Nick Mathewson 404cec07e7 readme edits 2020-09-26 11:03:05 -04:00