boringtun
boringtun copied to clipboard
WIP refactor: de-couple from `Instant::now`
This is a first stab at #391. I've not looked at the mock-instant now but I'd assume that this can now be deleted and the tests written in a better way.
However, I wanted to get a first draft up to see hear what people think and to get a feeling for what the API would look like. What is a bit annoying is that we need to expose both Instant and unix_now from Tunn::new.
Replaced by https://github.com/cloudflare/boringtun/pull/417.