From cb12a9350332860971387e3a1fb40dc77fa992d3 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Mon, 8 Apr 2024 15:01:02 -0600 Subject: refactor(ext/tls): use cppgc to deduplicate the tls key loading code (#23289) Pass the certificates and key files as CPPGC objects. Towards #23233 --- ext/kv/remote.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/kv') 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>, pub proxy: Option, pub unsafely_ignore_certificate_errors: Option>, - pub client_cert_chain_and_key: Option<(String, String)>, + pub client_cert_chain_and_key: Option, } impl HttpOptions { -- cgit v1.2.3