mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
introduce a type for the stateless reset key (#3621)
This commit is contained in:
parent
b8447041bb
commit
8d496ebb5e
10 changed files with 35 additions and 27 deletions
|
@ -23,9 +23,9 @@ var _ = Describe("Stateless Resets", func() {
|
|||
connIDLen := connIDLens[i]
|
||||
|
||||
It(fmt.Sprintf("sends and recognizes stateless resets, for %d byte connection IDs", connIDLen), func() {
|
||||
statelessResetKey := make([]byte, 32)
|
||||
rand.Read(statelessResetKey)
|
||||
serverConfig := getQuicConfig(&quic.Config{StatelessResetKey: statelessResetKey})
|
||||
var statelessResetKey quic.StatelessResetKey
|
||||
rand.Read(statelessResetKey[:])
|
||||
serverConfig := getQuicConfig(&quic.Config{StatelessResetKey: &statelessResetKey})
|
||||
|
||||
ln, err := quic.ListenAddr("localhost:0", getTLSConfig(), serverConfig)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue