Closed nmittler closed 1 year ago
This is work-in-progress, but I wanted to send it out for early feedback. I had to make a number of things public to get things working, so I expect that will be a focal point of discussion.
I included a single example
test that runs the lifecycle
test with the rustls provider.
@djc PTAL. I managed to get this working by using a slightly modified version of the visibility macro.
I'm not that excited about using the visibility macro for this. I still think the reverse dependency is probably a less invasive solution.
@djc understood. I'll go ahead and close this and will open others shortly.
Based on an idea proposed in #1488. Creates a separate crate for testing crypto providers. The new crate
quinn-test
contains a copy of the original testing code fromquinn-proto
, but refactored to introduce the idea of aCryptoProvider
that is used to provide crypto client/server config for the endpoints. ASuite
combines a client and serverCryptoProvider
and contains all of the testing methods.