Skip to content

Commit

Permalink
Initial support for TLS (#247)
Browse files Browse the repository at this point in the history
* Update README.md

* added variants for tls conn

* server performs tls handshake if tls_config exists

* need alt for make tls transport

* modified ServerTlsConfig, added ClientTlsConfig

* adding tls_config method

* changed client tls connector to an enum

* stop tracking Cargo.lock

* wrap native tls acceptor/connector with Arc

* cargo fmt

* added #[cfg] to deal w/ unused imports

* replace cfg attr w/ macro

* pub re-export TlsAcceptor and ServerTlsConfig

* added more cfg for rustls and native-tls

* changed cfg attr to macro

* made client tls config fields public

* added constructors

* added tls connector

* added example for tls

* moved dep features behind tls feature

* removed attr impl_trait_in_assoc_type

* moved deps to workspace

* feature gate mod tls and re-export

* move dep to workspace

* minor fix

* gate import behind feature gate

* renamed domain to server_name

* cargo fmt and hide import behind feature

* remove Cargo.lock from gitignore

* only enable doc_cfg when building on docs.rs
  • Loading branch information
minghuaw authored Oct 27, 2023
1 parent 9f25f62 commit 4981534
Show file tree
Hide file tree
Showing 25 changed files with 1,059 additions and 116 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.vscode
.idea
/target
/target
Loading

0 comments on commit 4981534

Please sign in to comment.