Skip to content

Commit fbc30ad

Browse files
committed
Add reusable Tokio TLS client connector
1 parent 309bf35 commit fbc30ad

10 files changed

Lines changed: 540 additions & 208 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ jobs:
397397

398398
test-boringssl:
399399
name: Test BoringSSL upstream test suite
400-
runs-on: ubuntu-latest
400+
runs-on: ubuntu-24.04
401401
steps:
402402
- uses: actions/checkout@v7
403403
with:

‎hyper-boring/Cargo.toml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ default = ["boring/default", "tokio-boring/default"]
2222
fips = ["boring/fips", "tokio-boring/fips"]
2323

2424
[dependencies]
25-
antidote = { workspace = true }
2625
http = { workspace = true }
2726
hyper = { workspace = true }
2827
hyper-util = { workspace = true, features = ["client", "client-legacy"] }
29-
linked_hash_set = { workspace = true }
3028
boring = { workspace = true, default-features = false }
3129
tokio = { workspace = true }
3230
tokio-boring = { workspace = true, default-features = false }

‎hyper-boring/src/cache.rs‎

Lines changed: 0 additions & 100 deletions
This file was deleted.

‎hyper-boring/src/lib.rs‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
//! Hyper SSL support via BoringSSL.
22
#![warn(missing_docs)]
33

4-
use crate::cache::SessionKey;
5-
use boring::error::ErrorStack;
6-
use boring::ex_data::Index;
7-
use boring::ssl::Ssl;
84
use std::fmt;
9-
use std::sync::LazyLock;
105
use tokio_boring::SslStream;
116

12-
mod cache;
137
mod v1;
148

159
pub use self::v1::*;
1610

17-
fn key_index() -> Result<Index<Ssl, SessionKey>, ErrorStack> {
18-
static IDX: LazyLock<Result<Index<Ssl, SessionKey>, ErrorStack>> =
19-
LazyLock::new(Ssl::new_ex_index);
20-
IDX.clone()
21-
}
22-
2311
/// Settings for [`HttpsLayer`]
2412
pub struct HttpsLayerSettings {
2513
session_cache_capacity: usize,

0 commit comments

Comments
 (0)