Commit Graph

2620 Commits

Author SHA1 Message Date
Benjamin Saunders b8fd5ffc4e Respect lower bound for time loss detection threshold 2019-07-09 20:35:04 +02:00
Benjamin Saunders f1682fd0a7 Ignore ack delays from Initial/Handshake packets 2019-07-09 20:35:04 +02:00
Benjamin Saunders 4df4e695eb Remove unnecessary export 2019-07-09 20:35:04 +02:00
Benjamin Saunders 4a79e9ea8c Draft 21 missing transport parameters error 2019-07-09 20:35:04 +02:00
Benjamin Saunders 7b74cf1552 Draft 21 key discard logic 2019-07-09 20:35:04 +02:00
Benjamin Saunders a70eeeadd8 Fix ReadToEnd size limit 2019-07-06 11:17:20 -07:00
Benjamin Saunders 3e863e6903 Remove outdated documentation 2019-07-06 07:16:19 +02:00
Benjamin Saunders 63d6925852 Clarifying comment 2019-07-05 08:35:26 +02:00
Benjamin Saunders b502306ab3 Refactor ReadToEnd helper to work after reads 2019-07-05 08:35:26 +02:00
Benjamin Saunders f1aa79d098 Fix deprecated rand API use 2019-07-05 06:56:01 +02:00
Benjamin Saunders cd460b1029 Reduce global macro imports 2019-07-02 07:47:52 +02:00
Benjamin Saunders 345aac0414 Update comments 2019-07-02 07:47:52 +02:00
dependabot-preview[bot] 7d54ee148d Update rand requirement from 0.6 to 0.7
Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/rand/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-02 07:47:04 +02:00
Benjamin Saunders 62e92f7759 Remove unreachable error case 2019-06-26 07:10:37 +02:00
Benjamin Saunders 2ce6e09440 Clarify comment 2019-06-26 07:10:37 +02:00
Benjamin Saunders 109b938872 Disable slow and broken coverage in CI 2019-06-26 07:10:37 +02:00
Benjamin Saunders 1885904782 Fix warnings in tests 2019-06-26 07:10:37 +02:00
Benjamin Saunders 67a92b637d More Debug derives 2019-06-26 07:10:37 +02:00
Benjamin Saunders c6c27bfb50 Hide EndpointEvent internals 2019-06-26 07:10:37 +02:00
Benjamin Saunders 47b54962d8 Strengthen key update unit tests 2019-06-24 19:31:38 +02:00
Benjamin Saunders 747d5a263b Colorful logging in examples 2019-06-24 19:31:38 +02:00
Benjamin Saunders f112e25e53 Fix decryption after locally initiated key update
When a locally-initiated key update took place, the next packet number
to be sent was incorrectly used as the remote packet number above
which the new key was in use. This caused packets already in flight
from the peer that coincidentally had a higher packet number to be
interpreted as an additional key update, causing decryption to fail.
2019-06-24 19:31:38 +02:00
Benjamin Saunders a8c35303aa Factor out test endpoint boilerplate 2019-06-24 19:31:38 +02:00
Benjamin Saunders edf9af0864 Update comment 2019-06-24 19:31:38 +02:00
Benjamin Saunders 679f5cc5e7 High-level end-to-end 0-RTT test 2019-06-24 19:31:38 +02:00
Benjamin Saunders cf319d562f Helper functions for unwrapping incoming streams of known type 2019-06-24 19:31:38 +02:00
Benjamin Saunders 3298fc91bc ClientConfigBuilder::logger 2019-06-24 19:31:38 +02:00
Benjamin Saunders b46fa54da5 Fix high-level 0.5-RTT connections 2019-06-24 19:31:38 +02:00
Benjamin Saunders d187f99c25 Fix warnings in high-level examples 2019-06-24 19:31:38 +02:00
Benjamin Saunders d850ab1099 Document UDP buffer sensitivity 2019-06-24 08:38:38 +02:00
Benjamin Saunders 9d0fb29b6b Hide internals of Timer 2019-06-24 08:38:38 +02:00
Benjamin Saunders 15fafa493c Hide internals of ConnectionEvent
Reduces likelihood of future API breakage
2019-06-24 08:38:38 +02:00
Benjamin Saunders eeac356ca5 Move ClientConfig into shared.rs for consistency with ServerConfig 2019-06-24 08:38:38 +02:00
Dirkjan Ochtman 7b507d82b1 Move ALPN_QUIC_HTTP from library to examples/interop code 2019-06-20 12:30:02 -07:00
Dirkjan Ochtman e0b4435244 Stop using ALPN_QUIC_HTTP for tests 2019-06-20 12:30:02 -07:00
Dirkjan Ochtman 886a137703 Move H3 ALPN token into quinn-h3 2019-06-20 12:30:02 -07:00
Dirkjan Ochtman bed5f1589f Run tests without rustls in CI 2019-06-20 08:37:06 -07:00
Dirkjan Ochtman b1a4b978ec Allow testing quinn-proto without rustls or ring 2019-06-20 08:37:06 -07:00
Dirkjan Ochtman de15d80187 Create TransportErrors directly from crypto code 2019-06-20 08:37:06 -07:00
Dirkjan Ochtman f62eb8ff5f Remove dependency on rustls for error debugging 2019-06-20 08:37:06 -07:00
Dirkjan Ochtman 45ee97bd5a Upgrade to rcgen 0.4 2019-06-18 14:11:40 -07:00
Dirkjan Ochtman 7bf24093c5 Implement Clone and Debug for builder types 2019-06-15 08:08:21 -07:00
Dirkjan Ochtman af5553706e Create actual key objects inside the Endpoint 2019-06-15 08:08:21 -07:00
Dirkjan Ochtman e6a1006a07 Take a crypto::Session as the parameter for ServerConfig 2019-06-15 08:08:21 -07:00
Dirkjan Ochtman 1326ee206b Move token functions into endpoint module 2019-06-15 08:08:21 -07:00
Dirkjan Ochtman a96a385e5c Use HmacKey interface for reset_token_for() 2019-06-15 08:08:21 -07:00
Dirkjan Ochtman b89c75aac2 Separate HMAC operations from token generation and checking 2019-06-15 08:08:21 -07:00
Dirkjan Ochtman b9eea9a291 Create a trait for HMAC signing and verification 2019-06-15 08:08:21 -07:00
Dirkjan Ochtman 928461e354 Rename variables to match destination type 2019-06-15 08:08:21 -07:00
Dirkjan Ochtman 00fca4f189 Move CID signing into Endpoint 2019-06-15 08:08:21 -07:00