utls/testdata/Server-TLSv13-AES128-SHA256
Filippo Valsorda 5b79a7c982 crypto/tls: implement TLS 1.3 middlebox compatibility mode
Looks like the introduction of CCS records in the client second flight
gave time to s_server to send NewSessionTicket messages in between the
client application data and close_notify. There seems to be no way of
turning NewSessionTicket messages off, neither by not sending a
psk_key_exchange_modes extension, nor by command line flag.

Interleaving the client write like that tickled an issue akin to #18701:
on Windows, the client reaches Close() before the last record is drained
from the send buffer, the kernel notices and resets the connection,
cutting short the last flow. There is no good way of synchronizing this,
so we sleep for a RTT before calling close, like in CL 75210. Sigh.

Updates #9671

Change-Id: I44dc1cca17b373695b5a18c2741f218af2990bd1
Reviewed-on: https://go-review.googlesource.com/c/147419
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Adam Langley <agl@golang.org>
2018-11-12 20:43:06 +00:00

90 lines
6.7 KiB
Text

>>> Flow 1 (client to server)
00000000 16 03 01 00 dc 01 00 00 d8 03 03 f7 9c d1 5f 55 |.............._U|
00000010 eb 97 fd e1 e6 95 50 97 d0 c6 ad ca e0 08 a0 f5 |......P.........|
00000020 ae 38 9e 60 28 e9 dc 06 3c 54 c5 20 46 14 c7 70 |.8.`(...<T. F..p|
00000030 69 0d f2 97 27 19 5e 26 3a 1a 3a 70 ec bd 5b 98 |i...'.^&:.:p..[.|
00000040 37 15 49 09 f9 6a e5 d9 24 a7 df 49 00 04 13 01 |7.I..j..$..I....|
00000050 00 ff 01 00 00 8b 00 00 00 0e 00 0c 00 00 09 31 |...............1|
00000060 32 37 2e 30 2e 30 2e 31 00 0b 00 04 03 00 01 02 |27.0.0.1........|
00000070 00 0a 00 0c 00 0a 00 1d 00 17 00 1e 00 19 00 18 |................|
00000080 00 16 00 00 00 17 00 00 00 0d 00 1e 00 1c 04 03 |................|
00000090 05 03 06 03 08 07 08 08 08 09 08 0a 08 0b 08 04 |................|
000000a0 08 05 08 06 04 01 05 01 06 01 00 2b 00 03 02 03 |...........+....|
000000b0 04 00 2d 00 02 01 01 00 33 00 26 00 24 00 1d 00 |..-.....3.&.$...|
000000c0 20 c3 51 8d 67 9c 81 e9 70 8e 8c 4f 85 79 7f ad | .Q.g...p..O.y..|
000000d0 a9 63 8d 2a 48 84 a5 05 03 58 c7 c0 0b ab 9f 7c |.c.*H....X.....||
000000e0 1d |.|
>>> Flow 2 (server to client)
00000000 16 03 03 00 7a 02 00 00 76 03 03 00 00 00 00 00 |....z...v.......|
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 46 14 c7 70 |........... F..p|
00000030 69 0d f2 97 27 19 5e 26 3a 1a 3a 70 ec bd 5b 98 |i...'.^&:.:p..[.|
00000040 37 15 49 09 f9 6a e5 d9 24 a7 df 49 13 01 00 00 |7.I..j..$..I....|
00000050 2e 00 2b 00 02 03 04 00 33 00 24 00 1d 00 20 2f |..+.....3.$... /|
00000060 e5 7d a3 47 cd 62 43 15 28 da ac 5f bb 29 07 30 |.}.G.bC.(.._.).0|
00000070 ff f6 84 af c4 cf c2 ed 90 99 5f 58 cb 3b 74 14 |.........._X.;t.|
00000080 03 03 00 01 01 17 03 03 00 17 65 99 0a bb fc 0a |..........e.....|
00000090 a1 c2 2d 9c 7f 2e 0f 8d 50 5b 17 d3 66 6b 08 d1 |..-.....P[..fk..|
000000a0 cd 17 03 03 02 6d e6 e8 30 95 96 f8 18 a4 0e a9 |.....m..0.......|
000000b0 18 eb 1a 61 d4 57 c4 69 5c fa bf 26 cb d3 6d e7 |...a.W.i\..&..m.|
000000c0 d9 cd b7 d1 a2 46 c2 2d b2 83 f0 02 30 51 73 ac |.....F.-....0Qs.|
000000d0 8c 47 b3 5a b0 ae 13 7f ad a0 15 da 48 96 da 84 |.G.Z........H...|
000000e0 69 e3 a4 8a 71 33 63 1b 6d 42 6d 57 f4 9c 46 fb |i...q3c.mBmW..F.|
000000f0 c0 4a ad 77 6b 99 81 0c 2a 2d a2 d0 98 89 7b 8c |.J.wk...*-....{.|
00000100 ee 56 a4 e0 94 1a 83 07 5f 64 b2 7a 11 77 98 df |.V......_d.z.w..|
00000110 32 85 14 19 5b 97 4e 47 48 7c 6d bf f8 34 eb d4 |2...[.NGH|m..4..|
00000120 38 90 0e 78 df f4 94 49 11 5e 7f d3 65 d3 36 e8 |8..x...I.^..e.6.|
00000130 26 bc a1 ba 28 c8 2e 51 86 77 ea f0 91 4b 7e 31 |&...(..Q.w...K~1|
00000140 9c 42 63 f9 17 7f b4 6d 68 69 76 a2 3c 7f af 01 |.Bc....mhiv.<...|
00000150 d6 e2 72 c3 c9 2a d9 b9 e4 a1 e9 6b 05 07 7f d3 |..r..*.....k....|
00000160 e3 55 d5 9e df 5e 02 ad 3f 84 8f 17 47 f8 c1 6f |.U...^..?...G..o|
00000170 3a 98 63 f7 5f a6 3c a9 79 31 74 3d 99 c2 6c 91 |:.c._.<.y1t=..l.|
00000180 3f 72 5d 96 d4 55 de 46 44 44 d9 99 6f ef d4 96 |?r]..U.FDD..o...|
00000190 f7 a9 e1 2b fc d3 e7 0a a2 01 36 50 b6 8b 29 97 |...+......6P..).|
000001a0 4e 5b 7f f0 20 82 79 3e ea e3 f1 df 40 c5 02 66 |N[.. .y>....@..f|
000001b0 ba f9 fc c1 cf 08 0a ef 18 16 11 4a 78 9b 94 82 |...........Jx...|
000001c0 07 e1 a7 45 b4 7d 47 f9 ae 4b d1 86 d4 86 10 b3 |...E.}G..K......|
000001d0 7e 18 23 12 2f a0 5b 89 fb 82 0d 44 2b cb 4a 05 |~.#./.[....D+.J.|
000001e0 61 f6 9b 66 41 d2 37 9c 3c 05 4e 84 6d 67 65 6f |a..fA.7.<.N.mgeo|
000001f0 0e 0e 97 5c 92 19 f1 b8 14 08 f2 0e a9 a6 93 1e |...\............|
00000200 c5 8c a6 e2 da f1 fe e2 87 67 1b 88 c8 50 73 49 |.........g...PsI|
00000210 2b 27 7a 86 24 d7 55 03 44 a3 45 13 b8 e9 d2 62 |+'z.$.U.D.E....b|
00000220 a5 27 7c 95 31 6d cf aa a1 21 57 c5 1a 7e 4e 63 |.'|.1m...!W..~Nc|
00000230 ad 94 78 7a 42 61 16 19 9c c4 39 de a4 78 71 c3 |..xzBa....9..xq.|
00000240 00 e8 01 4e 1a 84 8b 70 83 cc 09 12 1f 31 18 80 |...N...p.....1..|
00000250 70 92 4e 7e 77 4a d9 05 92 44 e2 03 8e 8e 9b 3c |p.N~wJ...D.....<|
00000260 25 d3 a9 a4 6d 42 06 35 bd 5c 7b e6 b2 99 3f 8f |%...mB.5.\{...?.|
00000270 ba 53 3c e5 45 41 17 19 0e 74 3b 9b 00 93 bb a1 |.S<.EA...t;.....|
00000280 b6 a6 08 a9 58 7b b1 f2 4b 03 c3 d8 2e a4 79 18 |....X{..K.....y.|
00000290 08 8f 1e 10 8d 72 04 76 a9 18 6c 11 8f 19 87 e2 |.....r.v..l.....|
000002a0 6f a6 b1 46 b7 0c 75 e7 a4 87 c1 c5 b4 93 82 85 |o..F..u.........|
000002b0 99 76 41 57 d3 ca 8d 7e 4c e5 83 b0 e7 dd 9e 61 |.vAW...~L......a|
000002c0 11 3c 21 f6 c5 1a 91 25 d5 20 5d 20 55 74 bb 04 |.<!....%. ] Ut..|
000002d0 dc cb 98 f2 5b b0 2a 09 40 f0 ea 31 97 a9 f8 34 |....[.*.@..1...4|
000002e0 6e 6f 19 24 aa fe b9 18 51 a4 dd 75 26 c4 ee a5 |no.$....Q..u&...|
000002f0 55 ef bd e5 7e 5a 72 c4 2f 1c d6 b6 24 6d 56 3d |U...~Zr./...$mV=|
00000300 67 3b 56 ce 65 79 21 70 63 ed a5 09 b9 77 67 f8 |g;V.ey!pc....wg.|
00000310 38 43 0b 17 03 03 00 99 65 f3 0c 81 6f 7f 86 50 |8C......e...o..P|
00000320 37 41 7f 02 e2 79 ae 03 fc 45 aa 5b 47 e1 75 55 |7A...y...E.[G.uU|
00000330 d7 80 9c 62 f4 24 c9 40 d2 cf b8 d0 8c 6e 7f b8 |...b.$.@.....n..|
00000340 76 9d 31 9a 96 8f 3f 60 a8 72 e5 6b 46 fe 13 7c |v.1...?`.r.kF..||
00000350 c9 5d 56 c9 c8 b4 4c c8 81 bd d7 4d 6f 12 b4 b6 |.]V...L....Mo...|
00000360 bf fb f0 37 54 0f 79 5a e1 19 93 9f 13 91 4b 7b |...7T.yZ......K{|
00000370 f4 96 36 58 ed 82 26 60 fe 1c 1a 19 a3 47 3e 58 |..6X..&`.....G>X|
00000380 b2 05 25 a3 54 a6 1f b8 84 02 3c e4 e0 18 db b9 |..%.T.....<.....|
00000390 1f 35 26 b5 98 68 bd 3e 0b 7c 8c da 8b a8 fe 95 |.5&..h.>.|......|
000003a0 59 39 0c 78 9a c4 d4 21 6b fe 35 c5 1b a9 47 5d |Y9.x...!k.5...G]|
000003b0 50 17 03 03 00 35 ce 61 ce fa 4a ed f7 a7 b1 09 |P....5.a..J.....|
000003c0 f4 ca 2b 94 9d a6 70 39 4a eb b1 e3 63 9f d7 85 |..+...p9J...c...|
000003d0 cc dc 6a 0b 30 1f d8 fa 12 4b ef eb 25 1f e8 1d |..j.0....K..%...|
000003e0 85 e3 f2 04 52 17 ec 78 ed b2 1b |....R..x...|
>>> Flow 3 (client to server)
00000000 14 03 03 00 01 01 17 03 03 00 35 ad 1b 33 af 8e |..........5..3..|
00000010 ab 81 7c f3 9f 2b 76 19 d8 37 9f ef ef b7 76 33 |..|..+v..7....v3|
00000020 1b a9 05 4d 2b 79 d7 ae f7 87 c9 1f c3 4f 8e 50 |...M+y.......O.P|
00000030 02 5b 34 b0 b3 4b f7 ce bf 4c 3c b0 db 31 28 ab |.[4..K...L<..1(.|
>>> Flow 4 (server to client)
00000000 17 03 03 00 1e c7 45 aa 04 3f d4 29 33 fd 40 17 |......E..?.)3.@.|
00000010 c3 60 4d 05 54 f7 f0 68 82 19 dd 00 97 1c 93 e1 |.`M.T..h........|
00000020 01 19 33 17 03 03 00 13 50 d4 21 09 db 6d ce f8 |..3.....P.!..m..|
00000030 d0 ab 2d ba e7 c0 b2 7e 5b 62 e0 |..-....~[b.|