Skip to content

Commit

Permalink
support schannel
Browse files Browse the repository at this point in the history
  • Loading branch information
youyuanwu committed Nov 29, 2024
1 parent 77fe8b2 commit 09c8e10
Show file tree
Hide file tree
Showing 9 changed files with 963 additions and 430 deletions.
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ tokio-native-tls = "0.3"
tokio-openssl = "0.6"
openssl = "0.10"

# schannel
tokio-schannel = "0.1"
schannel = "0.1"

# for dev only
rcgen = {version = "0.13", default-features = true }
tokio-util = "0.7"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Use `tonic` with various tls backends:
* [native-tls](https://github.com/sfackler/rust-native-tls)
* [rustls](https://github.com/rustls/rustls)
* [openssl](https://github.com/sfackler/rust-openssl)
* [schannel](https://github.com/steffengy/schannel-rs)

# License
This project is licensed under the MIT license.
4 changes: 3 additions & 1 deletion tonic-tls-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ rcgen.workspace = true
tokio-util.workspace = true
tokio-stream.workspace = true
prost.workspace = true
tonic-tls = { workspace = true, features = ["native", "rustls", "openssl"] }
tonic-tls = { workspace = true, features = ["native", "rustls", "openssl", "schannel"] }
futures.workspace = true
tokio-native-tls.workspace = true
tokio-schannel.workspace = true
schannel.workspace = true

[build-dependencies]
tonic-build = "0.12"
Expand Down
Loading

0 comments on commit 09c8e10

Please sign in to comment.