rust-native-tls

时间:2021-05-03 11:47:38
【文件属性】:
文件名称:rust-native-tls
文件大小:29KB
文件格式:ZIP
更新时间:2021-05-03 11:47:38
Rust rust-native-tls 对特定于平台的TLS实现的抽象。 具体而言,此板条箱在Windows(通过板箱)上使用SChannel,在macOS(通过板条箱)上使用安全传输,在所有其他平台上使用OpenSSL(通过板箱)。 安装 # Cargo.toml [ dependencies ] native-tls = " 0.2 " 用法 一个示例客户端如下所示: extern crate native_tls; use native_tls :: TlsConnector; use std :: io :: {Read, Write}; use std :: net :: TcpStream; fn main () { let connector = TlsConnector :: new (). unwrap (); let stream = TcpStream :
【文件预览】:
rust-native-tls-master
----.gitignore(38B)
----LICENSE-MIT(1KB)
----README.md(2KB)
----CHANGELOG.md(4KB)
----.github()
--------workflows()
----Cargo.toml(940B)
----examples()
--------simple-server.rs(1KB)
--------google-connect.rs(489B)
----LICENSE-APACHE(11KB)
----build.rs(539B)
----src()
--------imp()
--------lib.rs(22KB)
--------test.rs(11KB)

网友评论