summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2021-11-09 02:07:12 +0100
committerGitHub <noreply@github.com>2021-11-09 02:07:12 +0100
commit66974a8794fb694b022201b5f13c653b9ed9cfda (patch)
tree1e995e3416c291481fbf2fa22ac1c721f78f1dc0
parentccd730a8b77c188657ec15b5d096f62a24bd0be6 (diff)
fix(ext/net): expose all tls ops (#12699)
This makes it possible for implementers to cherry-pick which ops they want to use.
-rw-r--r--ext/net/ops_tls.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs
index dc76fdb1b..43652a9fe 100644
--- a/ext/net/ops_tls.rs
+++ b/ext/net/ops_tls.rs
@@ -774,13 +774,13 @@ pub struct ConnectTlsArgs {
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
-struct StartTlsArgs {
+pub struct StartTlsArgs {
rid: ResourceId,
ca_certs: Vec<String>,
hostname: String,
}
-async fn op_tls_start<NP>(
+pub async fn op_tls_start<NP>(
state: Rc<RefCell<OpState>>,
args: StartTlsArgs,
_: (),
@@ -1013,7 +1013,7 @@ pub struct ListenTlsArgs {
alpn_protocols: Option<Vec<String>>,
}
-fn op_tls_listen<NP>(
+pub fn op_tls_listen<NP>(
state: &mut OpState,
args: ListenTlsArgs,
_: (),
@@ -1073,7 +1073,7 @@ where
})
}
-async fn op_tls_accept(
+pub async fn op_tls_accept(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
_: (),
@@ -1123,7 +1123,7 @@ async fn op_tls_accept(
})
}
-async fn op_tls_handshake(
+pub async fn op_tls_handshake(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
_: (),