summaryrefslogtreecommitdiff
path: root/ext/kv/remote.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-04-08 15:01:02 -0600
committerGitHub <noreply@github.com>2024-04-08 15:01:02 -0600
commitcb12a9350332860971387e3a1fb40dc77fa992d3 (patch)
tree287def7ddad815423f8bc4196a76f9546940435d /ext/kv/remote.rs
parent3826598974efd44c9d3da7694c0a325b011bc20a (diff)
refactor(ext/tls): use cppgc to deduplicate the tls key loading code (#23289)
Pass the certificates and key files as CPPGC objects. Towards #23233
Diffstat (limited to 'ext/kv/remote.rs')
-rw-r--r--ext/kv/remote.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/kv/remote.rs b/ext/kv/remote.rs
index 007f6aff6..88127fc8f 100644
--- a/ext/kv/remote.rs
+++ b/ext/kv/remote.rs
@@ -16,6 +16,7 @@ use deno_fetch::CreateHttpClientOptions;
use deno_tls::rustls::RootCertStore;
use deno_tls::Proxy;
use deno_tls::RootCertStoreProvider;
+use deno_tls::TlsKey;
use denokv_remote::MetadataEndpoint;
use denokv_remote::Remote;
use url::Url;
@@ -26,7 +27,7 @@ pub struct HttpOptions {
pub root_cert_store_provider: Option<Arc<dyn RootCertStoreProvider>>,
pub proxy: Option<Proxy>,
pub unsafely_ignore_certificate_errors: Option<Vec<String>>,
- pub client_cert_chain_and_key: Option<(String, String)>,
+ pub client_cert_chain_and_key: Option<TlsKey>,
}
impl HttpOptions {