utls/testdata/Client-TLSv12-UTLS-ECDHE-RSA-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

98 lines
7.3 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 41 02 00 00 3d 03 03 2e 5a 8a 26 17 |....A...=...Z.&.|
00000010 db 55 83 da 1a 49 a2 1f 15 d9 e2 68 cd c2 43 de |.U...I.....h..C.|
00000020 e3 aa ef 6d 7c 17 fe ca c0 57 4f 00 c0 2f 00 00 |...m|....WO../..|
00000030 15 ff 01 00 01 00 00 0b 00 04 03 00 01 02 00 23 |...............#|
00000040 00 00 00 17 00 00 16 03 03 02 59 0b 00 02 55 00 |..........Y...U.|
00000050 02 52 00 02 4f 30 82 02 4b 30 82 01 b4 a0 03 02 |.R..O0..K0......|
00000060 01 02 02 09 00 e8 f0 9d 3f e2 5b ea a6 30 0d 06 |........?.[..0..|
00000070 09 2a 86 48 86 f7 0d 01 01 0b 05 00 30 1f 31 0b |.*.H........0.1.|
00000080 30 09 06 03 55 04 0a 13 02 47 6f 31 10 30 0e 06 |0...U....Go1.0..|
00000090 03 55 04 03 13 07 47 6f 20 52 6f 6f 74 30 1e 17 |.U....Go Root0..|
000000a0 0d 31 36 30 31 30 31 30 30 30 30 30 30 5a 17 0d |.160101000000Z..|
000000b0 32 35 30 31 30 31 30 30 30 30 30 30 5a 30 1a 31 |250101000000Z0.1|
000000c0 0b 30 09 06 03 55 04 0a 13 02 47 6f 31 0b 30 09 |.0...U....Go1.0.|
000000d0 06 03 55 04 03 13 02 47 6f 30 81 9f 30 0d 06 09 |..U....Go0..0...|
000000e0 2a 86 48 86 f7 0d 01 01 01 05 00 03 81 8d 00 30 |*.H............0|
000000f0 81 89 02 81 81 00 db 46 7d 93 2e 12 27 06 48 bc |.......F}...'.H.|
00000100 06 28 21 ab 7e c4 b6 a2 5d fe 1e 52 45 88 7a 36 |.(!.~...]..RE.z6|
00000110 47 a5 08 0d 92 42 5b c2 81 c0 be 97 79 98 40 fb |G....B[.....y.@.|
00000120 4f 6d 14 fd 2b 13 8b c2 a5 2e 67 d8 d4 09 9e d6 |Om..+.....g.....|
00000130 22 38 b7 4a 0b 74 73 2b c2 34 f1 d1 93 e5 96 d9 |"8.J.ts+.4......|
00000140 74 7b f3 58 9f 6c 61 3c c0 b0 41 d4 d9 2b 2b 24 |t{.X.la<..A..++$|
00000150 23 77 5b 1c 3b bd 75 5d ce 20 54 cf a1 63 87 1d |#w[.;.u]. T..c..|
00000160 1e 24 c4 f3 1d 1a 50 8b aa b6 14 43 ed 97 a7 75 |.$....P....C...u|
00000170 62 f4 14 c8 52 d7 02 03 01 00 01 a3 81 93 30 81 |b...R.........0.|
00000180 90 30 0e 06 03 55 1d 0f 01 01 ff 04 04 03 02 05 |.0...U..........|
00000190 a0 30 1d 06 03 55 1d 25 04 16 30 14 06 08 2b 06 |.0...U.%..0...+.|
000001a0 01 05 05 07 03 01 06 08 2b 06 01 05 05 07 03 02 |........+.......|
000001b0 30 0c 06 03 55 1d 13 01 01 ff 04 02 30 00 30 19 |0...U.......0.0.|
000001c0 06 03 55 1d 0e 04 12 04 10 9f 91 16 1f 43 43 3e |..U..........CC>|
000001d0 49 a6 de 6d b6 80 d7 9f 60 30 1b 06 03 55 1d 23 |I..m....`0...U.#|
000001e0 04 14 30 12 80 10 48 13 49 4d 13 7e 16 31 bb a3 |..0...H.IM.~.1..|
000001f0 01 d5 ac ab 6e 7b 30 19 06 03 55 1d 11 04 12 30 |....n{0...U....0|
00000200 10 82 0e 65 78 61 6d 70 6c 65 2e 67 6f 6c 61 6e |...example.golan|
00000210 67 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 |g0...*.H........|
00000220 03 81 81 00 9d 30 cc 40 2b 5b 50 a0 61 cb ba e5 |.....0.@+[P.a...|
00000230 53 58 e1 ed 83 28 a9 58 1a a9 38 a4 95 a1 ac 31 |SX...(.X..8....1|
00000240 5a 1a 84 66 3d 43 d3 2d d9 0b f2 97 df d3 20 64 |Z..f=C.-...... d|
00000250 38 92 24 3a 00 bc cf 9c 7d b7 40 20 01 5f aa d3 |8.$:....}.@ ._..|
00000260 16 61 09 a2 76 fd 13 c3 cc e1 0c 5c ee b1 87 82 |.a..v......\....|
00000270 f1 6c 04 ed 73 bb b3 43 77 8d 0c 1c f1 0f a1 d8 |.l..s..Cw.......|
00000280 40 83 61 c9 4c 72 2b 9d ae db 46 06 06 4d f4 c1 |@.a.Lr+...F..M..|
00000290 b3 3e c0 d1 bd 42 d4 db fe 3d 13 60 84 5c 21 d3 |.>...B...=.`.\!.|
000002a0 3b e9 fa e7 16 03 03 00 ac 0c 00 00 a8 03 00 1d |;...............|
000002b0 20 76 a4 b4 52 3f 82 35 d8 37 37 18 16 c9 22 0a | v..R?.5.77...".|
000002c0 cf 6a 1e 7d 82 5a 65 e3 99 c1 0c ca 4a ae f9 a2 |.j.}.Ze.....J...|
000002d0 3a 04 01 00 80 89 2d b6 30 e8 ff 65 c2 0b 04 2c |:.....-.0..e...,|
000002e0 10 72 5f 4d 18 18 f6 4f d8 d2 8e 4c 69 63 b8 97 |.r_M...O...Lic..|
000002f0 de 9a 15 4d a5 25 51 b3 e0 30 cd 3d 28 42 f3 fb |...M.%Q..0.=(B..|
00000300 16 69 61 3f a3 14 67 9c 02 37 9a 2a 37 bf 2c a5 |.ia?..g..7.*7.,.|
00000310 37 6e 32 f0 d8 75 0b 06 da 6b 47 91 bd 18 ed 04 |7n2..u...kG.....|
00000320 20 ea 75 af 2b b2 f4 6c 10 7d ed 58 19 b8 4c 40 | .u.+..l.}.X..L@|
00000330 e1 26 b9 ec 74 2c 4d 88 f4 d4 7c 46 00 ee d2 c8 |.&..t,M...|F....|
00000340 4a 3d 55 41 2d 46 41 6f 1c 66 3d 41 1f 41 51 96 |J=UA-FAo.f=A.AQ.|
00000350 87 b4 93 b7 fb 16 03 03 00 04 0e 00 00 00 |..............|
>>> Flow 3 (client to server)
00000000 16 03 03 00 25 10 00 00 21 20 2f e5 7d a3 47 cd |....%...! /.}.G.|
00000010 62 43 15 28 da ac 5f bb 29 07 30 ff f6 84 af c4 |bC.(.._.).0.....|
00000020 cf c2 ed 90 99 5f 58 cb 3b 74 14 03 03 00 01 01 |....._X.;t......|
00000030 16 03 03 00 28 00 00 00 00 00 00 00 00 89 d4 0d |....(...........|
00000040 b9 90 63 ba 1e 7c 4b fb 15 61 e8 c6 de a1 2f 83 |..c..|K..a..../.|
00000050 9a 5c f7 42 67 16 d9 6d bf 9d f5 87 9a |.\.Bg..m.....|
>>> Flow 4 (server to client)
00000000 16 03 03 00 ba 04 00 00 b6 00 00 1c 20 00 b0 c9 |............ ...|
00000010 01 3b 15 49 77 ea 5f 9d 69 73 1a 21 38 c7 e1 be |.;.Iw._.is.!8...|
00000020 7f fa ff 50 c3 4b 3e c5 bf 39 26 00 32 64 ed 99 |...P.K>..9&.2d..|
00000030 d8 d7 aa a5 fa 73 da 97 c8 16 78 1b 1d 1d be 87 |.....s....x.....|
00000040 9d f5 bb 1c f2 94 bb c4 79 a7 41 3c 7e f3 d4 b6 |........y.A<~...|
00000050 bb d7 73 ce e8 95 d5 88 1b e0 91 2e 07 7b fc db |..s..........{..|
00000060 fa 90 23 e0 59 a1 fa 92 df 00 4e fb d2 8a 91 98 |..#.Y.....N.....|
00000070 6e 8a 7f b0 75 c3 c1 be b8 78 9b bb ba c4 d1 22 |n...u....x....."|
00000080 d8 f9 2a 26 69 de cf 44 19 e4 56 05 4f 83 e2 c1 |..*&i..D..V.O...|
00000090 aa c1 a0 d0 77 f9 1c 9c c4 83 b9 a2 98 46 c7 6f |....w........F.o|
000000a0 6b 3a fc dc 1b e4 94 1d f3 4b 11 77 d3 52 bc 77 |k:.......K.w.R.w|
000000b0 a6 6a a4 8b 09 7e e3 a9 e3 c5 ad 2e 2d d2 a6 14 |.j...~......-...|
000000c0 03 03 00 01 01 16 03 03 00 28 81 82 77 e1 70 b3 |.........(..w.p.|
000000d0 a4 f6 06 c7 6e dd 12 86 3c 7c 96 03 48 72 e0 b7 |....n...<|..Hr..|
000000e0 ac 0e 54 3b b5 24 f5 34 16 4e a4 ab c9 a6 3e 14 |..T;.$.4.N....>.|
000000f0 be 1f |..|
>>> Flow 5 (client to server)
00000000 17 03 03 00 1e 00 00 00 00 00 00 00 01 84 ea cf |................|
00000010 e3 0f 6b 4f 9f 1a 1c 6c f0 8c d2 19 df b8 c2 39 |..kO...l.......9|
00000020 66 42 90 15 03 03 00 1a 00 00 00 00 00 00 00 02 |fB..............|
00000030 2c 54 03 51 27 1b 32 22 63 c5 d9 db 79 b0 3f 4c |,T.Q'.2"c...y.?L|
00000040 aa 11 |..|