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.
123 lines
9.2 KiB
Text
123 lines
9.2 KiB
Text
>>> Flow 1 (client to server)
|
|
00000000 16 03 01 02 00 01 00 01 fc 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 24 13 01 |.............$..|
|
|
00000050 13 03 13 02 c0 2b c0 2f cc a9 cc a8 c0 2c c0 30 |.....+./.....,.0|
|
|
00000060 c0 0a c0 09 c0 13 c0 14 00 33 00 39 00 2f 00 35 |.........3.9./.5|
|
|
00000070 00 0a 01 00 01 8f 00 00 00 05 00 03 00 00 00 00 |................|
|
|
00000080 17 00 00 ff 01 00 01 00 00 0a 00 0e 00 0c 00 1d |................|
|
|
00000090 00 17 00 18 00 19 01 00 01 01 00 0b 00 02 01 00 |................|
|
|
000000a0 00 23 00 00 00 10 00 0e 00 0c 02 68 32 08 68 74 |.#.........h2.ht|
|
|
000000b0 74 70 2f 31 2e 31 00 05 00 05 01 00 00 00 00 00 |tp/1.1..........|
|
|
000000c0 33 00 6b 00 69 00 1d 00 20 2f e5 7d a3 47 cd 62 |3.k.i... /.}.G.b|
|
|
000000d0 43 15 28 da ac 5f bb 29 07 30 ff f6 84 af c4 cf |C.(.._.).0......|
|
|
000000e0 c2 ed 90 99 5f 58 cb 3b 74 00 17 00 41 04 1e 18 |...._X.;t...A...|
|
|
000000f0 37 ef 0d 19 51 88 35 75 71 b5 e5 54 5b 12 2e 8f |7...Q.5uq..T[...|
|
|
00000100 09 67 fd a7 24 20 3e b2 56 1c ce 97 28 5e f8 2b |.g..$ >.V...(^.+|
|
|
00000110 2d 4f 9e f1 07 9f 6c 4b 5b 83 56 e2 32 42 e9 58 |-O....lK[.V.2B.X|
|
|
00000120 b6 d7 49 a6 b5 68 1a 41 03 56 6b dc 5a 89 00 2b |..I..h.A.Vk.Z..+|
|
|
00000130 00 09 08 03 04 03 03 03 02 03 01 00 0d 00 18 00 |................|
|
|
00000140 16 04 03 05 03 06 03 08 04 08 05 08 06 04 01 05 |................|
|
|
00000150 01 06 01 02 03 02 01 00 2d 00 02 01 01 00 1c 00 |........-.......|
|
|
00000160 02 40 01 00 15 00 9e 00 00 00 00 00 00 00 00 00 |.@..............|
|
|
00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
|
00000200 00 00 00 00 00 |.....|
|
|
>>> Flow 2 (server to client)
|
|
00000000 16 03 03 00 41 02 00 00 3d 03 03 ba da ea aa 3f |....A...=......?|
|
|
00000010 2c ce 11 d1 b8 56 22 24 42 93 16 fb 00 0e 04 4f |,....V"$B......O|
|
|
00000020 8a 5e dc 23 f8 03 32 34 9c 6b a8 00 c0 14 00 00 |.^.#..24.k......|
|
|
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 10 9a b3 94 89 c7 d8 bb 9e 37 bc 1b 25 7c b6 | .........7..%|.|
|
|
000002c0 27 3b 2d f9 59 0b 07 a6 0f b8 c2 2a 16 dd 6e 4a |';-.Y......*..nJ|
|
|
000002d0 7a 08 04 00 80 17 e6 65 44 7a e5 67 37 a6 eb 3d |z......eDz.g7..=|
|
|
000002e0 dc 66 d5 95 b5 38 42 d6 2d 55 55 08 8b 47 3a d4 |.f...8B.-UU..G:.|
|
|
000002f0 a8 f1 1a 2d 76 c7 11 78 bb 0e a5 24 df 0a 8f 0f |...-v..x...$....|
|
|
00000300 f1 c8 b1 c0 61 66 6e 51 e9 34 fe 00 11 60 cd b6 |....afnQ.4...`..|
|
|
00000310 0a 58 e7 90 b8 c9 79 4b f4 d4 10 46 23 a6 cc 39 |.X....yK...F#..9|
|
|
00000320 1e 21 27 4b 8c 06 25 6d 18 f6 d0 fb 64 29 f5 21 |.!'K..%m....d).!|
|
|
00000330 9b cf 81 11 f8 38 ad 7f 08 63 ff 59 f9 7e 26 c0 |.....8...c.Y.~&.|
|
|
00000340 3f c9 71 78 67 ac 31 6b 03 97 fc de ec 72 ca 98 |?.qxg.1k.....r..|
|
|
00000350 36 f7 be 70 5c 16 03 03 00 04 0e 00 00 00 |6..p\.........|
|
|
>>> 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 01 d5 93 3a 70 73 1e 6e 41 44 fe |........:ps.nAD.|
|
|
00000050 ed d3 f0 19 d7 f9 c8 59 36 81 dc 2a e6 72 40 4c |.......Y6..*.r@L|
|
|
00000060 c3 21 c5 34 29 7b 84 6e aa ab 45 1a c5 52 01 99 |.!.4){.n..E..R..|
|
|
00000070 7c 48 7e 1d 25 ||H~.%|
|
|
>>> Flow 4 (server to client)
|
|
00000000 16 03 03 00 aa 04 00 00 a6 00 00 1c 20 00 a0 24 |............ ..$|
|
|
00000010 f3 1a 09 e3 c0 0d ac 83 cc 65 cb 1d 24 9e dd 62 |.........e..$..b|
|
|
00000020 d4 72 fc 5b 8b 78 67 87 77 d4 40 79 cd 40 9e 15 |.r.[.xg.w.@y.@..|
|
|
00000030 37 be d1 89 42 ac 8a d9 ad 53 65 ba c6 47 d5 95 |7...B....Se..G..|
|
|
00000040 22 79 a7 51 07 7f 87 5f 85 7b c5 fc 0b 46 98 f0 |"y.Q..._.{...F..|
|
|
00000050 93 3c e8 b5 da ff 63 73 ce 8a fd fa cd 2c c2 73 |.<....cs.....,.s|
|
|
00000060 30 c3 e3 9c 83 3e 74 ff a0 4f ca a5 e0 d1 10 41 |0....>t..O.....A|
|
|
00000070 33 67 2c 87 59 e4 5e 05 9a 9f 10 1a ae 41 e7 6e |3g,.Y.^......A.n|
|
|
00000080 9d 0a 76 29 89 f6 11 34 17 2e 1e 42 91 d5 4c 51 |..v)...4...B..LQ|
|
|
00000090 f5 18 98 8a e2 97 67 6e 5c 83 a5 b1 01 7a 43 59 |......gn\....zCY|
|
|
000000a0 d4 51 02 49 d0 fd b0 2b 15 d3 3a 23 99 8e b8 14 |.Q.I...+..:#....|
|
|
000000b0 03 03 00 01 01 16 03 03 00 40 4c c1 f3 ed 67 59 |.........@L...gY|
|
|
000000c0 80 52 d4 e8 47 f3 78 70 ec ef 1d 8c 3c ec 9d 4a |.R..G.xp....<..J|
|
|
000000d0 45 03 11 73 16 3c 30 70 46 41 79 22 11 28 3c 17 |E..s.<0pFAy".(<.|
|
|
000000e0 65 0d 2e 04 a0 a3 c2 71 ed 30 fa 11 ed 3d 9f bb |e......q.0...=..|
|
|
000000f0 52 49 76 32 2d eb 79 38 9c b7 |RIv2-.y8..|
|
|
>>> 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 29 27 d6 e7 01 09 99 b3 0c d3 af |.....)'.........|
|
|
00000020 f4 49 13 f1 3c 57 63 0e 9c 4f e5 ea 52 6e b5 b4 |.I..<Wc..O..Rn..|
|
|
00000030 51 f6 ea 08 f5 15 03 03 00 30 00 00 00 00 00 00 |Q........0......|
|
|
00000040 00 00 00 00 00 00 00 00 00 00 d6 0b c5 1a 67 a6 |..............g.|
|
|
00000050 31 6d c4 b5 bb e7 50 a1 a4 8e 79 ca fd 4b 85 c0 |1m....P...y..K..|
|
|
00000060 93 a9 22 21 a1 73 5e 8b d9 f9 |.."!.s^...|
|