Commit Graph

67 Commits

Author SHA1 Message Date
quininer
163a96b062 fix clippy 2019-02-23 01:48:09 +08:00
quininer
681cbe68ca fix: not write zero 2019-02-23 01:38:55 +08:00
quininer
527db99d02 Improve for ServerSesssion 2019-02-18 20:41:52 +08:00
quininer
65932f5150 Add 0-RTT test 2019-02-18 20:01:37 +08:00
quininer
3e605aafe4 Add 0-RTT support 2019-02-18 16:51:31 +08:00
quininer
5f6d0233ed tokio only
* remove io::Read/io::Write support
* stable vecio
2019-02-16 01:39:10 +08:00
Erick Tryzelaar
6f1787e9d1 Shrink down the dependency on tokio
it turns out that tokio-rustls only requires a small portion of
the tokio stack. This patch slims down the dependencies since not
all clients need the full tokio stack.
2019-01-11 14:31:45 -08:00
quininer
1f98d87a62 more complete handshake 2018-09-25 01:10:30 +08:00
quininer
30cacd04a0 fix nightly feature 2018-09-24 02:09:28 +08:00
quininer
6b493615a9 rename generic name 2018-09-24 01:25:50 +08:00
quininer
f633a72f02 Merge branch 'master' into new-api 2018-09-17 20:09:50 +08:00
quininer
9378e415ce impl read_initializer 2018-09-06 13:56:00 +08:00
quininer
f698c44e1a Add stream test 2018-08-18 15:22:51 +08:00
quininer
482f3c3aa6 impl prepare_uninitialized_buffer 2018-08-17 13:07:26 +08:00
quininer
6b00b07de3 Merge branch 'master' into vecio 2018-08-17 10:05:05 +08:00
quininer
762d7f9525 Add nightly feature 2018-08-17 10:04:49 +08:00
quininer
5cbd5b8aa0 fix: handle Stream non-blocking write 2018-08-17 09:25:54 +08:00
quininer
f70ad6d822 fix vecbuf bytes_vec 2018-08-16 22:35:50 +08:00
quininer
b040a9a65f Test use lazy_static! 2018-08-16 22:07:12 +08:00
quininer
4a2354c1cc rename tokio feature 2018-08-16 19:13:18 +08:00
quininer
3faca3ee3d Merge branch 'master' into vecio 2018-08-16 19:04:12 +08:00
quininer
26046efc3c fix vecbuf 2018-08-16 18:59:35 +08:00
quininer
32f328fc14 remove futures 0.2 code 2018-08-16 18:00:21 +08:00
quininer
518ad51376 impl complete_io 2018-08-16 15:29:16 +08:00
quininer
41a6a3b501 impl vecbuf for tokio 2018-08-16 12:20:27 +08:00
quininer
37954cd647 use tokio-tls 0.2 api 2018-08-09 10:46:28 +08:00
Sander Maijers
b4aa18277f
Reexport deps
This helps encapsulate deps and match crate versions for downstream use.
2018-07-16 12:50:05 +02:00
quininer
be00ca6168 change: split futures crate 2018-04-14 18:17:04 +08:00
quininer
fff2f4a73b fix(tokio_impl): shutdown WouldBlock 2018-03-31 15:16:31 +08:00
quininer
d0f13ce5f9 change: update tokio 2018-03-24 11:20:48 +08:00
quininer
062c10e31e fix futures_impl flush/close and README 2018-03-24 00:46:21 +08:00
quininer
fddb77759f feat: handle CloseNotify alert 2018-03-23 19:03:30 +08:00
quininer
034357336e remove deadcode 2018-03-23 17:59:24 +08:00
quininer
1892fdb609 remove tokio-proto support 2018-03-23 17:47:44 +08:00
quininer
1820868929 fix: futures_impl 2018-03-23 17:31:55 +08:00
quininer
64ca6e290c change: use rustls Stream 2018-03-23 17:14:27 +08:00
quininer
d4cb46e895 feat: start futures_impl 2018-03-22 19:47:27 +08:00
quininer
72de25ebce change: impl io::{Read,Write} 2018-03-21 21:44:36 +08:00
quininer
8c79329c7a feat: split tokio_impl/futures_impl 2018-03-21 13:08:47 +08:00
quininer
9f78454cf1 feat: try futures 0.2 2018-03-20 20:17:44 +08:00
Brian Smith
51ed8da9cb Update to in-progress Rustls, webpki, and webpki-roots.
Use the new, less error-prone, API in Rustls.
2017-09-03 13:00:42 -10:00
Brian Smith
eccf90a534 Remove danger feature & the API it controls.
The singular purpose of this crate should be to integrate Tokio and
Rustls. Therefore, any feature that isn't about making Rustls work
nicely with Tokio should be assumed a priori to be out of scope.

In particular, it is out of scope for tokio-rustls to provide APIs to
control SNI behavior. Instead, the application should configure
Rustls's SNI behavior using Rustls's configuration APIs, and pass the
configuration to tokio-rustls. Similarly, it is out of scope for
tokio-rustls to provide APIs to control the certificate validation
behavior. Instead, the application should configure certificate
validation using Rustls's APIs. Perhaps there should be a crate that
makes it convenient to do "dangerous" certificate validation, but IMO
that shouldn't be tokio-rustls, but a different one.

FWIW, the `danger` API was inherited from tokio-tls, and I'm working on
making an analogous change there.
2017-08-28 18:43:33 -10:00
quininer
aefc023dd4 [Fixed] call only once send_close_notify 2017-08-15 22:09:45 +08:00
quininer
4b98a7b07a [Changed] update rustls 2017-08-13 13:05:47 +08:00
quininer kel
36fabdadfd [Added] danger feature 2017-07-21 17:57:57 +08:00
Jack Zhou
42e1d72fb2 Fixed TlsStream closing the connection abruptly on fatal errors. (#12)
Instead, flush queued TLS messages when an error occurs before closing the connection.
2017-07-18 14:23:56 -07:00
quininer kel
076c266fa1 [Changed] bump version 2017-05-26 18:22:03 +08:00
PZ Read
d6d06041d9 Fix empty buffer 2017-05-26 17:59:51 +08:00
PZ Read
185f010937 Add async builders for custom session. 2017-05-26 16:38:02 +08:00
PZ Read
72c9c1d59e Fix plaintext write logic for limited rustls buffer. 2017-05-26 15:54:47 +08:00