@@ -16,6 +16,7 @@ use core::{
16
16
ops:: RangeInclusive ,
17
17
task:: { Poll , Waker } ,
18
18
} ;
19
+ use std:: any:: Any ;
19
20
use s2n_codec:: DecoderBufferMut ;
20
21
use s2n_quic_core:: {
21
22
application:: ServerName ,
@@ -63,6 +64,7 @@ pub struct PacketSpaceManager<Config: endpoint::Config> {
63
64
retry_cid : Option < Box < PeerId > > ,
64
65
initial : Option < Box < InitialSpace < Config > > > ,
65
66
handshake : Option < Box < HandshakeSpace < Config > > > ,
67
+ pub application_context : Option < Box < dyn Any + Send + Sync > > ,
66
68
application : Option < Box < ApplicationSpace < Config > > > ,
67
69
zero_rtt_crypto :
68
70
Option < Box < <<Config :: TLSEndpoint as tls:: Endpoint >:: Session as CryptoSuite >:: ZeroRttKey > > ,
@@ -124,6 +126,7 @@ impl<Config: endpoint::Config> PacketSpaceManager<Config> {
124
126
session,
125
127
initial_cid,
126
128
} ) ,
129
+ application_context : None ,
127
130
retry_cid : None ,
128
131
initial : Some ( Box :: new ( InitialSpace :: new (
129
132
initial_key,
@@ -258,6 +261,7 @@ impl<Config: endpoint::Config> PacketSpaceManager<Config> {
258
261
handshake : & mut self . handshake ,
259
262
application : & mut self . application ,
260
263
zero_rtt_crypto : & mut self . zero_rtt_crypto ,
264
+ application_context : & mut self . application_context ,
261
265
path_manager,
262
266
handshake_status : & mut self . handshake_status ,
263
267
local_id_registry,
@@ -303,6 +307,7 @@ impl<Config: endpoint::Config> PacketSpaceManager<Config> {
303
307
retry_cid : self . retry_cid . as_deref ( ) ,
304
308
initial : & mut self . initial ,
305
309
handshake : & mut self . handshake ,
310
+ application_context : & mut self . application_context ,
306
311
application : & mut self . application ,
307
312
zero_rtt_crypto : & mut self . zero_rtt_crypto ,
308
313
path_manager,
0 commit comments