droe / sslsplit

Transparent SSL/TLS interception
https://www.roe.ch/SSLsplit
BSD 2-Clause "Simplified" License
1.75k stars 328 forks source link

Refactor log subsystem into driver model #228

Open droe opened 6 years ago

droe commented 6 years ago

Refactor the grown mess that is the current log subsystem into a driver model, where code is structured in separate drivers plus a central management part that is decoupled from the details of the individual log types. Look into how to share resources between drivers in a least messy way.

Additionally think about whether and how to minimize copying when multiple content logs are enabled, e.g. by adding atomics-protected reference counting and a include-this-here pointer to log buffers.