Benjamin Saunders
45ec778d5a
Warn about platform dual-stack socket behavior variances
...
This has bitten at least 3 users.
2020-10-15 19:55:18 -07:00
Dirkjan Ochtman
1e7095941e
quinn-proto: remove RetryToken TODO comment
2020-10-12 12:13:50 -07:00
Dirkjan Ochtman
84ba340697
quinn-proto: improve grouping in RetryToken impl
2020-10-12 12:13:50 -07:00
Dirkjan Ochtman
3f3335e242
quinn-proto: tweak ordering in RetryToken
2020-10-12 12:13:50 -07:00
Dirkjan Ochtman
d5b47f601d
Unwrap unused results from invalid config values
2020-10-12 12:13:50 -07:00
Dirkjan Ochtman
d4ac4057bd
interop: remove type length limit after 1.47 release
2020-10-12 12:13:50 -07:00
Dirkjan Ochtman
0630fc95f5
Tweak formatting
2020-10-12 11:29:21 +02:00
Vanshdeep
e87346a6d7
Encrypt retry token ( fixes #783 )
2020-10-12 11:29:21 +02:00
Dirkjan Ochtman
ff086b4a2c
Use combinator instead of matches!()
2020-10-11 10:43:10 -07:00
Dirkjan Ochtman
012263be28
Implement miscellaneous clippy (1.47) suggestions
2020-10-11 10:43:10 -07:00
Dirkjan Ochtman
5bb0a32cd4
Use matches!() macro where appropriate
2020-10-11 10:43:10 -07:00
Benjamin Saunders
9d3942d272
Default to unlimited connection-level flow control credit
...
This leaves data flow control to be governed purely at the stream
level by default, removing a surprising footgun for users that need to
tune flow control and who aren't aware of all the knobs.
2020-10-11 14:21:58 +02:00
Benjamin Saunders
19b8d0c447
Represent transport parameters with VarInt pervasively
...
Moves bounds-checks into the configuration setters, making
misconfiguration errors more user-friendly.
2020-10-11 14:21:58 +02:00
Benjamin Saunders
c55843ff83
Restrict Arbitrary VarInts to in-bounds values
2020-10-11 14:21:58 +02:00
Benjamin Saunders
637153970f
Fix panic on packet construction with large flow control credit
2020-10-11 14:21:58 +02:00
Benjamin Saunders
0d91abed65
More closely match ID backpressure test to intended behavior
2020-10-11 14:21:58 +02:00
Dirkjan Ochtman
a68e18c6e6
Update checkout and cargo-deny GitHub Actions
...
In particular, this prevents errors from an old cargo-deny version,
which fails to parse recent additions to the advisory database.
2020-10-03 12:39:28 -07:00
Dirkjan Ochtman
d79d548a27
Style tweaks from #851
2020-10-03 12:39:28 -07:00
Benjamin Saunders
82cc875900
Gracefully close when impending required key update is impossible
2020-10-03 12:37:52 -07:00
Benjamin Saunders
163eb7b55d
Respect AEAD confidentiality limits
2020-10-03 12:37:52 -07:00
Benjamin Saunders
8a3597bc0c
Factor out logic to gracelessly kill the connection
2020-10-03 12:37:52 -07:00
Benjamin Saunders
dc475d23de
Respect AEAD integrity limits
2020-10-03 12:37:52 -07:00
Benjamin Saunders
7ab980589f
Define AEAD_LIMIT_REACHED error
2020-10-03 12:37:52 -07:00
liwenjieQu
37a2fde11a
Update quinn-proto/src/cid_generator.rs
...
Co-authored-by: Benjamin Saunders <ben.e.saunders@gmail.com >
2020-10-03 13:29:11 +02:00
Wenjie Li
d525ab2fa8
Add lifetime to CID to avoid future change on CID generator trait that breaks compatibility
2020-10-03 13:29:11 +02:00
Wenjie Li
7371765a0d
Add doc for cid new function
2020-10-03 13:29:11 +02:00
Wenjie Li
42704b3445
remove pub(crate) from CID new function to allow a third-party crate to implement CID generator
2020-10-03 13:29:11 +02:00
Wenjie Li
62ef887772
Remove validate_cid API from cid generator
2020-10-03 13:29:11 +02:00
Wenjie Li
ed913f061f
Minor edits
2020-10-03 13:29:11 +02:00
liwenjieQu
66217e9dca
Update quinn-proto/src/cid_generator.rs
...
Co-authored-by: Benjamin Saunders <ben.e.saunders@gmail.com >
2020-10-03 13:29:11 +02:00
liwenjieQu
5712b166fd
Update quinn-proto/src/cid_generator.rs
...
Co-authored-by: Benjamin Saunders <ben.e.saunders@gmail.com >
2020-10-03 13:29:11 +02:00
liwenjieQu
727f0aa8eb
Update quinn-proto/src/cid_generator.rs
...
Co-authored-by: Benjamin Saunders <ben.e.saunders@gmail.com >
2020-10-03 13:29:11 +02:00
Wenjie Li
4bdfc3111d
Minor api and doc change
2020-10-03 13:29:11 +02:00
liwenjieQu
0853957199
Update quinn-proto/src/endpoint.rs
...
Co-authored-by: Benjamin Saunders <ben.e.saunders@gmail.com >
2020-10-03 13:29:11 +02:00
liwenjieQu
542532ec36
Update quinn-proto/src/config.rs
...
Co-authored-by: Benjamin Saunders <ben.e.saunders@gmail.com >
2020-10-03 13:29:11 +02:00
liwenjieQu
1eb3c0525f
Update quinn-proto/src/config.rs
...
Co-authored-by: Benjamin Saunders <ben.e.saunders@gmail.com >
2020-10-03 13:29:11 +02:00
Wenjie Li
f4ea3681cf
Resolve lint issue by using trait object
2020-10-03 13:29:11 +02:00
Wenjie Li
9b0d75658d
Minor formatting change
2020-10-03 13:29:11 +02:00
Wenjie Li
d7ad7cb967
Rework cid generator doc
2020-10-03 13:29:11 +02:00
Wenjie Li
e098d83d0b
Move cid generator to a module and export trait
2020-10-03 13:29:11 +02:00
Wenjie Li
872076591c
Add a setter for cid generator in EndpointConfig
2020-10-03 13:29:11 +02:00
Wenjie Li
b6f89afd88
Support customized Cid generation
2020-10-03 13:29:11 +02:00
kwantam
81d326a0f6
export_keying_material to its own test
2020-09-29 09:35:14 +02:00
kwantam
c9040993ce
fmt
2020-09-29 09:35:14 +02:00
kwantam
b2fa08adbe
ExportKeyingMaterialError zst
2020-09-29 09:35:14 +02:00
kwantam
037f1a6666
respond to @ralith's review
2020-09-29 09:35:14 +02:00
kwantam
c9cef3fada
doc comment: Error -> ExportKeyingMaterialError
2020-09-29 09:35:14 +02:00
kwantam
c365013b07
minor format fix
2020-09-29 09:35:14 +02:00
kwantam
3601881e7b
fix tests on stable rustc
2020-09-29 09:35:14 +02:00
kwantam
ee6f7d01f2
pin all crates with rustls as transitive dep
...
this is necessary for export_keying_material to work;
can be undone once rustls pushes a new version of the crates.
2020-09-29 09:35:14 +02:00