Skip to content

Commit 0e45995

Browse files
committed
Add supported quic versions.
1 parent 1ab0e8b commit 0e45995

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ Data:
6262
| responder-next-1rtt-key = SqueezeKey(32)
6363
```
6464

65+
## QUIC version
66+
67+
Reserved versions for `quinn-noise` are `0xf0f0f2f[0-f]` [0]. Currently only `0xf0f0f2f0` is a
68+
valid `quinn-noise` version.
69+
70+
- [0] https://github.com/quicwg/base-drafts/wiki/QUIC-Versions
71+
6572
## License
6673

6774
MIT OR Apache-2.0

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ mod session;
44

55
pub use crate::session::{NoiseConfig, NoiseSession};
66
pub use ed25519_dalek::{Keypair, PublicKey};
7+
8+
// https://github.com/quicwg/base-drafts/wiki/QUIC-Versions
9+
// reserved versions for quinn-noise 0xf0f0f2f[0-f]
10+
pub const SUPPORTED_QUIC_VERSIONS: &[u32] = &[0xf0f0f2f0];
11+
pub const DEFAULT_QUIC_VERSION: u32 = 0xf0f0f2f0;

0 commit comments

Comments
 (0)