| /tonic/tonic/src/transport/channel/service/ |
| H A D | connector.rs | 20 tls: Option<TlsConnector>, field 24 pub(crate) fn new(inner: C, #[cfg(feature = "_tls-any")] tls: Option<TlsConnector>) -> Self { in new() 28 tls, in new() 52 let tls = self.tls.clone(); in call() localVariable 64 return if let Some(tls) = tls { in call() 65 let io = tls.connect(TokioIo::new(io)).await?; in call()
|
| H A D | mod.rs | 27 mod tls; module 29 pub(super) use self::tls::TlsConnector;
|
| H A D | tls.rs | 16 use crate::transport::service::tls::{ 19 use crate::transport::tls::{Certificate, Identity};
|
| /tonic/examples/ |
| H A D | Cargo.toml | 58 name = "tls-client" 59 path = "src/tls/client.rs" 60 required-features = ["tls"] 63 name = "tls-server" 64 path = "src/tls/server.rs" 65 required-features = ["tls"] 68 name = "tls-rustls-client" 73 name = "tls-rustls-server" 78 name = "tls-client-auth-server" 264 tls = ["tonic/tls-ring"] [all …]
|
| H A D | README.md | 104 $ cargo run --bin tls-client 110 $ cargo run --bin tls-server
|
| /tonic/tonic/src/transport/ |
| H A D | mod.rs | 99 mod tls; module 110 pub use self::tls::Certificate; 120 pub use self::tls::Identity;
|
| /tonic/tonic/src/transport/server/service/ |
| H A D | mod.rs | 5 mod tls; module 7 pub(crate) use self::tls::TlsAcceptor;
|
| H A D | tls.rs | 11 service::tls::{convert_certificate_to_pki_types, convert_identity_to_pki_types, ALPN_H2},
|
| /tonic/examples/src/tls_rustls/ |
| H A D | client.rs | 27 let tls = ClientConfig::builder() in main() localVariable 39 let tls = tls.clone(); in main() localVariable 42 .with_tls_config(tls) in main()
|
| H A D | server.rs | 38 let mut tls = ServerConfig::builder() in main() localVariable 41 tls.alpn_protocols = vec![b"h2".to_vec()]; in main() 50 let tls_acceptor = TlsAcceptor::from(Arc::new(tls)); in main()
|
| /tonic/tonic/src/transport/server/ |
| H A D | io_stream.rs | 40 pub(crate) fn new(incoming: S, #[cfg(feature = "_tls-any")] tls: Option<TlsAcceptor>) -> Self { in new() 44 state: tls.map(|tls| State(tls, JoinSet::new())), in new() 86 let Some(State(tls, tasks)) = projected.state else { in poll_next() 94 let tls = tls.clone(); in poll_next() localVariable 96 let io = tls.accept(stream).await?; in poll_next()
|
| H A D | tls.rs | 4 use crate::transport::tls::{Certificate, Identity};
|
| H A D | mod.rs | 8 mod tls; module 28 pub use tls::ServerTlsConfig; 94 tls: Option<TlsAcceptor>, field 118 tls: None, in default() 161 tls: Some(tls_config.tls_acceptor().map_err(Error::from_source)?), in tls_config() 521 tls: self.tls, in layer() 669 self.tls, in serve_internal()
|
| /tonic/examples/src/tls/ |
| H A D | client.rs | 14 let tls = ClientTlsConfig::new() in main() localVariable 19 .tls_config(tls)? in main()
|
| /tonic/.github/workflows/ |
| H A D | CI.yml | 63 …- run: cargo hack udeps --workspace --exclude-features=_tls-any,tls,tls-aws-lc,tls-ring --each-fea… 64 - run: cargo udeps --package tonic --features tls-ring,transport 65 - run: cargo udeps --package tonic --features tls-ring,server 66 - run: cargo udeps --package tonic --features tls-ring,channel 67 - run: cargo udeps --package tonic --features tls-aws-lc,transport 68 - run: cargo udeps --package tonic --features tls-aws-lc,server 69 - run: cargo udeps --package tonic --features tls-aws-lc,channel
|
| /tonic/tonic/ |
| H A D | Cargo.toml | 32 …p:tokio", "tokio?/rt", "tokio?/macros"] # Internal. Please choose one of `tls-ring` or `tls-aws-lc` 33 tls-ring = ["_tls-any", "tokio-rustls/ring"] 34 tls-aws-lc = ["_tls-any", "tokio-rustls/aws-lc-rs"] 35 tls-native-roots = ["_tls-any", "channel", "dep:rustls-native-certs"] 36 tls-webpki-roots = ["_tls-any","channel", "dep:webpki-roots"]
|
| /tonic/examples/src/tls_client_auth/ |
| H A D | client.rs | 17 let tls = ClientTlsConfig::new() in main() localVariable 23 .tls_config(tls)? in main()
|
| H A D | server.rs | 41 let tls = ServerTlsConfig::new() in main() localVariable 46 .tls_config(tls)? in main()
|
| /tonic/tonic/src/transport/service/ |
| H A D | mod.rs | 3 pub(crate) mod tls; module
|
| /tonic/interop/ |
| H A D | Cargo.toml | 27 tonic = {path = "../tonic", features = ["tls-ring"]}
|
| /tonic/tonic/src/transport/channel/ |
| H A D | endpoint.rs | 27 pub(crate) tls: Option<TlsConnector>, field 251 tls: Some( in tls_config() 325 self.tls.clone(), in connector() 454 tls: None, in from()
|
| H A D | tls.rs | 3 tls::{Certificate, Identity},
|
| H A D | mod.rs | 6 mod tls; module 11 pub use tls::ClientTlsConfig;
|
| /tonic/ |
| H A D | CHANGELOG.md | 23 * **tls:** Rename tls-roots feature with tls-native-roots (#1860) 57 * **tls:** Add ability to add multiple ca certificates ([#1724](https://github.com/hyperium/tonic/i… 59 * **tls:** Remove tls roots implicit configuration ([#1731](https://github.com/hyperium/tonic/issue… 120 * **examples:** Use https scheme when using tls ([#1466](https://github.com/hyperium/tonic/issues/1… 121 * **tls:** Don't use tls w/ `http` scheme ([#1454](https://github.com/hyperium/tonic/issues/1454)) … 251 * **transport:** Emit `HttpsUriWithoutTlsSupport` only w/ tls feat ([#996](https://github.com/hyper… 296 * **tls:** upgrade to tokio-rustls 0.23 (rustls 0.20) ([#859](https://github.com/hyperium/tonic/iss… 550 * **transport:** Handle tls accepting on task ([#320](https://github.com/hyperium/tonic/issues/320)… 570 * **transport:** Use Uri host if no domain for tls ([#244](https://github.com/hyperium/tonic/issues… 622 * **transport:** Remove with_rustls for tls config ([#188](https://github.com/hyperium/tonic/issues… [all …]
|
| H A D | README.md | 70 - [`examples`]: Example gRPC implementations showing off tls, load balancing and bi-directional str…
|