Skip to content

Commit

Permalink
Refactor boringssl_openssl into submodules in preparation for rustl…
Browse files Browse the repository at this point in the history
…s integration
  • Loading branch information
johnhurt authored and eaufavor committed Aug 30, 2024
1 parent 4f45792 commit e564cd5
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .bleep
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fdc26b8f9eefd902a1e27d4ef1aafc480a6db305
3eb2a9750ec02867bec91a4069796faae8cd860c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use log::debug;
use pingora_error::{Error, ErrorType::*, OrErr, Result};
use std::sync::{Arc, Once};

use super::ConnectorOptions;
use crate::connectors::ConnectorOptions;
use crate::protocols::tls::client::handshake;
use crate::protocols::tls::SslStream;
use crate::protocols::IO;
Expand Down
5 changes: 5 additions & 0 deletions pingora-core/src/connectors/tls/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[cfg(feature = "some_tls")]
mod boringssl_openssl;

#[cfg(feature = "some_tls")]
pub use boringssl_openssl::*;
File renamed without changes.
5 changes: 5 additions & 0 deletions pingora-core/src/listeners/tls/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[cfg(feature = "some_tls")]
mod boringssl_openssl;

#[cfg(feature = "some_tls")]
pub use boringssl_openssl::*;
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

//! TLS client specific implementation
use super::SslStream;
use crate::protocols::raw_connect::ProxyDigest;
use crate::protocols::tls::SslStream;
use crate::protocols::{
GetProxyDigest, GetSocketDigest, GetTimingDigest, SocketDigest, TimingDigest, IO,
};
Expand Down
2 changes: 2 additions & 0 deletions pingora-core/src/protocols/tls/boringssl_openssl/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod client;
pub mod server;
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

//! TLS server specific implementation
use super::SslStream;
use crate::protocols::tls::SslStream;
use crate::protocols::{Shutdown, IO};
use crate::tls::ext;
use crate::tls::ext::ssl_from_acceptor;
Expand Down
8 changes: 6 additions & 2 deletions pingora-core/src/protocols/tls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@

//! The TLS layer implementations
pub mod client;
pub mod digest;
pub mod server;

#[cfg(feature = "some_tls")]
mod boringssl_openssl;

#[cfg(feature = "some_tls")]
pub use boringssl_openssl::*;

#[cfg(not(feature = "some_tls"))]
pub mod dummy_tls;
Expand Down

0 comments on commit e564cd5

Please sign in to comment.