AV-98/src/av98
Solderpunk 88daabe091 Overhaul TOFU checking code.
Main motivation for this was to switch from keying the cache cert
database off hostname + address to hostname + port.  While making
the necessary changes I refactored to reduce code duplication and
make the overall flow of the TOFU checks more transparent.

The check of whether the "previous certificate" has expired has
been changed from using the most frequently seen previous cert to
the most recently seen, which makes a *lot* more sense and is
arguably a bug fix.

The address column of the DB is now used only for reporting, but
the column is not maintained well, or rather, the semantics are
currently "address cert was first received from", and we may want
something less static?
2024-01-17 20:58:59 +01:00
..
__init__.py Get on board with modern Python packaging conventions. 2023-11-22 11:20:05 +01:00
cache.py Get on board with modern Python packaging conventions. 2023-11-22 11:20:05 +01:00
certmanager.py Further splitting up and renaming of files. 2023-11-25 16:12:46 +01:00
client.py Overhaul TOFU checking code. 2024-01-17 20:58:59 +01:00
main.py Further splitting up and renaming of files. 2023-11-25 16:12:46 +01:00
tofu.py Overhaul TOFU checking code. 2024-01-17 20:58:59 +01:00
util.py Don't treat filename collisions as fatal. 2023-11-26 12:17:42 +01:00