mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 03:57:36 +03:00
Adds support for following TLS 1.3 extensions: - PSKKeyExchangeModes - SupportedVersions - KeyShare and uses them to implement newest Chrome and Firefox parrots. Tests for default Golang uTLS were regenerated because they previously used TLS-1.2 as max version.
93 lines
6.9 KiB
Text
93 lines
6.9 KiB
Text
>>> Flow 1 (client to server)
|
|
00000000 16 03 01 00 f8 01 00 00 f4 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 20 00 00 00 00 |........... ....|
|
|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 32 cc a8 |.............2..|
|
|
00000050 cc a9 c0 2f c0 2b c0 30 c0 2c c0 27 c0 13 c0 23 |.../.+.0.,.'...#|
|
|
00000060 c0 09 c0 14 c0 0a 00 9c 00 9d 00 3c 00 2f 00 35 |...........<./.5|
|
|
00000070 c0 12 00 0a 00 05 c0 11 c0 07 13 01 13 03 13 02 |................|
|
|
00000080 01 00 00 79 00 05 00 05 01 00 00 00 00 00 0a 00 |...y............|
|
|
00000090 0a 00 08 00 1d 00 17 00 18 00 19 00 0b 00 02 01 |................|
|
|
000000a0 00 00 0d 00 18 00 16 08 04 08 05 08 06 04 01 04 |................|
|
|
000000b0 03 05 01 05 03 06 01 06 03 02 01 02 03 ff 01 00 |................|
|
|
000000c0 01 00 00 12 00 00 00 2b 00 09 08 03 04 03 03 03 |.......+........|
|
|
000000d0 02 03 01 00 33 00 26 00 24 00 1d 00 20 2f e5 7d |....3.&.$... /.}|
|
|
000000e0 a3 47 cd 62 43 15 28 da ac 5f bb 29 07 30 ff f6 |.G.bC.(.._.).0..|
|
|
000000f0 84 af c4 cf c2 ed 90 99 5f 58 cb 3b 74 |........_X.;t|
|
|
>>> Flow 2 (server to client)
|
|
00000000 16 03 03 00 59 02 00 00 55 03 03 f5 47 bb ca 43 |....Y...U...G..C|
|
|
00000010 c0 32 1d cf 1d ad dc 6e f8 3d 1a 1c c0 9b 89 1a |.2.....n.=......|
|
|
00000020 14 52 88 a7 06 6e 63 8b 5f 97 62 20 75 19 84 ce |.R...nc._.b u...|
|
|
00000030 ce c7 a8 14 66 16 f7 1d 58 ac 88 9e 1f 20 d2 24 |....f...X.... .$|
|
|
00000040 b4 4c ab ae 14 20 9a e6 e7 e0 b0 66 c0 09 00 00 |.L... .....f....|
|
|
00000050 0d ff 01 00 01 00 00 0b 00 04 03 00 01 02 16 03 |................|
|
|
00000060 03 02 0e 0b 00 02 0a 00 02 07 00 02 04 30 82 02 |.............0..|
|
|
00000070 00 30 82 01 62 02 09 00 b8 bf 2d 47 a0 d2 eb f4 |.0..b.....-G....|
|
|
00000080 30 09 06 07 2a 86 48 ce 3d 04 01 30 45 31 0b 30 |0...*.H.=..0E1.0|
|
|
00000090 09 06 03 55 04 06 13 02 41 55 31 13 30 11 06 03 |...U....AU1.0...|
|
|
000000a0 55 04 08 13 0a 53 6f 6d 65 2d 53 74 61 74 65 31 |U....Some-State1|
|
|
000000b0 21 30 1f 06 03 55 04 0a 13 18 49 6e 74 65 72 6e |!0...U....Intern|
|
|
000000c0 65 74 20 57 69 64 67 69 74 73 20 50 74 79 20 4c |et Widgits Pty L|
|
|
000000d0 74 64 30 1e 17 0d 31 32 31 31 32 32 31 35 30 36 |td0...1211221506|
|
|
000000e0 33 32 5a 17 0d 32 32 31 31 32 30 31 35 30 36 33 |32Z..22112015063|
|
|
000000f0 32 5a 30 45 31 0b 30 09 06 03 55 04 06 13 02 41 |2Z0E1.0...U....A|
|
|
00000100 55 31 13 30 11 06 03 55 04 08 13 0a 53 6f 6d 65 |U1.0...U....Some|
|
|
00000110 2d 53 74 61 74 65 31 21 30 1f 06 03 55 04 0a 13 |-State1!0...U...|
|
|
00000120 18 49 6e 74 65 72 6e 65 74 20 57 69 64 67 69 74 |.Internet Widgit|
|
|
00000130 73 20 50 74 79 20 4c 74 64 30 81 9b 30 10 06 07 |s Pty Ltd0..0...|
|
|
00000140 2a 86 48 ce 3d 02 01 06 05 2b 81 04 00 23 03 81 |*.H.=....+...#..|
|
|
00000150 86 00 04 00 c4 a1 ed be 98 f9 0b 48 73 36 7e c3 |...........Hs6~.|
|
|
00000160 16 56 11 22 f2 3d 53 c3 3b 4d 21 3d cd 6b 75 e6 |.V.".=S.;M!=.ku.|
|
|
00000170 f6 b0 dc 9a df 26 c1 bc b2 87 f0 72 32 7c b3 64 |.....&.....r2|.d|
|
|
00000180 2f 1c 90 bc ea 68 23 10 7e fe e3 25 c0 48 3a 69 |/....h#.~..%.H:i|
|
|
00000190 e0 28 6d d3 37 00 ef 04 62 dd 0d a0 9c 70 62 83 |.(m.7...b....pb.|
|
|
000001a0 d8 81 d3 64 31 aa 9e 97 31 bd 96 b0 68 c0 9b 23 |...d1...1...h..#|
|
|
000001b0 de 76 64 3f 1a 5c 7f e9 12 0e 58 58 b6 5f 70 dd |.vd?.\....XX._p.|
|
|
000001c0 9b d8 ea d5 d7 f5 d5 cc b9 b6 9f 30 66 5b 66 9a |...........0f[f.|
|
|
000001d0 20 e2 27 e5 bf fe 3b 30 09 06 07 2a 86 48 ce 3d | .'...;0...*.H.=|
|
|
000001e0 04 01 03 81 8c 00 30 81 88 02 42 01 88 a2 4f eb |......0...B...O.|
|
|
000001f0 e2 45 c5 48 7d 1b ac f5 ed 98 9d ae 47 70 c0 5e |.E.H}.......Gp.^|
|
|
00000200 1b b6 2f bd f1 b6 4d b7 61 40 d3 11 a2 ce ee 0b |../...M.a@......|
|
|
00000210 7e 92 7e ff 76 9d c3 3b 7e a5 3f ce fa 10 e2 59 |~.~.v..;~.?....Y|
|
|
00000220 ec 47 2d 7c ac da 4e 97 0e 15 a0 6f d0 02 42 01 |.G-|..N....o..B.|
|
|
00000230 4d fc be 67 13 9c 2d 05 0e bd 3f a3 8c 25 c1 33 |M..g..-...?..%.3|
|
|
00000240 13 83 0d 94 06 bb d4 37 7a f6 ec 7a c9 86 2e dd |.......7z..z....|
|
|
00000250 d7 11 69 7f 85 7c 56 de fb 31 78 2b e4 c7 78 0d |..i..|V..1x+..x.|
|
|
00000260 ae cb be 9e 4e 36 24 31 7b 6a 0f 39 95 12 07 8f |....N6$1{j.9....|
|
|
00000270 2a 16 03 03 00 b7 0c 00 00 b3 03 00 1d 20 e7 7b |*............ .{|
|
|
00000280 2e df 35 43 25 7c 7f 01 75 09 85 c2 16 17 89 e6 |..5C%|..u.......|
|
|
00000290 93 3e 32 9a cd 30 fe 66 05 de ef f7 99 36 04 03 |.>2..0.f.....6..|
|
|
000002a0 00 8b 30 81 88 02 42 01 8b 55 a7 18 5f ac 68 ca |..0...B..U.._.h.|
|
|
000002b0 2b e5 d6 a5 65 b1 f3 51 84 f8 90 68 66 e6 bd a8 |+...e..Q...hf...|
|
|
000002c0 d1 9e 27 10 7e 78 f8 e1 57 52 13 dc 01 20 35 01 |..'.~x..WR... 5.|
|
|
000002d0 df 59 a5 f6 cb 1c bc 8c 0a 6e eb 30 4d f1 25 0d |.Y.......n.0M.%.|
|
|
000002e0 bc 86 7b d8 3b 21 c6 35 4a 02 42 01 d3 be 9b b3 |..{.;!.5J.B.....|
|
|
000002f0 0e 80 e6 f8 f8 5e 55 73 6c 2e bf 93 49 65 bc 34 |.....^Usl...Ie.4|
|
|
00000300 54 ab 19 e4 83 e7 b2 c7 51 67 cf 16 56 4a 7d 99 |T.......Qg..VJ}.|
|
|
00000310 68 7b 05 58 bc 92 cb eb a4 86 3c 5e 8a c1 32 11 |h{.X......<^..2.|
|
|
00000320 ed 62 33 1d e3 4a 0d 39 4d a6 fe e3 40 16 03 03 |.b3..J.9M...@...|
|
|
00000330 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 40 00 00 00 00 00 00 00 00 00 00 00 |....@...........|
|
|
00000040 00 00 00 00 00 6e 08 f7 55 4d 6d 0d 43 9f 92 cd |.....n..UMm.C...|
|
|
00000050 92 a7 47 46 e3 fa 85 ac 9a 56 fc 18 f7 81 d8 18 |..GF.....V......|
|
|
00000060 30 a6 31 e6 47 f8 7e 25 f6 c4 86 fb 2b 18 04 56 |0.1.G.~%....+..V|
|
|
00000070 5f 91 37 f9 5c |_.7.\|
|
|
>>> Flow 4 (server to client)
|
|
00000000 14 03 03 00 01 01 16 03 03 00 40 2e b6 aa 1a 7a |..........@....z|
|
|
00000010 e8 0e bd f1 58 fa af 40 da fb f6 c7 ea d9 fd db |....X..@........|
|
|
00000020 76 73 ef 94 45 78 c7 a2 cc e8 ba 30 6b fc fd bb |vs..Ex.....0k...|
|
|
00000030 81 5b 22 70 2f 61 37 27 5c 73 d5 e4 c3 ca de ee |.["p/a7'\s......|
|
|
00000040 b4 f6 08 48 14 fd d4 78 a3 aa 8d |...H...x...|
|
|
>>> Flow 5 (client to server)
|
|
00000000 17 03 03 00 30 00 00 00 00 00 00 00 00 00 00 00 |....0...........|
|
|
00000010 00 00 00 00 00 97 d5 72 c3 0a 32 5a e8 0e f9 6f |.......r..2Z...o|
|
|
00000020 7b 20 a4 48 6a 20 09 ba 8d bf fe 2e c9 4e da a4 |{ .Hj .......N..|
|
|
00000030 60 92 bb 52 87 15 03 03 00 30 00 00 00 00 00 00 |`..R.....0......|
|
|
00000040 00 00 00 00 00 00 00 00 00 00 0f b4 16 f2 f8 e1 |................|
|
|
00000050 6d e5 1f 4e 3b 9b cf 3b b9 dd 44 cb c7 89 4c 76 |m..N;..;..D...Lv|
|
|
00000060 7b 66 fe d1 2b 07 4b f5 59 bb |{f..+.K.Y.|
|