mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
fix(ext/net): expose all tls ops (#12699)
This makes it possible for implementers to cherry-pick which ops they want to use.
This commit is contained in:
parent
ccd730a8b7
commit
66974a8794
1 changed files with 5 additions and 5 deletions
|
@ -774,13 +774,13 @@ pub struct ConnectTlsArgs {
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
struct StartTlsArgs {
|
pub struct StartTlsArgs {
|
||||||
rid: ResourceId,
|
rid: ResourceId,
|
||||||
ca_certs: Vec<String>,
|
ca_certs: Vec<String>,
|
||||||
hostname: String,
|
hostname: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn op_tls_start<NP>(
|
pub async fn op_tls_start<NP>(
|
||||||
state: Rc<RefCell<OpState>>,
|
state: Rc<RefCell<OpState>>,
|
||||||
args: StartTlsArgs,
|
args: StartTlsArgs,
|
||||||
_: (),
|
_: (),
|
||||||
|
@ -1013,7 +1013,7 @@ pub struct ListenTlsArgs {
|
||||||
alpn_protocols: Option<Vec<String>>,
|
alpn_protocols: Option<Vec<String>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn op_tls_listen<NP>(
|
pub fn op_tls_listen<NP>(
|
||||||
state: &mut OpState,
|
state: &mut OpState,
|
||||||
args: ListenTlsArgs,
|
args: ListenTlsArgs,
|
||||||
_: (),
|
_: (),
|
||||||
|
@ -1073,7 +1073,7 @@ where
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn op_tls_accept(
|
pub async fn op_tls_accept(
|
||||||
state: Rc<RefCell<OpState>>,
|
state: Rc<RefCell<OpState>>,
|
||||||
rid: ResourceId,
|
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>>,
|
state: Rc<RefCell<OpState>>,
|
||||||
rid: ResourceId,
|
rid: ResourceId,
|
||||||
_: (),
|
_: (),
|
||||||
|
|
Loading…
Reference in a new issue