Remove long-obsolete members from the state file.
commitc4812698c3df0bd8aa51c615b0274bbb53b9eb6c
authorNick Mathewson <nickm@torproject.org>
Wed, 23 Sep 2020 18:08:24 +0000 (23 14:08 -0400)
committerGeorge Kadianakis <desnacked@riseup.net>
Wed, 7 Oct 2020 17:46:37 +0000 (7 20:46 +0300)
tree170186e239336d808bd770876845321781e7f69a
parent2ceea131406b3f88e4a6a9c6bfc9f47f4940ca47
Remove long-obsolete members from the state file.

Tor has a feature to preserve unrecognized state file entries in
order to maintain forward compatibility.  But this feature, along
with some unused code that we never actually removed, led to us
keeping items that were of no use to the user, other than at worst
to preserve ancient information about them.

This commit adds a feature to remove obsolete entries when we load
the file.

Closes ticket 40137.
changes/ticket40137 [new file with mode: 0644]
src/app/config/or_state_st.h
src/app/config/statefile.c
src/app/config/statefile.h
src/test/include.am
src/test/test.c
src/test/test.h
src/test/test_statefile.c [new file with mode: 0644]