Skip to content

Commit

Permalink
Export rustls types
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanzeidler committed Jul 14, 2023
1 parent e652b6d commit 707a06c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions quinn-proto/src/crypto/rustls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ use rustls::{
quic::{Connection, HeaderProtectionKey, KeyChange, PacketKey, Secrets, Version},
};

/// Rustls reexport of types that can be used to avoid adding rustls as a
/// dependency. Also helps against incompatibilities if another version of
/// rustls is used in other parts of the code.
pub mod reexport {
pub use rustls::*;
}

use crate::{
crypto::{
self, CryptoError, ExportKeyingMaterialError, HeaderKey, KeyPair, Keys, UnsupportedVersion,
Expand Down

0 comments on commit 707a06c

Please sign in to comment.