@@ -97,10 +97,8 @@ describe(QUICServer.name, () => {
97
97
const quicServer = new QUICServer ( {
98
98
crypto,
99
99
config : {
100
- tlsConfig : {
101
- privKeyPem : keyPairRSAPEM . privateKey ,
102
- certChainPem : certRSAPEM ,
103
- } ,
100
+ key : keyPairRSAPEM . privateKey ,
101
+ cert : certRSAPEM ,
104
102
} ,
105
103
logger : logger . getChild ( 'QUICServer' ) ,
106
104
} ) ;
@@ -114,10 +112,8 @@ describe(QUICServer.name, () => {
114
112
const quicServer = new QUICServer ( {
115
113
crypto,
116
114
config : {
117
- tlsConfig : {
118
- privKeyPem : keyPairECDSAPEM . privateKey ,
119
- certChainPem : certECDSAPEM ,
120
- } ,
115
+ key : keyPairECDSAPEM . privateKey ,
116
+ cert : certECDSAPEM ,
121
117
} ,
122
118
logger : logger . getChild ( 'QUICServer' ) ,
123
119
} ) ;
@@ -131,10 +127,8 @@ describe(QUICServer.name, () => {
131
127
const quicServer = new QUICServer ( {
132
128
crypto,
133
129
config : {
134
- tlsConfig : {
135
- privKeyPem : keyPairEd25519PEM . privateKey ,
136
- certChainPem : certEd25519PEM ,
137
- } ,
130
+ key : keyPairEd25519PEM . privateKey ,
131
+ cert : certEd25519PEM ,
138
132
} ,
139
133
logger : logger . getChild ( 'QUICServer' ) ,
140
134
} ) ;
@@ -145,59 +139,57 @@ describe(QUICServer.name, () => {
145
139
await quicServer . stop ( ) ;
146
140
} ) ;
147
141
} ) ;
148
- test ( 'bootstrapping a new connection' , async ( ) => {
149
- const quicServer = new QUICServer ( {
150
- crypto,
151
- config : {
152
- tlsConfig : {
153
- privKeyPem : keyPairEd25519PEM . privateKey ,
154
- certChainPem : certEd25519PEM ,
155
- } ,
156
- } ,
157
- logger : logger . getChild ( 'QUICServer' ) ,
158
- } ) ;
159
- await quicServer . start ( ) ;
142
+ // test('bootstrapping a new connection', async () => {
143
+ // const quicServer = new QUICServer({
144
+ // crypto,
145
+ // config: {
146
+ // key: keyPairEd25519PEM.privateKey,
147
+ // cert: certEd25519PEM,
148
+ // },
149
+ // logger: logger.getChild('QUICServer'),
150
+ // });
151
+ // await quicServer.start();
160
152
161
- const scidBuffer = new ArrayBuffer ( quiche . MAX_CONN_ID_LEN ) ;
162
- await crypto . ops . randomBytes ( scidBuffer ) ;
163
- const scid = new QUICConnectionId ( scidBuffer ) ;
153
+ // const scidBuffer = new ArrayBuffer(quiche.MAX_CONN_ID_LEN);
154
+ // await crypto.ops.randomBytes(scidBuffer);
155
+ // const scid = new QUICConnectionId(scidBuffer);
164
156
165
- const socket = new QUICSocket ( {
166
- crypto,
167
- resolveHostname : utils . resolveHostname ,
168
- logger : logger . getChild ( QUICSocket . name ) ,
169
- } ) ;
170
- await socket . start ( ) ;
157
+ // const socket = new QUICSocket({
158
+ // crypto,
159
+ // resolveHostname: utils.resolveHostname,
160
+ // logger: logger.getChild(QUICSocket.name),
161
+ // });
162
+ // await socket.start();
171
163
172
- // Const config = buildQuicheConfig({
173
- // ...clientDefault
174
- // });
175
- // Here we want to VERIFY the peer
176
- // If we use the same certificate
177
- // then it should be consider as if it is trusted!
164
+ // // Const config = buildQuicheConfig({
165
+ // // ...clientDefault
166
+ // // });
167
+ // // Here we want to VERIFY the peer
168
+ // // If we use the same certificate
169
+ // // then it should be consider as if it is trusted!
178
170
179
- const quicConfig : QUICConfig = {
180
- ...clientDefault ,
181
- verifyPeer : true ,
182
- } ;
171
+ // const quicConfig: QUICConfig = {
172
+ // ...clientDefault,
173
+ // verifyPeer: true,
174
+ // };
183
175
184
- const connection = await QUICConnection . connectQUICConnection ( {
185
- scid,
186
- socket,
176
+ // const connection = await QUICConnection.connectQUICConnection({
177
+ // scid,
178
+ // socket,
187
179
188
- remoteInfo : {
189
- host : utils . resolvesZeroIP ( quicServer . host ) ,
190
- port : quicServer . port ,
191
- } ,
180
+ // remoteInfo: {
181
+ // host: utils.resolvesZeroIP(quicServer.host),
182
+ // port: quicServer.port,
183
+ // },
192
184
193
- config : quicConfig ,
194
- } ) ;
185
+ // config: quicConfig,
186
+ // });
195
187
196
- await socket . stop ( ) ;
197
- await quicServer . stop ( ) ;
188
+ // await socket.stop();
189
+ // await quicServer.stop();
198
190
199
- // We can run with several rsa keypairs and certificates
200
- } ) ;
191
+ // // We can run with several rsa keypairs and certificates
192
+ // });
201
193
describe ( 'updating configuration' , ( ) => {
202
194
// We want to test changing the configuration over time
203
195
} ) ;
0 commit comments