mirror of
https://github.com/cloudflare/pingora.git
synced 2024-09-20 02:31:35 +02:00
Refactor boringssl_openssl
into submodules in preparation for rustls integration
This commit is contained in:
parent
4f45792d80
commit
e564cd535a
9 changed files with 22 additions and 6 deletions
2
.bleep
2
.bleep
|
@ -1 +1 @@
|
|||
fdc26b8f9eefd902a1e27d4ef1aafc480a6db305
|
||||
3eb2a9750ec02867bec91a4069796faae8cd860c
|
|
@ -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;
|
5
pingora-core/src/connectors/tls/mod.rs
Normal file
5
pingora-core/src/connectors/tls/mod.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
#[cfg(feature = "some_tls")]
|
||||
mod boringssl_openssl;
|
||||
|
||||
#[cfg(feature = "some_tls")]
|
||||
pub use boringssl_openssl::*;
|
5
pingora-core/src/listeners/tls/mod.rs
Normal file
5
pingora-core/src/listeners/tls/mod.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
#[cfg(feature = "some_tls")]
|
||||
mod boringssl_openssl;
|
||||
|
||||
#[cfg(feature = "some_tls")]
|
||||
pub use boringssl_openssl::*;
|
|
@ -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,
|
||||
};
|
2
pingora-core/src/protocols/tls/boringssl_openssl/mod.rs
Normal file
2
pingora-core/src/protocols/tls/boringssl_openssl/mod.rs
Normal file
|
@ -0,0 +1,2 @@
|
|||
pub mod client;
|
||||
pub mod server;
|
|
@ -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;
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue