utls/testdata/Server-TLSv13-ALPN-Fallback
Filippo Valsorda 866e886415 crypto/tls: add SessionState.Extra
This can be used by applications to store additional data in a session.

Fixes #57753
For #60105

Change-Id: Ib42387ad64750fa8dbbdf51de5e9c86378bef0ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/496822
Run-TryBot: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Marten Seemann <martenseemann@gmail.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2023-05-24 23:57:01 +00:00

99 lines
7.4 KiB
Text

>>> Flow 1 (client to server)
00000000 16 03 01 00 eb 01 00 00 e7 03 03 db 45 a7 85 23 |............E..#|
00000010 06 fa 88 89 69 5d bc f6 e2 cc 61 1a e8 63 3d 12 |....i]....a..c=.|
00000020 de 11 25 86 f1 10 2a 2e 1a bb 80 20 15 b0 4b 7d |..%...*.... ..K}|
00000030 d5 a7 79 88 71 4d 48 d8 3a 15 65 ee 97 91 74 a4 |..y.qMH.:.e...t.|
00000040 18 f5 08 63 63 a6 06 82 04 cc 3f a5 00 04 13 03 |...cc.....?.....|
00000050 00 ff 01 00 00 9a 00 0b 00 04 03 00 01 02 00 0a |................|
00000060 00 0c 00 0a 00 1d 00 17 00 1e 00 19 00 18 00 23 |...............#|
00000070 00 00 00 10 00 19 00 17 06 70 72 6f 74 6f 33 08 |.........proto3.|
00000080 68 74 74 70 2f 31 2e 31 06 70 72 6f 74 6f 34 00 |http/1.1.proto4.|
00000090 16 00 00 00 17 00 00 00 0d 00 1e 00 1c 04 03 05 |................|
000000a0 03 06 03 08 07 08 08 08 09 08 0a 08 0b 08 04 08 |................|
000000b0 05 08 06 04 01 05 01 06 01 00 2b 00 03 02 03 04 |..........+.....|
000000c0 00 2d 00 02 01 01 00 33 00 26 00 24 00 1d 00 20 |.-.....3.&.$... |
000000d0 c5 7d 91 08 04 ef ab 2d 3c 92 84 d1 c7 83 51 4d |.}.....-<.....QM|
000000e0 c2 41 65 d9 34 c2 eb a4 f9 69 8e bc be ce 0d 39 |.Ae.4....i.....9|
>>> 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 15 b0 4b 7d |........... ..K}|
00000030 d5 a7 79 88 71 4d 48 d8 3a 15 65 ee 97 91 74 a4 |..y.qMH.:.e...t.|
00000040 18 f5 08 63 63 a6 06 82 04 cc 3f a5 13 03 00 00 |...cc.....?.....|
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 a2 16 2d c5 ef c1 |............-...|
00000090 3f 96 b4 28 52 19 af 1f a1 97 0a 95 a4 53 e6 ff |?..(R........S..|
000000a0 10 17 03 03 02 6d 2a 59 db 78 7a cd 63 58 1a 2f |.....m*Y.xz.cX./|
000000b0 f7 c9 2c f4 37 97 fc 96 15 5f 57 bf 62 cd 82 e7 |..,.7...._W.b...|
000000c0 5b ae 3e c0 56 d5 65 1f 2d 6e 86 32 c3 19 81 e7 |[.>.V.e.-n.2....|
000000d0 aa ed f3 20 ea 58 3c 5c 50 00 4b 67 91 fb 45 b9 |... .X<\P.Kg..E.|
000000e0 3c 6f 6e 0f 2e 7a 47 e9 be 31 b0 4e 14 5c c9 df |<on..zG..1.N.\..|
000000f0 48 50 dc 01 86 bd 92 9b a5 ad 00 f1 71 7e 5c 37 |HP..........q~\7|
00000100 04 72 53 6c af e3 c2 8a d2 b9 03 83 77 98 31 28 |.rSl........w.1(|
00000110 b4 37 b4 54 5c e4 07 6d 1f 75 ba ac 83 00 0d ec |.7.T\..m.u......|
00000120 d2 3d 6b e3 e6 33 b1 c2 5d 51 2c 94 36 26 c4 a9 |.=k..3..]Q,.6&..|
00000130 0b 50 d3 df f3 06 9e 7e 7c e7 dc 7e 4f 3e 4a c6 |.P.....~|..~O>J.|
00000140 7e 98 56 b3 37 bf c6 c5 92 d1 f1 ea 43 a2 00 86 |~.V.7.......C...|
00000150 94 e7 9b 4d 7e 73 89 44 2f 9f 1f f0 d9 97 b5 a9 |...M~s.D/.......|
00000160 2c 84 1c aa 63 00 da 93 a7 ee 57 7f 3d 55 c0 23 |,...c.....W.=U.#|
00000170 7a 6c ee 5d 01 dd da 35 74 1c 8e c3 7d 20 48 fd |zl.]...5t...} H.|
00000180 b3 38 0c 93 c5 8b 1e df 6b d4 01 97 46 45 b4 62 |.8......k...FE.b|
00000190 3a 06 3a 23 76 1d af 2a ae 5f 35 57 7e 77 1d 27 |:.:#v..*._5W~w.'|
000001a0 f8 d1 03 06 f0 76 4e 05 20 f6 0e aa a3 4a 19 5c |.....vN. ....J.\|
000001b0 85 2e e6 20 de 75 67 0a 84 0d fd fa 99 9a 4e fc |... .ug.......N.|
000001c0 d6 b2 6e 9c b5 87 a2 5b 4f 2d ab ce 74 76 1c 71 |..n....[O-..tv.q|
000001d0 d9 9b 7e 0b 38 59 b0 6d 83 c6 d7 6b 8d 3b 51 88 |..~.8Y.m...k.;Q.|
000001e0 7b 42 7a 03 ee b2 52 91 d6 84 a1 16 d9 df 3a 42 |{Bz...R.......:B|
000001f0 cb 6e 0c 9d 53 5b bc 11 8d b7 6b 55 0b 70 30 ec |.n..S[....kU.p0.|
00000200 ee 55 5d 2f 12 e9 36 10 d1 10 e5 54 63 d6 85 4f |.U]/..6....Tc..O|
00000210 6b 63 9c b1 bf ee 1d 09 2b 89 0e 91 a1 c3 82 20 |kc......+...... |
00000220 a5 ad 10 f4 dd 2d 28 ed 83 64 b3 c1 7b 31 5b 65 |.....-(..d..{1[e|
00000230 fd 17 bc 3b ca 30 b8 10 06 ed 8b 40 27 bb e3 dc |...;.0.....@'...|
00000240 7a df 5e 9b d8 01 f9 ef b1 06 09 e0 61 89 f3 b4 |z.^.........a...|
00000250 09 63 eb b2 fa 19 cf d8 4e b2 4b 62 db a5 2f ef |.c......N.Kb../.|
00000260 35 d1 59 5a ad 25 0c f4 40 48 e2 d4 1a ba 50 29 |5.YZ.%..@H....P)|
00000270 57 65 3a 89 c1 5b f9 d1 9a d2 c7 04 72 47 4a e1 |We:..[......rGJ.|
00000280 4b 28 39 52 a3 65 db fb 76 89 8c 3b 37 6d d7 b9 |K(9R.e..v..;7m..|
00000290 62 83 3a 15 27 db 6d a3 b9 59 12 27 85 52 5f 4e |b.:.'.m..Y.'.R_N|
000002a0 86 e7 61 b0 56 c4 68 62 e9 a9 5c a3 ff d7 5c 58 |..a.V.hb..\...\X|
000002b0 59 b5 b8 ca 4c 07 4d 23 17 dc 15 b5 20 43 11 88 |Y...L.M#.... C..|
000002c0 b0 45 4c c0 dd f2 62 c0 b3 11 59 28 32 f7 25 4c |.EL...b...Y(2.%L|
000002d0 ba 1a 62 84 dc c8 83 83 d8 52 50 9a ab 7b ef 73 |..b......RP..{.s|
000002e0 b1 42 9e 91 e0 f0 44 8a d7 35 e7 7e 0c e2 1c 74 |.B....D..5.~...t|
000002f0 67 1b 38 5c 53 e4 9b 5f 77 a9 d4 54 cf ce 5d 18 |g.8\S.._w..T..].|
00000300 94 41 8a 99 0b 93 be 58 d7 f0 9a 4a f0 69 e4 a5 |.A.....X...J.i..|
00000310 57 db b4 17 03 03 00 99 64 e7 3f f1 a7 8c 32 19 |W.......d.?...2.|
00000320 b4 27 03 85 0e 25 5a 73 3d e3 7d 13 56 b5 6d b6 |.'...%Zs=.}.V.m.|
00000330 f5 86 cd c9 df 39 7e a9 f0 f7 3b 9b 41 54 e1 0e |.....9~...;.AT..|
00000340 14 43 9b de 4c c0 6b ec d3 ff 72 e3 40 f4 7c 46 |.C..L.k...r.@.|F|
00000350 b2 97 00 94 e5 37 20 01 70 5f 38 c3 b5 6a 68 d0 |.....7 .p_8..jh.|
00000360 c4 f4 96 0e 6a dd b2 41 80 cb 70 4b 16 af ad dd |....j..A..pK....|
00000370 ed 89 2c 0b 32 b7 ab 60 bc ed 1f 08 16 45 60 c6 |..,.2..`.....E`.|
00000380 64 e6 b2 9d 84 ab b1 8e 09 62 2d 6c 0d a2 52 61 |d........b-l..Ra|
00000390 6a ee 59 51 06 4f 77 5c 41 30 84 1a 8c ff 80 65 |j.YQ.Ow\A0.....e|
000003a0 15 e4 8f 6a e0 eb a0 6e fe 41 42 08 97 cf e7 95 |...j...n.AB.....|
000003b0 ab 17 03 03 00 35 a9 d4 a4 52 af 66 91 c5 df 11 |.....5...R.f....|
000003c0 c8 29 a9 ec a2 d5 be 95 51 ae 17 cd 57 60 b4 c8 |.)......Q...W`..|
000003d0 2e 52 bc af 75 2f e9 a3 19 0c b1 98 01 8a 32 22 |.R..u/........2"|
000003e0 88 00 e4 db b9 73 00 4d 81 d1 f6 17 03 03 00 86 |.....s.M........|
000003f0 a8 72 46 cd fc c9 b2 c9 33 60 17 50 5f 48 52 b1 |.rF.....3`.P_HR.|
00000400 fe 6d 3c 5d 76 cd 19 c2 5d c2 30 36 ff a3 d9 9f |.m<]v...].06....|
00000410 f2 af a4 e3 bb 7f 93 5c e7 ad 37 2f b6 9d 3f 65 |.......\..7/..?e|
00000420 6f f0 67 39 aa 0a c9 f4 35 45 de 38 fe 89 66 6a |o.g9....5E.8..fj|
00000430 8e da b3 a9 b3 91 55 c1 e1 2d a9 ce 02 12 3e 19 |......U..-....>.|
00000440 ac 85 a9 2a 4b 78 93 02 52 ef 22 35 72 04 fb 81 |...*Kx..R."5r...|
00000450 92 ea 31 c5 06 a4 07 7f 97 56 8f cb b0 d5 6a 15 |..1......V....j.|
00000460 25 49 d9 f9 f8 2e 2d e2 07 3e 4f 7f 8d 29 48 41 |%I....-..>O..)HA|
00000470 48 50 e1 1d ad 27 |HP...'|
>>> Flow 3 (client to server)
00000000 14 03 03 00 01 01 17 03 03 00 35 f5 9f 68 68 ef |..........5..hh.|
00000010 84 42 13 69 d3 fb e5 1d 9c 13 44 5a 7a ff 69 db |.B.i......DZz.i.|
00000020 54 71 be d2 da 45 60 ad f9 b3 90 cd 1c ea fc 96 |Tq...E`.........|
00000030 c3 b2 00 6e e5 9a 90 bf 58 bd 35 0f 94 ed 0e be |...n....X.5.....|
>>> Flow 4 (server to client)
00000000 17 03 03 00 1e 7c 63 79 6f bf f4 3f 6d 1c 1c 0c |.....|cyo..?m...|
00000010 bb b4 17 4f 80 a3 d5 42 d6 f2 6b 65 29 76 d2 8a |...O...B..ke)v..|
00000020 2d d3 d3 17 03 03 00 13 9f 1a 0a 5d 7b 47 da 27 |-..........]{G.'|
00000030 65 1b 3a 75 f9 52 29 0f b0 ad 6c |e.:u.R)...l|