diff options
author | Kevin Guthrie <[email protected]> | 2024-10-15 13:56:22 -0400 |
---|---|---|
committer | Kevin Guthrie <[email protected]> | 2024-10-28 11:51:38 -0400 |
commit | d445e749f3f4116bd0a1af7ac6050f57838f359a (patch) | |
tree | fbf7dc0bf1a243e320aa668b6da9f1640e58ddd2 /pingora-proxy | |
parent | 354a6ee1e99b82e23fc0f27a37d8bf41e62b2dc5 (diff) | |
download | pingora-d445e749f3f4116bd0a1af7ac6050f57838f359a.tar.gz pingora-d445e749f3f4116bd0a1af7ac6050f57838f359a.zip |
Plumb errors through rustls implementation
Diffstat (limited to 'pingora-proxy')
-rw-r--r-- | pingora-proxy/tests/test_basic.rs | 4 | ||||
-rw-r--r-- | pingora-proxy/tests/utils/cert.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pingora-proxy/tests/test_basic.rs b/pingora-proxy/tests/test_basic.rs index f33a247..e305b5e 100644 --- a/pingora-proxy/tests/test_basic.rs +++ b/pingora-proxy/tests/test_basic.rs @@ -566,7 +566,7 @@ async fn test_tls_underscore_non_sub_sni_verify_host() { assert_eq!(headers[header::CONNECTION], "close"); } -#[cfg(feature = "any_tls")] +#[cfg(feature = "openssl_derived")] #[tokio::test] async fn test_tls_alt_verify_host() { init(); @@ -585,7 +585,7 @@ async fn test_tls_alt_verify_host() { assert_eq!(res.status(), StatusCode::OK); } -#[cfg(feature = "any_tls")] +#[cfg(feature = "openssl_derived")] #[tokio::test] async fn test_tls_underscore_sub_alt_verify_host() { init(); diff --git a/pingora-proxy/tests/utils/cert.rs b/pingora-proxy/tests/utils/cert.rs index fb6f54c..5cdcec4 100644 --- a/pingora-proxy/tests/utils/cert.rs +++ b/pingora-proxy/tests/utils/cert.rs @@ -66,11 +66,11 @@ fn load_key(path: &str) -> PKey<Private> { #[cfg(feature = "rustls")] fn load_cert(path: &str) -> Vec<u8> { let path = format!("{}/{path}", super::conf_dir()); - load_pem_file_ca(&path) + load_pem_file_ca(&path).unwrap() } #[cfg(feature = "rustls")] fn load_key(path: &str) -> Vec<u8> { let path = format!("{}/{path}", super::conf_dir()); - load_pem_file_private_key(&path) + load_pem_file_private_key(&path).unwrap() } |