Refactor boringssl_openssl into submodules in preparation for rustls integration

This commit is contained in:
Kevin Guthrie 2024-08-18 11:30:51 -04:00 committed by Yuchen Wu
parent 4f45792d80
commit e564cd535a
9 changed files with 22 additions and 6 deletions

2
.bleep
View file

@ -1 +1 @@
fdc26b8f9eefd902a1e27d4ef1aafc480a6db305
3eb2a9750ec02867bec91a4069796faae8cd860c

View file

@ -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;

View file

@ -0,0 +1,5 @@
#[cfg(feature = "some_tls")]
mod boringssl_openssl;
#[cfg(feature = "some_tls")]
pub use boringssl_openssl::*;

View file

@ -0,0 +1,5 @@
#[cfg(feature = "some_tls")]
mod boringssl_openssl;
#[cfg(feature = "some_tls")]
pub use boringssl_openssl::*;

View file

@ -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,
};

View file

@ -0,0 +1,2 @@
pub mod client;
pub mod server;

View file

@ -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;

View file

@ -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;