Commit Graph

839 Commits

Author SHA1 Message Date
Joseph Birr-Pixton fe82a87b09 Use 4096-bit RSA CA key
This is more representative; there are no 8192-bit roots.
2019-06-16 20:57:14 +01:00
Joseph Birr-Pixton 708b0a2ef7 Benchmark memory usage 2019-06-16 20:57:14 +01:00
Joseph Birr-Pixton 225339686e bench: fix integer overflow for large multipliers 2019-06-15 20:51:06 +01:00
Thom Wiggers 2e920f3df0 Avoid Error fmt
Rust change https://github.com/rust-lang/rust/pull/60897 changed the output, making this test fail on nightly
2019-06-12 21:08:07 +01:00
Thom Wiggers b66d27faae Fix warnings
Trait objects now have ``dyn`` in types.
2019-06-12 21:07:02 +01:00
Joseph Birr-Pixton f535d6483c bench: support BENCH_MULTIPLIER 2019-06-04 21:28:38 +01:00
Joseph Birr-Pixton 3e0e2e70d9 Benchmark TLS13 too 2019-06-01 18:03:39 +01:00
Joseph Birr-Pixton e2482b99e6 Prefer Box<array> to Vec for fixed-size buffer 2019-06-01 18:02:57 +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 9d298b38bf Fix azure job name 2019-05-27 20:25:22 +01:00
Joseph Birr-Pixton cbc4b2f0b6 Add azure minimal-versions checks 2019-05-27 18:26:31 +01:00
Marc-Antoine Perennou 75cefe29a4 add CI target to test minimal versions
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2019-05-27 18:20:39 +01:00
Marc-Antoine Perennou cb43065914 fix minimal dependencies versions
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2019-05-27 18:20:39 +01:00
Joseph Birr-Pixton 3d33dd2bb0 Fix on lcov 1.14 2019-05-27 18:18:34 +01:00
Marc-Antoine Perennou 94563739d3 stream: add socket accessors
The other TLS libraries all provide those methods on their
stream implementations, this helps make things more similar

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2019-05-27 18:10:18 +01:00
Joseph Birr-Pixton 05b8915b3f Tighten up KeySchedule struct size 2019-05-27 18:08:15 +01:00
Joseph Birr-Pixton 71d3fa89a7 Move incoming buffer back to heap 2019-05-27 18:08:15 +01:00
Joseph Birr-Pixton c66eabf935 Add test for size for size of session types 2019-05-27 18:08:15 +01:00
Joseph Birr-Pixton 8aec7342fc Move handshake hashing into state machine
hash_hs::HandshakerHash is a large type and is not needed after
the handshake.
2019-05-26 20:18:01 +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 bb8eed6a2b Split off tls13 resumption & CCS fakery 2019-05-23 18:45:47 +01:00
Joseph Birr-Pixton d75a12c67f Also move start_handshake_traffic to tls13 module 2019-05-23 18:45:47 +01:00
Joseph Birr-Pixton e3d1cadf78 Move more of emit_client_hello_for_retry 2019-05-23 18:45:47 +01:00
Joseph Birr-Pixton e6e04f421a Split up emit_client_hello_for_retry 2019-05-23 18:45:47 +01:00
Joseph Birr-Pixton aac0bbafcc Assorted clippy fixes 2019-05-23 18:45:47 +01:00
Joseph Birr-Pixton 2c4c74a8b0 Split up server::hs similarly 2019-05-23 18:45:47 +01:00
Joseph Birr-Pixton bdd0a37faa Split up client::hs
This now contains only functionality shared between
protocol versions.  Version-specific stuff is in
tls12 and tls13 modules.
2019-05-23 18:45:47 +01:00
Joseph Birr-Pixton 0f540c9014 Don't vary sessionid over HRR
This fixes the HRR tests.
2019-05-19 20:30:48 +01:00
Joseph Birr-Pixton f2af2e6d17 update readme 2019-05-19 20:10:56 +01:00
Joseph Birr-Pixton 52a09365b6 Always send a random SessionID
This is required by TLS1.3 middlebox compatability mode,
and not actively harmful to TLS1.2 mode.
2019-05-19 20:01:04 +01:00
Thom Wiggers a600fa4d8c Fix unused_doc_comment
Moves the comments into the macro definition, to document the generated enums.
2019-05-08 20:55:04 +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 b29daabd34 Optimise read_tls error path 2019-04-22 20:34:01 +01:00
Joseph Birr-Pixton 6675b2f8eb deframer: Get rid of a yucky Option<bool> 2019-04-22 20:34:01 +01:00
Joseph Birr-Pixton 16f9743a75 Benchmark for read_tls with polled nbio 2019-04-22 20:34:01 +01:00
Joseph Birr-Pixton e18e999c4a Refactor api-level tests 2019-04-22 20:34:01 +01:00
Joseph Birr-Pixton 56f25ec41d Extra unit test for deframer 2019-04-21 19:07:39 +01:00
Joseph Birr-Pixton cd66549efd Prepare 0.15.2 2019-04-02 20:44:10 +01:00
Joseph Birr-Pixton 27d29e4283 Add azure/codecov badges 2019-03-10 17:53:03 +00: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 a66884131e Fix path for benchmarks on Windows 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 7597818244 Run bogo 2019-03-10 13:55:12 +00:00
Joseph Birr-Pixton 76b7bb7a9f Try both ipv4 and ipv6 localhost 2019-03-10 13:55:12 +00:00
Joseph Birr-Pixton 31e12febf8 Try codecov.io instead
- Temporarily remove branch coverage measurement
- Also install llvm & llvm-3.8
2019-03-10 13:54:56 +00:00
Joseph Birr-Pixton 1115857dfc Run coverage, mio tests, benchmarks 2019-03-09 15:43:27 +00:00
Joseph Birr-Pixton bbba4449b3 Minimum toolchain is in fact 1.31 for 2018 edition 2019-03-09 15:43:27 +00:00
Joseph Birr-Pixton 34496e2fe1 Don't use writev API on Windows 2019-03-09 15:43:27 +00:00
Joseph Birr-Pixton 2f1ce3aca3 bump minimum to 1.27 2019-03-08 21:41:02 +00:00
Joseph Birr-Pixton 2e9fd0441c add starter azure pipelines config 2019-03-08 21:41:02 +00:00