tor/src/feature/dirparse
Nick Mathewson ca6ccd372f Reject obsolete router/extrainfo descs more quietly.
Thanks to proposal 315 / ticket #30132, more fields are now
required in these documents.  But ancient Tors that try to upload
obsolete documents were causing the authorities to log warnings
about missing fields, and to do so very spammily.

We now detect the missing fields before tokenizing, and log at
debug.  This is a bit of ugliness, but it's probably a safer choice
than making _all_ unparseable-desc warnings into debug-level logs.

I'm looking at identity-ed25519 in extrainfos and proto in
routerdescs because they were (I believe) the latest-added fields in
Tor's history: any Tor that lacks them will also lack the other
newly required fields.

Fixes bug #40238; bugfix on 0.4.5.1-alpha.
2021-01-11 14:50:40 -05:00
..
.may_include practracker: Add missing .may_include files 2019-12-04 12:15:22 -05:00
authcert_members.h Wrap columnar tables in "clang-format off/on" 2020-02-06 14:54:04 -05:00
authcert_parse.c addr: Use tor_addr_t instead of uint32_t for IPv4 2020-07-14 10:36:08 -04:00
authcert_parse.h It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
feature_dirparse.md Doxygen: rename all .dox files to end with .md 2019-11-15 09:28:12 -05:00
include.am Split core/include.am into per-subdirectory include.am files 2020-01-13 09:34:17 -05:00
microdesc_parse.c Mark as required fields from prop315. 2020-10-15 18:02:16 -04:00
microdesc_parse.h It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
ns_parse.c Fix typos. 2020-11-12 11:44:09 -05:00
ns_parse.h It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
parsecommon.c Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:55:25 -04:00
parsecommon.h It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
policy_parse.c It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
policy_parse.h It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
routerparse.c Reject obsolete router/extrainfo descs more quietly. 2021-01-11 14:50:40 -05:00
routerparse.h Merge branch 'pre_formatter_cleanups_squashed' 2020-01-09 07:32:39 -05:00
sigcommon.c Fix up vote tests in test_dir_handle_get. 2020-10-16 16:07:46 -04:00
sigcommon.h Fix up vote tests in test_dir_handle_get. 2020-10-16 16:07:46 -04:00
signing.c It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
signing.h It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
unparseable.c It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
unparseable.h It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00