https://github.com/tmccombs/tls-listener
Rust wrapper around a connection listener to support TLS.
https://github.com/tmccombs/tls-listener
Last synced: about 1 year ago
JSON representation
Rust wrapper around a connection listener to support TLS.
- Host: GitHub
- URL: https://github.com/tmccombs/tls-listener
- Owner: tmccombs
- License: apache-2.0
- Created: 2019-01-29T07:25:03.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-10-06T20:25:48.000Z (almost 2 years ago)
- Last Synced: 2024-10-13T20:41:55.363Z (over 1 year ago)
- Language: Rust
- Size: 127 KB
- Stars: 52
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# tls-listener
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://crates.io/crates/tls-listener)
[](https://docs.rs/tls-listener)
[](https://github.com/tmccombs/tls-listener/actions?query=workflow%3ACI)
This library is intended to automatically initiate a TLS connection
as for each new connection in a source of new streams (such as a listening
TCP or unix domain socket).
It can be used to easily create a `Stream` of TLS connections from a listening socket.
See examples for examples of usage.
You must enable either one of the `rustls` (more details below), `native-tls`, or `openssl`
features depending on which implementation you would like to use.
When enabling the `rustls` feature, the `rustls` crate will be added as a dependency along
with it's default [cryptography provider](https://docs.rs/rustls/latest/rustls/#cryptography-providers).
To avoid this behaviour and use other cryptography providers, the `rustls-core` feature can be used instead.
Additional feature flags for other [rustls built-in cryptography providers](https://docs.rs/rustls/latest/rustls/#built-in-providers) are also available:
`rustls-aws-lc` (default), `rustls-fips` and `rustls-ring`