Skip to content

Commit

Permalink
chore(tls): Move tls/ext/cert to tls/cert
Browse files Browse the repository at this point in the history
  • Loading branch information
0x676e67 committed Jan 23, 2025
1 parent 6b01366 commit d7d2335
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/tls/ext/mod.rs → src/tls/ext.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
mod cert;
use super::cert::{compression::CertCompressionAlgorithm, load, RootCertStore};
use super::{AlpnProtos, AlpsProtos, TlsResult, TlsVersion};
use ::std::os::raw::c_int;
use boring2::error::ErrorStack;
use boring2::ssl::{ConnectConfiguration, SslConnectorBuilder, SslRef, SslVerifyMode};
use boring_sys2 as ffi;
pub use cert::{compression::CertCompressionAlgorithm, load, RootCertStore};
use foreign_types::ForeignTypeRef;

/// Error handler for the boringssl functions.
Expand Down
7 changes: 3 additions & 4 deletions src/tls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//! - Various parts of TLS can also be configured or even disabled on the
//! `ClientBuilder`.
mod cert;
mod conn;
mod ext;

Expand All @@ -18,11 +19,9 @@ use conn::{HttpsLayer, HttpsLayerSettings};
use std::borrow::Cow;
use typed_builder::TypedBuilder;

pub use cert::{compression::CertCompressionAlgorithm, RootCertStore};
pub use conn::{HttpsConnector, MaybeHttpsStream};
pub use ext::{
CertCompressionAlgorithm, ConnectConfigurationExt, RootCertStore, SslConnectorBuilderExt,
SslRefExt,
};
pub use ext::{ConnectConfigurationExt, SslConnectorBuilderExt, SslRefExt};

type TlsResult<T> = Result<T, ErrorStack>;

Expand Down

0 comments on commit d7d2335

Please sign in to comment.