Commit Graph

28 Commits

Author SHA1 Message Date
Joseph Birr-Pixton ac3573bf98 Remove dependency on tempfile
This broke the MSRV build, and was bringing in the whole
of rand, wasi, and a ton of other stuff.  All so we could
have a temporary directory during a few tests.  6 crates for
generating randomness just for that!

This accounted for 10% of the size of Cargo.lock alone.
2020-06-20 13:04:59 +01:00
Joseph Birr-Pixton e680b3b6c7 Remove writev_tls; use std::io::Write::write_vectored
This is just a whole lot better.
2020-05-15 21:42:03 +01:00
Joseph Birr-Pixton 616392f4d8 Fix tlsserver on Windows
mio 0.6 allowed selection of level- or edge-triggered events.  mio 0.7 removed
that, and on Windows events on server sockets are genuinely edge-triggered:
coalescing multiple incoming sockets into one event.  Therefore, accept
sockets until we can't accept any more.
2020-05-10 16:19:55 +01:00
Joseph Birr-Pixton ab9dc83d9b tlsclient/tlsserver: reregister to reflect current state
Each message might lead to potentially different IO interests.

This fixes a non-deterministic hang during tests.
2020-05-10 11:58:27 +01:00
Joseph Birr-Pixton cdd403fe98 Revert "Revert "rustls-mio: bump mio to 0.7""
This reverts commit 7e670c2620.
2020-05-09 20:13:55 +01:00
Joseph Birr-Pixton 7e670c2620 Revert "rustls-mio: bump mio to 0.7"
This reverts commit a99d3f0a2c.
This reverts commit d5ecfb4b75.
This reverts commit 83c6495770.
2020-05-08 19:16:00 +01:00
Emmanuel Gil Peyrot d5ecfb4b75 rustls-mio: fix tlsserver for mio 0.7 2020-05-08 18:53:17 +01:00
Emmanuel Gil Peyrot 83c6495770 rustls-mio: fix tlsclient for mio 0.7 2020-05-08 18:53:17 +01:00
Emmanuel Gil Peyrot a99d3f0a2c rustls-mio: bump mio to 0.7 2020-05-08 18:53:17 +01:00
Joseph Birr-Pixton 92600efb4f Prepare 0.17.0 2020-02-22 20:40:52 +00:00
Joseph Birr-Pixton 8a9fd05029 Don't panic on invalid private keys for client auth.
This is a breaking change, because these APIs didn't report
failures before.
2020-02-22 20:14:06 +00:00
dependabot-preview[bot] f6d35511e4 Update webpki-roots requirement from 0.18.0 to 0.19.0
Updates the requirements on [webpki-roots](https://github.com/ctz/webpki-roots) to permit the latest version.
- [Release notes](https://github.com/ctz/webpki-roots/releases)
- [Commits](https://github.com/ctz/webpki-roots/compare/v/0.18.0...v/0.19.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 20:55:25 +00:00
Benjamin Fry b12475d41e remove unnecessary dependency from rustls-mio 2019-12-07 12:37:54 +00:00
dependabot-preview[bot] 88662c507d Update env_logger requirement from 0.6.1 to 0.7.1
Updates the requirements on [env_logger](https://github.com/sebasmagri/env_logger) to permit the latest version.
- [Release notes](https://github.com/sebasmagri/env_logger/releases)
- [Changelog](https://github.com/sebasmagri/env_logger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sebasmagri/env_logger/compare/v0.6.1...v0.7.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-27 08:35:09 +00:00
dependabot-preview[bot] b43dff097e Update webpki-roots requirement from 0.17.0 to 0.18.0
Updates the requirements on [webpki-roots](https://github.com/ctz/webpki-roots) to permit the latest version.
- [Release notes](https://github.com/ctz/webpki-roots/releases)
- [Commits](https://github.com/ctz/webpki-roots/compare/v/0.17.0...v/0.18.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-27 08:34:28 +00:00
dependabot-preview[bot] 8a29657db5 Update docopt requirement from ~1.0 to ~1.1
Updates the requirements on [docopt](https://github.com/docopt/docopt.rs) to permit the latest version.
- [Release notes](https://github.com/docopt/docopt.rs/releases)
- [Commits](https://github.com/docopt/docopt.rs/compare/1.0.0...1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-07 23:15:39 +01:00
Joseph Birr-Pixton 1d70e45af6 Move to using cargo workspaces
- rustls (the library) now lives in rustls/
- the mio examples/tests continue to live in rustls-mio, but
  are built by (eg) `cargo test` in the root of the repo.
2019-08-24 20:55:20 +01:00
Joseph Birr-Pixton a93ee1abd2 tlsserver: fix loop when client will never be writable 2019-08-10 09:47:06 +01:00
Joseph Birr-Pixton 9f41f46324 tlsserver: try to send alerts on error 2019-08-10 09:38:01 +01:00
Joseph Birr-Pixton f5c0ac7a12 Use new sct.rs, ct-logs and webpki-roots 2019-07-21 11:13:27 +01:00
Joseph Birr-Pixton 65c41ee804 Move deps 2019-07-14 10:56:09 +01:00
Joseph Birr-Pixton 975c842209 Sync versions from base crate
Also bump mio, to move up log/libc dependency so it
compiles on current nightly.
2019-05-27 22:41:35 +01:00
Joseph Birr-Pixton c57a939653 Move more from server::hs into server::tls13 2019-05-23 18:45:47 +01:00
Joseph Birr-Pixton a923234fcf Tilde version docopt
docopt 1.1.0 isn't backwards compatible with 1.0.0
2019-04-22 21:23:57 +01:00
Joseph Birr-Pixton f22e9b5977 Send HTTP/1.0 request to avoid chunked encoding 2019-03-10 16:40:07 +00:00
Joseph Birr-Pixton 562aed5657 tlsclient: deal with spurious WouldBlocks on Windows 2019-03-10 14:01:08 +00:00
Joseph Birr-Pixton 34496e2fe1 Don't use writev API on Windows 2019-03-09 15:43:27 +00:00
Joseph Birr-Pixton edf98927dc Split up mio-using examples/tests 2019-03-08 19:04:05 +00:00