diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs index dc76fdb1b7..43652a9fe8 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, hostname: String, } -async fn op_tls_start( +pub async fn op_tls_start( state: Rc>, args: StartTlsArgs, _: (), @@ -1013,7 +1013,7 @@ pub struct ListenTlsArgs { alpn_protocols: Option>, } -fn op_tls_listen( +pub fn op_tls_listen( state: &mut OpState, args: ListenTlsArgs, _: (), @@ -1073,7 +1073,7 @@ where }) } -async fn op_tls_accept( +pub async fn op_tls_accept( state: Rc>, rid: ResourceId, _: (), @@ -1123,7 +1123,7 @@ async fn op_tls_accept( }) } -async fn op_tls_handshake( +pub async fn op_tls_handshake( state: Rc>, rid: ResourceId, _: (),