|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+package fake_test
|
|
|
2
|
+
|
|
|
3
|
+import (
|
|
|
4
|
+ "bytes"
|
|
|
5
|
+ "encoding/binary"
|
|
|
6
|
+ "errors"
|
|
|
7
|
+ "io"
|
|
|
8
|
+ "testing"
|
|
|
9
|
+ "time"
|
|
|
10
|
+
|
|
|
11
|
+ "github.com/9seconds/mtg/v2/internal/testlib"
|
|
|
12
|
+ "github.com/9seconds/mtg/v2/mtglib"
|
|
|
13
|
+ "github.com/9seconds/mtg/v2/mtglib/internal/tls"
|
|
|
14
|
+ "github.com/9seconds/mtg/v2/mtglib/internal/tls/fake"
|
|
|
15
|
+ "github.com/stretchr/testify/mock"
|
|
|
16
|
+ "github.com/stretchr/testify/require"
|
|
|
17
|
+ "github.com/stretchr/testify/suite"
|
|
|
18
|
+)
|
|
|
19
|
+
|
|
|
20
|
+const (
|
|
|
21
|
+ TolerateTime = 365 * 30 * 24 * time.Hour
|
|
|
22
|
+)
|
|
|
23
|
+
|
|
|
24
|
+type parseClientHelloConnMock struct {
|
|
|
25
|
+ testlib.EssentialsConnMock
|
|
|
26
|
+
|
|
|
27
|
+ readBuf *bytes.Buffer
|
|
|
28
|
+}
|
|
|
29
|
+
|
|
|
30
|
+func (m *parseClientHelloConnMock) Read(p []byte) (int, error) {
|
|
|
31
|
+ return m.readBuf.Read(p)
|
|
|
32
|
+}
|
|
|
33
|
+
|
|
|
34
|
+type ParseClientHelloTestSuite struct {
|
|
|
35
|
+ suite.Suite
|
|
|
36
|
+
|
|
|
37
|
+ secret mtglib.Secret
|
|
|
38
|
+ readBuf *bytes.Buffer
|
|
|
39
|
+ connMock *parseClientHelloConnMock
|
|
|
40
|
+}
|
|
|
41
|
+
|
|
|
42
|
+func (suite *ParseClientHelloTestSuite) SetupSuite() {
|
|
|
43
|
+ parsed, err := mtglib.ParseSecret("ee367a189aee18fa31c190054efd4a8e9573746f726167652e676f6f676c65617069732e636f6d")
|
|
|
44
|
+ require.NoError(suite.T(), err)
|
|
|
45
|
+
|
|
|
46
|
+ suite.secret = parsed
|
|
|
47
|
+}
|
|
|
48
|
+
|
|
|
49
|
+func (suite *ParseClientHelloTestSuite) SetupTest() {
|
|
|
50
|
+ suite.readBuf = &bytes.Buffer{}
|
|
|
51
|
+ suite.connMock = &parseClientHelloConnMock{
|
|
|
52
|
+ readBuf: suite.readBuf,
|
|
|
53
|
+ }
|
|
|
54
|
+
|
|
|
55
|
+ suite.connMock.
|
|
|
56
|
+ On("SetReadDeadline", mock.AnythingOfType("time.Time")).
|
|
|
57
|
+ Twice().
|
|
|
58
|
+ Return(nil)
|
|
|
59
|
+}
|
|
|
60
|
+
|
|
|
61
|
+func (suite *ParseClientHelloTestSuite) TearDownTest() {
|
|
|
62
|
+ suite.connMock.AssertExpectations(suite.T())
|
|
|
63
|
+}
|
|
|
64
|
+
|
|
|
65
|
+type ParseClientHello_TLSHeaderTestSuite struct {
|
|
|
66
|
+ ParseClientHelloTestSuite
|
|
|
67
|
+}
|
|
|
68
|
+
|
|
|
69
|
+func (suite *ParseClientHello_TLSHeaderTestSuite) TestEmpty() {
|
|
|
70
|
+ suite.connMock.ExpectedCalls = []*mock.Call{}
|
|
|
71
|
+ suite.connMock.
|
|
|
72
|
+ On("SetReadDeadline", mock.AnythingOfType("time.Time")).
|
|
|
73
|
+ Once().
|
|
|
74
|
+ Return(errors.New("fail"))
|
|
|
75
|
+
|
|
|
76
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
77
|
+ suite.ErrorContains(err, "fail")
|
|
|
78
|
+}
|
|
|
79
|
+
|
|
|
80
|
+func (suite *ParseClientHello_TLSHeaderTestSuite) TestNothing() {
|
|
|
81
|
+ suite.connMock.ExpectedCalls = []*mock.Call{}
|
|
|
82
|
+ suite.connMock.
|
|
|
83
|
+ On("SetReadDeadline", mock.AnythingOfType("time.Time")).
|
|
|
84
|
+ Twice().
|
|
|
85
|
+ Return(nil)
|
|
|
86
|
+
|
|
|
87
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
88
|
+ suite.ErrorIs(err, io.EOF)
|
|
|
89
|
+}
|
|
|
90
|
+
|
|
|
91
|
+func (suite *ParseClientHello_TLSHeaderTestSuite) TestUnknownRecord() {
|
|
|
92
|
+ suite.readBuf.Write([]byte{
|
|
|
93
|
+ 10,
|
|
|
94
|
+ 3, 3,
|
|
|
95
|
+ 0, 0,
|
|
|
96
|
+ })
|
|
|
97
|
+ suite.readBuf.WriteByte(10)
|
|
|
98
|
+
|
|
|
99
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
100
|
+ suite.ErrorContains(err, "unexpected record type 0xa")
|
|
|
101
|
+}
|
|
|
102
|
+
|
|
|
103
|
+func (suite *ParseClientHello_TLSHeaderTestSuite) TestUnknownProtocolVersion() {
|
|
|
104
|
+ suite.readBuf.Write([]byte{
|
|
|
105
|
+ tls.TypeHandshake,
|
|
|
106
|
+ 3, 3,
|
|
|
107
|
+ 0, 0,
|
|
|
108
|
+ })
|
|
|
109
|
+
|
|
|
110
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
111
|
+ suite.ErrorContains(err, "unexpected protocol version")
|
|
|
112
|
+}
|
|
|
113
|
+
|
|
|
114
|
+func (suite *ParseClientHello_TLSHeaderTestSuite) TestCannotReadRestOfRecord() {
|
|
|
115
|
+ suite.readBuf.Write([]byte{
|
|
|
116
|
+ tls.TypeHandshake,
|
|
|
117
|
+ 3, 1,
|
|
|
118
|
+ 0, 10,
|
|
|
119
|
+ })
|
|
|
120
|
+
|
|
|
121
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
122
|
+ suite.ErrorIs(err, io.EOF)
|
|
|
123
|
+}
|
|
|
124
|
+
|
|
|
125
|
+type ParseClientHelloHandshakeTestSuite struct {
|
|
|
126
|
+ ParseClientHelloTestSuite
|
|
|
127
|
+}
|
|
|
128
|
+
|
|
|
129
|
+func (suite *ParseClientHelloHandshakeTestSuite) SetupTest() {
|
|
|
130
|
+ suite.ParseClientHelloTestSuite.SetupTest()
|
|
|
131
|
+
|
|
|
132
|
+ suite.readBuf.Write([]byte{
|
|
|
133
|
+ tls.TypeHandshake,
|
|
|
134
|
+ 3, 1,
|
|
|
135
|
+ 0,
|
|
|
136
|
+ })
|
|
|
137
|
+}
|
|
|
138
|
+
|
|
|
139
|
+func (suite *ParseClientHelloHandshakeTestSuite) TestCannotReadHeader() {
|
|
|
140
|
+ suite.readBuf.Write([]byte{
|
|
|
141
|
+ 1,
|
|
|
142
|
+ 10,
|
|
|
143
|
+ })
|
|
|
144
|
+
|
|
|
145
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
146
|
+ suite.ErrorContains(err, "cannot read handshake header")
|
|
|
147
|
+}
|
|
|
148
|
+
|
|
|
149
|
+func (suite *ParseClientHelloHandshakeTestSuite) TestIncorrectHandshakeType() {
|
|
|
150
|
+ suite.readBuf.Write([]byte{
|
|
|
151
|
+ 4,
|
|
|
152
|
+ 10, 0, 0, 0,
|
|
|
153
|
+ })
|
|
|
154
|
+
|
|
|
155
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
156
|
+ suite.ErrorContains(err, "incorrect handshake type")
|
|
|
157
|
+}
|
|
|
158
|
+
|
|
|
159
|
+func (suite *ParseClientHelloHandshakeTestSuite) TestCannotReadHandshake() {
|
|
|
160
|
+ suite.readBuf.Write([]byte{
|
|
|
161
|
+ 4 + 3,
|
|
|
162
|
+ 10, 0, 0, 0,
|
|
|
163
|
+ })
|
|
|
164
|
+
|
|
|
165
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
166
|
+ suite.ErrorIs(err, io.EOF)
|
|
|
167
|
+}
|
|
|
168
|
+
|
|
|
169
|
+type ParseClientHelloHandshakeBodyTestSuite struct {
|
|
|
170
|
+ ParseClientHelloTestSuite
|
|
|
171
|
+}
|
|
|
172
|
+
|
|
|
173
|
+func (suite *ParseClientHelloHandshakeBodyTestSuite) SetupTest() {
|
|
|
174
|
+ suite.ParseClientHelloTestSuite.SetupTest()
|
|
|
175
|
+
|
|
|
176
|
+ suite.readBuf.Write([]byte{
|
|
|
177
|
+ tls.TypeHandshake,
|
|
|
178
|
+ 3, 1,
|
|
|
179
|
+ 0,
|
|
|
180
|
+ })
|
|
|
181
|
+}
|
|
|
182
|
+
|
|
|
183
|
+func (suite *ParseClientHelloHandshakeBodyTestSuite) writeBody(body []byte) {
|
|
|
184
|
+ suite.readBuf.WriteByte(byte(4 + len(body)))
|
|
|
185
|
+ suite.readBuf.Write([]byte{
|
|
|
186
|
+ fake.TypeHandshakeClient,
|
|
|
187
|
+ 0, 0, byte(len(body)),
|
|
|
188
|
+ })
|
|
|
189
|
+ suite.readBuf.Write(body)
|
|
|
190
|
+}
|
|
|
191
|
+
|
|
|
192
|
+func (suite *ParseClientHelloHandshakeBodyTestSuite) TestCannotReadVersion() {
|
|
|
193
|
+ suite.writeBody(nil)
|
|
|
194
|
+
|
|
|
195
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
196
|
+ suite.ErrorContains(err, "cannot read client version")
|
|
|
197
|
+}
|
|
|
198
|
+
|
|
|
199
|
+func (suite *ParseClientHelloHandshakeBodyTestSuite) TestCannotReadRandom() {
|
|
|
200
|
+ suite.writeBody([]byte{3, 3})
|
|
|
201
|
+
|
|
|
202
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
203
|
+ suite.ErrorContains(err, "cannot read client random")
|
|
|
204
|
+}
|
|
|
205
|
+
|
|
|
206
|
+func (suite *ParseClientHelloHandshakeBodyTestSuite) TestCannotReadSessionIDLength() {
|
|
|
207
|
+ body := make([]byte, 2+fake.RandomLen)
|
|
|
208
|
+
|
|
|
209
|
+ suite.writeBody(body)
|
|
|
210
|
+
|
|
|
211
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
212
|
+ suite.ErrorContains(err, "cannot read session ID length")
|
|
|
213
|
+}
|
|
|
214
|
+
|
|
|
215
|
+func (suite *ParseClientHelloHandshakeBodyTestSuite) TestCannotReadSessionID() {
|
|
|
216
|
+ body := make([]byte, 2+fake.RandomLen+1)
|
|
|
217
|
+ body[2+fake.RandomLen] = 32
|
|
|
218
|
+
|
|
|
219
|
+ suite.writeBody(body)
|
|
|
220
|
+
|
|
|
221
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
222
|
+ suite.ErrorContains(err, "cannot read session id")
|
|
|
223
|
+}
|
|
|
224
|
+
|
|
|
225
|
+func (suite *ParseClientHelloHandshakeBodyTestSuite) TestCannotReadCipherSuiteLength() {
|
|
|
226
|
+ body := make([]byte, 2+fake.RandomLen+1)
|
|
|
227
|
+
|
|
|
228
|
+ suite.writeBody(body)
|
|
|
229
|
+
|
|
|
230
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
231
|
+ suite.ErrorContains(err, "cannot read cipher suite length")
|
|
|
232
|
+}
|
|
|
233
|
+
|
|
|
234
|
+func (suite *ParseClientHelloHandshakeBodyTestSuite) TestCannotReadFirstCipherSuite() {
|
|
|
235
|
+ body := make([]byte, 2+fake.RandomLen+1+2)
|
|
|
236
|
+
|
|
|
237
|
+ suite.writeBody(body)
|
|
|
238
|
+
|
|
|
239
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
240
|
+ suite.ErrorContains(err, "cannot read first cipher suite")
|
|
|
241
|
+}
|
|
|
242
|
+
|
|
|
243
|
+func (suite *ParseClientHelloHandshakeBodyTestSuite) TestCannotSkipRemainingCipherSuites() {
|
|
|
244
|
+ body := make([]byte, 2+fake.RandomLen+1+2+2)
|
|
|
245
|
+ binary.BigEndian.PutUint16(body[2+fake.RandomLen+1:], 4)
|
|
|
246
|
+
|
|
|
247
|
+ suite.writeBody(body)
|
|
|
248
|
+
|
|
|
249
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
250
|
+ suite.ErrorContains(err, "cannot skip remaining cipher suites")
|
|
|
251
|
+}
|
|
|
252
|
+
|
|
|
253
|
+func (suite *ParseClientHelloHandshakeBodyTestSuite) TestCannotReadCompressionMethodsLength() {
|
|
|
254
|
+ body := make([]byte, 2+fake.RandomLen+1+2+2)
|
|
|
255
|
+ binary.BigEndian.PutUint16(body[2+fake.RandomLen+1:], 2)
|
|
|
256
|
+
|
|
|
257
|
+ suite.writeBody(body)
|
|
|
258
|
+
|
|
|
259
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
260
|
+ suite.ErrorContains(err, "cannot read compression methods length")
|
|
|
261
|
+}
|
|
|
262
|
+
|
|
|
263
|
+func (suite *ParseClientHelloHandshakeBodyTestSuite) TestCannotSkipCompressionMethods() {
|
|
|
264
|
+ body := make([]byte, 2+fake.RandomLen+1+2+2+1)
|
|
|
265
|
+ binary.BigEndian.PutUint16(body[2+fake.RandomLen+1:], 2)
|
|
|
266
|
+ body[2+fake.RandomLen+1+2+2] = 1
|
|
|
267
|
+
|
|
|
268
|
+ suite.writeBody(body)
|
|
|
269
|
+
|
|
|
270
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
271
|
+ suite.ErrorContains(err, "cannot skip compression methods")
|
|
|
272
|
+}
|
|
|
273
|
+
|
|
|
274
|
+type ParseClientHelloSNITestSuite struct {
|
|
|
275
|
+ ParseClientHelloTestSuite
|
|
|
276
|
+}
|
|
|
277
|
+
|
|
|
278
|
+func (suite *ParseClientHelloSNITestSuite) SetupTest() {
|
|
|
279
|
+ suite.ParseClientHelloTestSuite.SetupTest()
|
|
|
280
|
+
|
|
|
281
|
+ suite.readBuf.Write([]byte{
|
|
|
282
|
+ tls.TypeHandshake,
|
|
|
283
|
+ 3, 1,
|
|
|
284
|
+ 0,
|
|
|
285
|
+ })
|
|
|
286
|
+}
|
|
|
287
|
+
|
|
|
288
|
+func (suite *ParseClientHelloSNITestSuite) writeExtensions(extensions []byte) {
|
|
|
289
|
+ handshakeBodyLen := 41 + len(extensions)
|
|
|
290
|
+
|
|
|
291
|
+ suite.readBuf.WriteByte(byte(4 + handshakeBodyLen))
|
|
|
292
|
+ suite.readBuf.Write([]byte{
|
|
|
293
|
+ fake.TypeHandshakeClient,
|
|
|
294
|
+ 0, 0, byte(handshakeBodyLen),
|
|
|
295
|
+ })
|
|
|
296
|
+
|
|
|
297
|
+ // version(2) + random(32) + sessionIDLen(1) + cipherSuiteLen(2) +
|
|
|
298
|
+ // cipherSuite(2) + compressionLen(1) + compression(1) = 41
|
|
|
299
|
+ body := make([]byte, 41)
|
|
|
300
|
+ binary.BigEndian.PutUint16(body[35:], 2)
|
|
|
301
|
+ body[39] = 1
|
|
|
302
|
+
|
|
|
303
|
+ suite.readBuf.Write(body)
|
|
|
304
|
+ suite.readBuf.Write(extensions)
|
|
|
305
|
+}
|
|
|
306
|
+
|
|
|
307
|
+func (suite *ParseClientHelloSNITestSuite) TestCannotReadExtensionsLength() {
|
|
|
308
|
+ suite.writeExtensions(nil)
|
|
|
309
|
+
|
|
|
310
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
311
|
+ suite.ErrorContains(err, "cannot read length of TLS extensions")
|
|
|
312
|
+}
|
|
|
313
|
+
|
|
|
314
|
+func (suite *ParseClientHelloSNITestSuite) TestCannotReadExtensions() {
|
|
|
315
|
+ suite.writeExtensions([]byte{0, 10})
|
|
|
316
|
+
|
|
|
317
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
318
|
+ suite.ErrorContains(err, "cannot read extensions")
|
|
|
319
|
+}
|
|
|
320
|
+
|
|
|
321
|
+func (suite *ParseClientHelloSNITestSuite) TestCannotReadExtensionType() {
|
|
|
322
|
+ suite.writeExtensions([]byte{0, 1, 0xAB})
|
|
|
323
|
+
|
|
|
324
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
325
|
+ suite.ErrorContains(err, "cannot read extension type")
|
|
|
326
|
+}
|
|
|
327
|
+
|
|
|
328
|
+func (suite *ParseClientHelloSNITestSuite) TestCannotReadExtensionLength() {
|
|
|
329
|
+ suite.writeExtensions([]byte{0, 2, 0xFF, 0xFF})
|
|
|
330
|
+
|
|
|
331
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
332
|
+ suite.ErrorContains(err, "length:")
|
|
|
333
|
+}
|
|
|
334
|
+
|
|
|
335
|
+func (suite *ParseClientHelloSNITestSuite) TestCannotReadExtensionData() {
|
|
|
336
|
+ suite.writeExtensions([]byte{0, 4, 0xFF, 0xFF, 0, 5})
|
|
|
337
|
+
|
|
|
338
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
339
|
+ suite.ErrorContains(err, "data: len")
|
|
|
340
|
+}
|
|
|
341
|
+
|
|
|
342
|
+func (suite *ParseClientHelloSNITestSuite) TestCannotReadSNIRecordLength() {
|
|
|
343
|
+ suite.writeExtensions([]byte{0, 5, 0, 0, 0, 1, 0xAB})
|
|
|
344
|
+
|
|
|
345
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
346
|
+ suite.ErrorContains(err, "cannot read the length of the SNI record")
|
|
|
347
|
+}
|
|
|
348
|
+
|
|
|
349
|
+func (suite *ParseClientHelloSNITestSuite) TestCannotReadSNIListType() {
|
|
|
350
|
+ suite.writeExtensions([]byte{0, 6, 0, 0, 0, 2, 0, 1})
|
|
|
351
|
+
|
|
|
352
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
353
|
+ suite.ErrorContains(err, "cannot read SNI list type")
|
|
|
354
|
+}
|
|
|
355
|
+
|
|
|
356
|
+func (suite *ParseClientHelloSNITestSuite) TestIncorrectSNIListType() {
|
|
|
357
|
+ suite.writeExtensions([]byte{0, 7, 0, 0, 0, 3, 0, 1, 5})
|
|
|
358
|
+
|
|
|
359
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
360
|
+ suite.ErrorContains(err, "incorrect SNI list type")
|
|
|
361
|
+}
|
|
|
362
|
+
|
|
|
363
|
+func (suite *ParseClientHelloSNITestSuite) TestCannotReadHostnameLength() {
|
|
|
364
|
+ suite.writeExtensions([]byte{0, 8, 0, 0, 0, 4, 0, 2, 0, 0xAB})
|
|
|
365
|
+
|
|
|
366
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
367
|
+ suite.ErrorContains(err, "incorrect length of the hostname")
|
|
|
368
|
+}
|
|
|
369
|
+
|
|
|
370
|
+func (suite *ParseClientHelloSNITestSuite) TestCannotReadHostname() {
|
|
|
371
|
+ suite.writeExtensions([]byte{0, 9, 0, 0, 0, 5, 0, 3, 0, 0, 5})
|
|
|
372
|
+
|
|
|
373
|
+ _, err := fake.ReadClientHello(suite.connMock, suite.secret, TolerateTime)
|
|
|
374
|
+ suite.ErrorContains(err, "incorrect length of SNI hostname")
|
|
|
375
|
+}
|
|
|
376
|
+
|
|
|
377
|
+func TestParseClientHelloTLSHeader(t *testing.T) {
|
|
|
378
|
+ t.Parallel()
|
|
|
379
|
+ suite.Run(t, &ParseClientHello_TLSHeaderTestSuite{})
|
|
|
380
|
+}
|
|
|
381
|
+
|
|
|
382
|
+func TestParseClientHelloHandshake(t *testing.T) {
|
|
|
383
|
+ t.Parallel()
|
|
|
384
|
+ suite.Run(t, &ParseClientHelloHandshakeTestSuite{})
|
|
|
385
|
+}
|
|
|
386
|
+
|
|
|
387
|
+func TestParseClientHelloHandshakeBody(t *testing.T) {
|
|
|
388
|
+ t.Parallel()
|
|
|
389
|
+ suite.Run(t, &ParseClientHelloHandshakeBodyTestSuite{})
|
|
|
390
|
+}
|
|
|
391
|
+
|
|
|
392
|
+func TestParseClientHelloSNI(t *testing.T) {
|
|
|
393
|
+ t.Parallel()
|
|
|
394
|
+ suite.Run(t, &ParseClientHelloSNITestSuite{})
|
|
|
395
|
+}
|