utls/testdata/Client-TLSv12-UTLS-AES128-GCM-SHA256-Chrome-58
Sergey Frolov fd96e317e6 Fixes #5
The root cause of races is that global variables supportedSignatureAlgorithms and
cipherSuites are used both to form handshake and to check whether or not
peer responded with supported algorithm.
In this patch I create separate variables for this purpose.
Updated tests for kicks.
Finally, go fmt.
2017-08-16 16:12:27 -04:00

93 lines
6.9 KiB
Text

>>> Flow 1 (client to server)
00000000 16 03 01 00 b7 01 00 00 b3 03 03 00 00 00 00 00 |................|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 1c 0a 0a |................|
00000030 c0 2b c0 2f c0 2c c0 30 cc a9 cc a8 c0 13 c0 14 |.+./.,.0........|
00000040 00 9c 00 9d 00 2f 00 35 00 0a 01 00 00 6e 0a 0a |...../.5.....n..|
00000050 00 00 ff 01 00 01 00 00 00 00 05 00 03 00 00 00 |................|
00000060 00 17 00 00 00 23 00 00 00 0d 00 14 00 12 04 03 |.....#..........|
00000070 08 04 04 01 05 03 08 05 05 01 08 06 06 01 02 01 |................|
00000080 00 05 00 05 01 00 00 00 00 00 12 00 00 00 10 00 |................|
00000090 0e 00 0c 02 68 32 08 68 74 74 70 2f 31 2e 31 75 |....h2.http/1.1u|
000000a0 50 00 00 00 0b 00 02 01 00 00 0a 00 0a 00 08 0a |P...............|
000000b0 0a 00 1d 00 17 00 18 1a 1a 00 01 00 |............|
>>> Flow 2 (server to client)
00000000 16 03 03 00 39 02 00 00 35 03 03 95 43 2b 8b 53 |....9...5...C+.S|
00000010 15 af c5 d4 9a 0d c7 66 40 c8 ab 6c a2 ae 2e 2f |.......f@..l.../|
00000020 22 c5 4e 76 a3 ab a3 08 b1 37 68 00 00 9c 00 00 |".Nv.....7h.....|
00000030 0d ff 01 00 01 00 00 23 00 00 00 17 00 00 16 03 |.......#........|
00000040 03 02 59 0b 00 02 55 00 02 52 00 02 4f 30 82 02 |..Y...U..R..O0..|
00000050 4b 30 82 01 b4 a0 03 02 01 02 02 09 00 e8 f0 9d |K0..............|
00000060 3f e2 5b ea a6 30 0d 06 09 2a 86 48 86 f7 0d 01 |?.[..0...*.H....|
00000070 01 0b 05 00 30 1f 31 0b 30 09 06 03 55 04 0a 13 |....0.1.0...U...|
00000080 02 47 6f 31 10 30 0e 06 03 55 04 03 13 07 47 6f |.Go1.0...U....Go|
00000090 20 52 6f 6f 74 30 1e 17 0d 31 36 30 31 30 31 30 | Root0...1601010|
000000a0 30 30 30 30 30 5a 17 0d 32 35 30 31 30 31 30 30 |00000Z..25010100|
000000b0 30 30 30 30 5a 30 1a 31 0b 30 09 06 03 55 04 0a |0000Z0.1.0...U..|
000000c0 13 02 47 6f 31 0b 30 09 06 03 55 04 03 13 02 47 |..Go1.0...U....G|
000000d0 6f 30 81 9f 30 0d 06 09 2a 86 48 86 f7 0d 01 01 |o0..0...*.H.....|
000000e0 01 05 00 03 81 8d 00 30 81 89 02 81 81 00 db 46 |.......0.......F|
000000f0 7d 93 2e 12 27 06 48 bc 06 28 21 ab 7e c4 b6 a2 |}...'.H..(!.~...|
00000100 5d fe 1e 52 45 88 7a 36 47 a5 08 0d 92 42 5b c2 |]..RE.z6G....B[.|
00000110 81 c0 be 97 79 98 40 fb 4f 6d 14 fd 2b 13 8b c2 |....y.@.Om..+...|
00000120 a5 2e 67 d8 d4 09 9e d6 22 38 b7 4a 0b 74 73 2b |..g....."8.J.ts+|
00000130 c2 34 f1 d1 93 e5 96 d9 74 7b f3 58 9f 6c 61 3c |.4......t{.X.la<|
00000140 c0 b0 41 d4 d9 2b 2b 24 23 77 5b 1c 3b bd 75 5d |..A..++$#w[.;.u]|
00000150 ce 20 54 cf a1 63 87 1d 1e 24 c4 f3 1d 1a 50 8b |. T..c...$....P.|
00000160 aa b6 14 43 ed 97 a7 75 62 f4 14 c8 52 d7 02 03 |...C...ub...R...|
00000170 01 00 01 a3 81 93 30 81 90 30 0e 06 03 55 1d 0f |......0..0...U..|
00000180 01 01 ff 04 04 03 02 05 a0 30 1d 06 03 55 1d 25 |.........0...U.%|
00000190 04 16 30 14 06 08 2b 06 01 05 05 07 03 01 06 08 |..0...+.........|
000001a0 2b 06 01 05 05 07 03 02 30 0c 06 03 55 1d 13 01 |+.......0...U...|
000001b0 01 ff 04 02 30 00 30 19 06 03 55 1d 0e 04 12 04 |....0.0...U.....|
000001c0 10 9f 91 16 1f 43 43 3e 49 a6 de 6d b6 80 d7 9f |.....CC>I..m....|
000001d0 60 30 1b 06 03 55 1d 23 04 14 30 12 80 10 48 13 |`0...U.#..0...H.|
000001e0 49 4d 13 7e 16 31 bb a3 01 d5 ac ab 6e 7b 30 19 |IM.~.1......n{0.|
000001f0 06 03 55 1d 11 04 12 30 10 82 0e 65 78 61 6d 70 |..U....0...examp|
00000200 6c 65 2e 67 6f 6c 61 6e 67 30 0d 06 09 2a 86 48 |le.golang0...*.H|
00000210 86 f7 0d 01 01 0b 05 00 03 81 81 00 9d 30 cc 40 |.............0.@|
00000220 2b 5b 50 a0 61 cb ba e5 53 58 e1 ed 83 28 a9 58 |+[P.a...SX...(.X|
00000230 1a a9 38 a4 95 a1 ac 31 5a 1a 84 66 3d 43 d3 2d |..8....1Z..f=C.-|
00000240 d9 0b f2 97 df d3 20 64 38 92 24 3a 00 bc cf 9c |...... d8.$:....|
00000250 7d b7 40 20 01 5f aa d3 16 61 09 a2 76 fd 13 c3 |}.@ ._...a..v...|
00000260 cc e1 0c 5c ee b1 87 82 f1 6c 04 ed 73 bb b3 43 |...\.....l..s..C|
00000270 77 8d 0c 1c f1 0f a1 d8 40 83 61 c9 4c 72 2b 9d |w.......@.a.Lr+.|
00000280 ae db 46 06 06 4d f4 c1 b3 3e c0 d1 bd 42 d4 db |..F..M...>...B..|
00000290 fe 3d 13 60 84 5c 21 d3 3b e9 fa e7 16 03 03 00 |.=.`.\!.;.......|
000002a0 04 0e 00 00 00 |.....|
>>> Flow 3 (client to server)
00000000 16 03 03 00 86 10 00 00 82 00 80 b9 65 8d bf a7 |............e...|
00000010 c8 4b 79 ce 6f cb 8b 13 1c ac b9 7d 66 5e e9 ba |.Ky.o......}f^..|
00000020 1d 71 4e a9 e9 34 ae f6 64 65 90 3b d8 16 52 a2 |.qN..4..de.;..R.|
00000030 6f f4 cb 8a 13 74 a2 ee b7 27 69 b4 41 c0 90 68 |o....t...'i.A..h|
00000040 bc 02 69 e1 c6 48 4f 39 36 30 25 ca 4c 17 ce 83 |..i..HO960%.L...|
00000050 9e 08 56 e3 05 49 93 9e 2e c4 fb e6 c8 01 f1 0f |..V..I..........|
00000060 c5 70 0f 08 83 48 e9 48 ef 6e 50 8b 05 7e e5 84 |.p...H.H.nP..~..|
00000070 25 fa 55 c7 ae 31 02 27 00 ef 3f 98 86 20 12 89 |%.U..1.'..?.. ..|
00000080 91 59 28 b4 f7 d7 af d2 69 61 35 14 03 03 00 01 |.Y(.....ia5.....|
00000090 01 16 03 03 00 28 00 00 00 00 00 00 00 00 83 1a |.....(..........|
000000a0 c3 68 05 cc 24 43 64 d3 3f ca 96 7b 9c 8f 59 0c |.h..$Cd.?..{..Y.|
000000b0 35 38 f0 d3 e8 60 da 01 13 c1 69 bb 22 d9 |58...`....i.".|
>>> Flow 4 (server to client)
00000000 16 03 03 00 ba 04 00 00 b6 00 00 1c 20 00 b0 55 |............ ..U|
00000010 24 cf 68 af 8f 89 d9 fd b2 49 bf 46 75 38 08 a9 |$.h......I.Fu8..|
00000020 55 41 2c d2 56 94 0c ec ff ae 3f 06 91 52 cd ca |UA,.V.....?..R..|
00000030 34 86 6a 3e e7 ed 05 fc 6f eb 59 32 43 cc 6e 14 |4.j>....o.Y2C.n.|
00000040 e3 03 23 14 a3 1b cb 36 f9 b6 09 10 78 16 11 9c |..#....6....x...|
00000050 41 9b 60 8f cf fc 24 9f e8 39 7f 30 6b c6 aa 52 |A.`...$..9.0k..R|
00000060 19 e0 64 34 f4 ac e6 51 22 75 fd 80 bf 63 80 15 |..d4...Q"u...c..|
00000070 62 e6 f2 f4 25 6a d0 db 3b 11 60 bc 36 1e a4 ff |b...%j..;.`.6...|
00000080 4f 7d 72 5a af 50 40 94 70 8d 99 f0 8e e9 61 93 |O}rZ.P@.p.....a.|
00000090 fa 67 d3 ad 46 7e 9f 8f 85 76 06 12 05 46 d7 7f |.g..F~...v...F..|
000000a0 e2 71 bb fe 40 79 1a a5 6b 71 8d 72 04 ab 42 c9 |.q..@y..kq.r..B.|
000000b0 cd 52 a7 3b 65 f6 26 4a 9e 3c 7c 6a 2b 06 42 14 |.R.;e.&J.<|j+.B.|
000000c0 03 03 00 01 01 16 03 03 00 28 2b 11 f2 39 89 ac |.........(+..9..|
000000d0 7e 31 0c 67 d9 26 f5 4d a0 f4 11 32 62 4e 0f 51 |~1.g.&.M...2bN.Q|
000000e0 c0 bd c8 a2 c2 ad 1c 65 e3 3b 2e cf 4d dd be c1 |.......e.;..M...|
000000f0 86 63 |.c|
>>> Flow 5 (client to server)
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 35 73 29 |.............5s)|
00000010 67 cf 17 5f 2d 61 ff 1d 4e 66 38 20 e0 71 e6 91 |g.._-a..Nf8 .q..|
00000020 a7 f2 a6 15 03 03 00 1a 00 00 00 00 00 00 00 02 |................|
00000030 cf 6a dc ab 14 14 e0 07 01 b5 28 f9 c9 d8 69 03 |.j........(...i.|
00000040 e3 57 |.W|