net/quinn: Fix test panic due to unset default crypto provider

If another dep in the workspace pulls in a different rustls crypto
provider then we need to explicitly specify our default provider.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1801>
This commit is contained in:
kingosticks 2024-10-22 23:45:17 +01:00 committed by GStreamer Marge Bot
parent 9b4942c6dd
commit a81b7f380f

View file

@ -18,6 +18,9 @@ fn init() {
INIT.call_once(|| {
gst::init().unwrap();
gstquinn::plugin_register_static().expect("QUIC source sink send receive tests");
rustls::crypto::ring::default_provider()
.install_default()
.expect("Failed to install ring crypto provider");
});
}