Skip to content

Commit

Permalink
proto: guard rustls-specific types
Browse files Browse the repository at this point in the history
  • Loading branch information
djc authored and Ralith committed May 3, 2024
1 parent de3f637 commit 7af5296
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion quinn-proto/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ use std::{

#[cfg(feature = "ring")]
use rand::RngCore;
#[cfg(feature = "rustls")]
use rustls::client::WebPkiServerVerifier;
#[cfg(feature = "rustls")]
use rustls::pki_types::{CertificateDer, PrivateKeyDer};
use thiserror::Error;

#[cfg(feature = "rustls")]
use crate::crypto::rustls::QuicServerConfig;
use crate::{
cid_generator::{ConnectionIdGenerator, HashedConnectionIdGenerator},
congestion,
crypto::{self, rustls::QuicServerConfig, HandshakeTokenKey, HmacKey},
crypto::{self, HandshakeTokenKey, HmacKey},
VarInt, VarIntBoundsExceeded, DEFAULT_SUPPORTED_VERSIONS, INITIAL_MTU, MAX_UDP_PAYLOAD,
};

Expand Down

0 comments on commit 7af5296

Please sign in to comment.