quinn: add support for Sec1 keys

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1867>
This commit is contained in:
Andoni Morales Alastruey 2024-10-14 10:46:46 +02:00 committed by GStreamer Marge Bot
parent cf8b49b257
commit 62e49b3ed5

View file

@ -328,6 +328,7 @@ fn read_private_key_from_file(
match key_item { match key_item {
rustls_pemfile::Item::Pkcs1Key(key) => rustls_pki_types::PrivateKeyDer::from(key), rustls_pemfile::Item::Pkcs1Key(key) => rustls_pki_types::PrivateKeyDer::from(key),
rustls_pemfile::Item::Pkcs8Key(key) => rustls_pki_types::PrivateKeyDer::from(key), rustls_pemfile::Item::Pkcs8Key(key) => rustls_pki_types::PrivateKeyDer::from(key),
rustls_pemfile::Item::Sec1Key(key) => rustls_pki_types::PrivateKeyDer::from(key),
_ => unimplemented!(), _ => unimplemented!(),
} }
}; };