crypto/tls: switch to OpenSSL 1.1.0 for test data.

We will need OpenSSL 1.1.0 in order to test some of the features
expected for Go 1.8. However, 1.1.0 also disables (by default) some
things that we still want to test, such as RC4, 3DES and SSLv3. Thus
developers wanting to update the crypto/tls test data will need to build
OpenSSL from source.

This change updates the test data with transcripts generated by 1.1.0
(in order to reduce future diffs) and also causes a banner to be printed
if 1.1.0 is not used when updating.

(The test for an ALPN mismatch is removed because OpenSSL now terminates
the connection with a fatal alert if no known ALPN protocols are
offered. There's no point testing against this because it's an OpenSSL
behaviour.)

Change-Id: I957516975e0b8c7def84184f65c81d0b68f1c551
Reviewed-on: https://go-review.googlesource.com/30821
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Adam Langley 2016-10-11 10:08:57 -07:00
parent 4536ac70b0
commit f0c7db843d
64 changed files with 2840 additions and 2725 deletions

View file

@ -9,51 +9,65 @@
00000070 0b 00 02 01 00 00 0d 00 0e 00 0c 04 01 04 03 05 |................|
00000080 01 05 03 02 01 02 03 ff 01 00 01 00 00 12 00 00 |................|
>>> Flow 2 (server to client)
00000000 16 03 01 00 51 02 00 00 4d 03 01 7b 56 22 f2 0d |....Q...M..{V"..|
00000010 53 16 b1 66 83 aa 0c 7c 4b ef 8f e3 58 82 4e ba |S..f...|K...X.N.|
00000020 5a 46 53 7f ca 1f 1d a8 b9 77 18 20 48 92 50 46 |ZFS......w. H.PF|
00000030 51 e4 56 02 8c a4 92 c9 51 f2 85 75 91 99 86 fb |Q.V.....Q..u....|
00000040 c2 ab 5b 7c d0 bf 49 be 13 f3 91 3c 00 05 00 00 |..[|..I....<....|
00000050 05 ff 01 00 01 00 16 03 01 02 59 0b 00 02 55 00 |..........Y...U.|
00000060 02 52 00 02 4f 30 82 02 4b 30 82 01 b4 a0 03 02 |.R..O0..K0......|
00000070 01 02 02 09 00 e8 f0 9d 3f e2 5b ea a6 30 0d 06 |........?.[..0..|
00000080 09 2a 86 48 86 f7 0d 01 01 0b 05 00 30 1f 31 0b |.*.H........0.1.|
00000090 30 09 06 03 55 04 0a 13 02 47 6f 31 10 30 0e 06 |0...U....Go1.0..|
000000a0 03 55 04 03 13 07 47 6f 20 52 6f 6f 74 30 1e 17 |.U....Go Root0..|
000000b0 0d 31 36 30 31 30 31 30 30 30 30 30 30 5a 17 0d |.160101000000Z..|
000000c0 32 35 30 31 30 31 30 30 30 30 30 30 5a 30 1a 31 |250101000000Z0.1|
000000d0 0b 30 09 06 03 55 04 0a 13 02 47 6f 31 0b 30 09 |.0...U....Go1.0.|
000000e0 06 03 55 04 03 13 02 47 6f 30 81 9f 30 0d 06 09 |..U....Go0..0...|
000000f0 2a 86 48 86 f7 0d 01 01 01 05 00 03 81 8d 00 30 |*.H............0|
00000100 81 89 02 81 81 00 db 46 7d 93 2e 12 27 06 48 bc |.......F}...'.H.|
00000110 06 28 21 ab 7e c4 b6 a2 5d fe 1e 52 45 88 7a 36 |.(!.~...]..RE.z6|
00000120 47 a5 08 0d 92 42 5b c2 81 c0 be 97 79 98 40 fb |G....B[.....y.@.|
00000130 4f 6d 14 fd 2b 13 8b c2 a5 2e 67 d8 d4 09 9e d6 |Om..+.....g.....|
00000140 22 38 b7 4a 0b 74 73 2b c2 34 f1 d1 93 e5 96 d9 |"8.J.ts+.4......|
00000150 74 7b f3 58 9f 6c 61 3c c0 b0 41 d4 d9 2b 2b 24 |t{.X.la<..A..++$|
00000160 23 77 5b 1c 3b bd 75 5d ce 20 54 cf a1 63 87 1d |#w[.;.u]. T..c..|
00000170 1e 24 c4 f3 1d 1a 50 8b aa b6 14 43 ed 97 a7 75 |.$....P....C...u|
00000180 62 f4 14 c8 52 d7 02 03 01 00 01 a3 81 93 30 81 |b...R.........0.|
00000190 90 30 0e 06 03 55 1d 0f 01 01 ff 04 04 03 02 05 |.0...U..........|
000001a0 a0 30 1d 06 03 55 1d 25 04 16 30 14 06 08 2b 06 |.0...U.%..0...+.|
000001b0 01 05 05 07 03 01 06 08 2b 06 01 05 05 07 03 02 |........+.......|
000001c0 30 0c 06 03 55 1d 13 01 01 ff 04 02 30 00 30 19 |0...U.......0.0.|
000001d0 06 03 55 1d 0e 04 12 04 10 9f 91 16 1f 43 43 3e |..U..........CC>|
000001e0 49 a6 de 6d b6 80 d7 9f 60 30 1b 06 03 55 1d 23 |I..m....`0...U.#|
000001f0 04 14 30 12 80 10 48 13 49 4d 13 7e 16 31 bb a3 |..0...H.IM.~.1..|
00000200 01 d5 ac ab 6e 7b 30 19 06 03 55 1d 11 04 12 30 |....n{0...U....0|
00000210 10 82 0e 65 78 61 6d 70 6c 65 2e 67 6f 6c 61 6e |...example.golan|
00000220 67 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 |g0...*.H........|
00000230 03 81 81 00 9d 30 cc 40 2b 5b 50 a0 61 cb ba e5 |.....0.@+[P.a...|
00000240 53 58 e1 ed 83 28 a9 58 1a a9 38 a4 95 a1 ac 31 |SX...(.X..8....1|
00000250 5a 1a 84 66 3d 43 d3 2d d9 0b f2 97 df d3 20 64 |Z..f=C.-...... d|
00000260 38 92 24 3a 00 bc cf 9c 7d b7 40 20 01 5f aa d3 |8.$:....}.@ ._..|
00000270 16 61 09 a2 76 fd 13 c3 cc e1 0c 5c ee b1 87 82 |.a..v......\....|
00000280 f1 6c 04 ed 73 bb b3 43 77 8d 0c 1c f1 0f a1 d8 |.l..s..Cw.......|
00000290 40 83 61 c9 4c 72 2b 9d ae db 46 06 06 4d f4 c1 |@.a.Lr+...F..M..|
000002a0 b3 3e c0 d1 bd 42 d4 db fe 3d 13 60 84 5c 21 d3 |.>...B...=.`.\!.|
000002b0 3b e9 fa e7 16 03 01 00 0e 0d 00 00 06 03 01 02 |;...............|
000002c0 40 00 00 0e 00 00 00 |@......|
00000000 16 03 01 00 59 02 00 00 55 03 01 eb c3 41 78 13 |....Y...U....Ax.|
00000010 97 9b 30 68 60 69 74 7c 8d 2e 90 f6 e7 c8 28 21 |..0h`it|......(!|
00000020 c4 67 b4 5b a0 f7 e1 1f 7f de b7 20 01 74 23 01 |.g.[....... .t#.|
00000030 10 ed 5a b9 37 a0 f2 44 6b fd f6 6c 25 07 ef 25 |..Z.7..Dk..l%..%|
00000040 4b 62 59 c6 ae 4b 82 e0 34 70 6d 40 c0 13 00 00 |KbY..K..4pm@....|
00000050 0d ff 01 00 01 00 00 0b 00 04 03 00 01 02 16 03 |................|
00000060 01 02 59 0b 00 02 55 00 02 52 00 02 4f 30 82 02 |..Y...U..R..O0..|
00000070 4b 30 82 01 b4 a0 03 02 01 02 02 09 00 e8 f0 9d |K0..............|
00000080 3f e2 5b ea a6 30 0d 06 09 2a 86 48 86 f7 0d 01 |?.[..0...*.H....|
00000090 01 0b 05 00 30 1f 31 0b 30 09 06 03 55 04 0a 13 |....0.1.0...U...|
000000a0 02 47 6f 31 10 30 0e 06 03 55 04 03 13 07 47 6f |.Go1.0...U....Go|
000000b0 20 52 6f 6f 74 30 1e 17 0d 31 36 30 31 30 31 30 | Root0...1601010|
000000c0 30 30 30 30 30 5a 17 0d 32 35 30 31 30 31 30 30 |00000Z..25010100|
000000d0 30 30 30 30 5a 30 1a 31 0b 30 09 06 03 55 04 0a |0000Z0.1.0...U..|
000000e0 13 02 47 6f 31 0b 30 09 06 03 55 04 03 13 02 47 |..Go1.0...U....G|
000000f0 6f 30 81 9f 30 0d 06 09 2a 86 48 86 f7 0d 01 01 |o0..0...*.H.....|
00000100 01 05 00 03 81 8d 00 30 81 89 02 81 81 00 db 46 |.......0.......F|
00000110 7d 93 2e 12 27 06 48 bc 06 28 21 ab 7e c4 b6 a2 |}...'.H..(!.~...|
00000120 5d fe 1e 52 45 88 7a 36 47 a5 08 0d 92 42 5b c2 |]..RE.z6G....B[.|
00000130 81 c0 be 97 79 98 40 fb 4f 6d 14 fd 2b 13 8b c2 |....y.@.Om..+...|
00000140 a5 2e 67 d8 d4 09 9e d6 22 38 b7 4a 0b 74 73 2b |..g....."8.J.ts+|
00000150 c2 34 f1 d1 93 e5 96 d9 74 7b f3 58 9f 6c 61 3c |.4......t{.X.la<|
00000160 c0 b0 41 d4 d9 2b 2b 24 23 77 5b 1c 3b bd 75 5d |..A..++$#w[.;.u]|
00000170 ce 20 54 cf a1 63 87 1d 1e 24 c4 f3 1d 1a 50 8b |. T..c...$....P.|
00000180 aa b6 14 43 ed 97 a7 75 62 f4 14 c8 52 d7 02 03 |...C...ub...R...|
00000190 01 00 01 a3 81 93 30 81 90 30 0e 06 03 55 1d 0f |......0..0...U..|
000001a0 01 01 ff 04 04 03 02 05 a0 30 1d 06 03 55 1d 25 |.........0...U.%|
000001b0 04 16 30 14 06 08 2b 06 01 05 05 07 03 01 06 08 |..0...+.........|
000001c0 2b 06 01 05 05 07 03 02 30 0c 06 03 55 1d 13 01 |+.......0...U...|
000001d0 01 ff 04 02 30 00 30 19 06 03 55 1d 0e 04 12 04 |....0.0...U.....|
000001e0 10 9f 91 16 1f 43 43 3e 49 a6 de 6d b6 80 d7 9f |.....CC>I..m....|
000001f0 60 30 1b 06 03 55 1d 23 04 14 30 12 80 10 48 13 |`0...U.#..0...H.|
00000200 49 4d 13 7e 16 31 bb a3 01 d5 ac ab 6e 7b 30 19 |IM.~.1......n{0.|
00000210 06 03 55 1d 11 04 12 30 10 82 0e 65 78 61 6d 70 |..U....0...examp|
00000220 6c 65 2e 67 6f 6c 61 6e 67 30 0d 06 09 2a 86 48 |le.golang0...*.H|
00000230 86 f7 0d 01 01 0b 05 00 03 81 81 00 9d 30 cc 40 |.............0.@|
00000240 2b 5b 50 a0 61 cb ba e5 53 58 e1 ed 83 28 a9 58 |+[P.a...SX...(.X|
00000250 1a a9 38 a4 95 a1 ac 31 5a 1a 84 66 3d 43 d3 2d |..8....1Z..f=C.-|
00000260 d9 0b f2 97 df d3 20 64 38 92 24 3a 00 bc cf 9c |...... d8.$:....|
00000270 7d b7 40 20 01 5f aa d3 16 61 09 a2 76 fd 13 c3 |}.@ ._...a..v...|
00000280 cc e1 0c 5c ee b1 87 82 f1 6c 04 ed 73 bb b3 43 |...\.....l..s..C|
00000290 77 8d 0c 1c f1 0f a1 d8 40 83 61 c9 4c 72 2b 9d |w.......@.a.Lr+.|
000002a0 ae db 46 06 06 4d f4 c1 b3 3e c0 d1 bd 42 d4 db |..F..M...>...B..|
000002b0 fe 3d 13 60 84 5c 21 d3 3b e9 fa e7 16 03 01 00 |.=.`.\!.;.......|
000002c0 cb 0c 00 00 c7 03 00 17 41 04 c4 ae 64 f9 3a f5 |........A...d.:.|
000002d0 95 29 e0 9c c1 d0 e3 e1 fa e1 f8 97 d0 69 4d b0 |.)...........iM.|
000002e0 c0 4f cb 47 41 9c 85 32 b7 c8 71 4f c5 a1 5a ec |.O.GA..2..qO..Z.|
000002f0 4d 09 bc fc 07 7c 81 87 71 c7 6e f9 8b 59 f6 53 |M....|..q.n..Y.S|
00000300 a4 eb 76 d1 2a 6d 55 5d 85 b8 00 80 3b 4f ab 1c |..v.*mU]....;O..|
00000310 aa ef 00 e7 7d 91 e2 73 c3 a4 d1 95 5a 6e 26 a9 |....}..s....Zn&.|
00000320 85 15 25 ef 05 83 34 73 80 00 a6 0c df cd c7 6d |..%...4s.......m|
00000330 65 c6 f2 a7 23 68 0e 88 7e 7e 8e 03 4d 4b db 27 |e...#h..~~..MK.'|
00000340 70 6a 32 2c e7 66 95 06 76 0f d7 4f ec 84 6a ee |pj2,.f..v..O..j.|
00000350 28 ed 90 17 f0 04 7f c5 39 a9 8b 53 bd 9a e3 51 |(.......9..S...Q|
00000360 84 79 ee 32 ad 66 e8 77 da d9 31 4b 6b 5b f0 73 |.y.2.f.w..1Kk[.s|
00000370 de 9f c5 b8 c7 09 06 f1 15 9d d3 3e 40 86 17 65 |...........>@..e|
00000380 cd 47 74 4b c0 88 3f be 54 c1 ac fc 16 03 01 00 |.GtK..?.T.......|
00000390 0a 0d 00 00 06 03 01 02 40 00 00 16 03 01 00 04 |........@.......|
000003a0 0e 00 00 00 |....|
>>> Flow 3 (client to server)
00000000 16 03 01 02 0a 0b 00 02 06 00 02 03 00 02 00 30 |...............0|
00000010 82 01 fc 30 82 01 5e 02 09 00 9a 30 84 6c 26 35 |...0..^....0.l&5|
@ -88,33 +102,34 @@
000001e0 be e8 91 b3 da 1a f5 5d a3 23 f5 26 8b 45 70 8d |.......].#.&.Ep.|
000001f0 65 62 9b 7e 01 99 3d 18 f6 10 9a 38 61 9b 2e 57 |eb.~..=....8a..W|
00000200 e4 fa cc b1 8a ce e2 23 a0 87 f0 e1 67 51 eb 16 |.......#....gQ..|
00000210 03 01 00 86 10 00 00 82 00 80 b9 65 8d bf a7 c8 |...........e....|
00000220 4b 79 ce 6f cb 8b 13 1c ac b9 7d 66 5e e9 ba 1d |Ky.o......}f^...|
00000230 71 4e a9 e9 34 ae f6 64 65 90 3b d8 16 52 a2 6f |qN..4..de.;..R.o|
00000240 f4 cb 8a 13 74 a2 ee b7 27 69 b4 41 c0 90 68 bc |....t...'i.A..h.|
00000250 02 69 e1 c6 48 4f 39 36 30 25 ca 4c 17 ce 83 9e |.i..HO960%.L....|
00000260 08 56 e3 05 49 93 9e 2e c4 fb e6 c8 01 f1 0f c5 |.V..I...........|
00000270 70 0f 08 83 48 e9 48 ef 6e 50 8b 05 7e e5 84 25 |p...H.H.nP..~..%|
00000280 fa 55 c7 ae 31 02 27 00 ef 3f 98 86 20 12 89 91 |.U..1.'..?.. ...|
00000290 59 28 b4 f7 d7 af d2 69 61 35 16 03 01 00 91 0f |Y(.....ia5......|
000002a0 00 00 8d 00 8b 30 81 88 02 42 00 97 2e 05 89 ff |.....0...B......|
000002b0 06 c2 8f d1 a9 e1 73 8e b5 a7 81 58 b8 a1 b0 18 |......s....X....|
000002c0 df 42 e2 2f 6a a1 d9 dc b4 f4 63 d1 23 25 90 61 |.B./j.....c.#%.a|
000002d0 98 58 3d 69 3c 06 ef f2 0c 13 b2 31 56 bd 0e 8f |.X=i<......1V...|
000002e0 d4 4b 64 ea 30 aa 19 c8 86 f3 fd 46 02 42 00 94 |.Kd.0......F.B..|
000002f0 eb 60 57 6b 26 0d 53 18 c6 73 6e 60 73 98 ff 2f |.`Wk&.S..sn`s../|
00000300 f2 80 eb 73 02 26 e9 4f a5 42 3a 60 70 3c 52 7e |...s.&.O.B:`p<R~|
00000310 3a 31 f1 a8 42 7b 44 36 31 94 1b bf 78 0f a8 6d |:1..B{D61...x..m|
00000320 a6 fb f0 49 13 c6 71 6d 8f 44 a2 e0 41 cb ab fb |...I..qm.D..A...|
00000330 14 03 01 00 01 01 16 03 01 00 24 09 60 3f a5 1d |..........$.`?..|
00000340 8e b7 56 86 9b 6f 35 40 e7 e8 d6 1a ab fc f5 0d |..V..o5@........|
00000350 c5 a6 d7 2c 44 4b 6b 6d 22 79 1e e8 a2 31 a3 |...,DKkm"y...1.|
00000210 03 01 00 46 10 00 00 42 41 04 1e 18 37 ef 0d 19 |...F...BA...7...|
00000220 51 88 35 75 71 b5 e5 54 5b 12 2e 8f 09 67 fd a7 |Q.5uq..T[....g..|
00000230 24 20 3e b2 56 1c ce 97 28 5e f8 2b 2d 4f 9e f1 |$ >.V...(^.+-O..|
00000240 07 9f 6c 4b 5b 83 56 e2 32 42 e9 58 b6 d7 49 a6 |..lK[.V.2B.X..I.|
00000250 b5 68 1a 41 03 56 6b dc 5a 89 16 03 01 00 91 0f |.h.A.Vk.Z.......|
00000260 00 00 8d 00 8b 30 81 88 02 42 01 03 05 ed 02 bd |.....0...B......|
00000270 ec d2 94 fd d9 d6 85 56 a0 b7 16 57 4a b7 91 15 |.......V...WJ...|
00000280 50 9a 3d 08 fd 06 57 cc 65 e5 a8 26 15 dc 74 fe |P.=...W.e..&..t.|
00000290 7c 6b 81 10 7a 1c 3a 32 60 1a 2f e8 cc 4d dd da ||k..z.:2`./..M..|
000002a0 20 8a ac 1f eb dd a0 db 58 ef 79 c8 02 42 00 f7 | .......X.y..B..|
000002b0 0f ca 90 34 ce 83 f0 dc ec a5 5d 89 68 51 51 13 |...4......].hQQ.|
000002c0 c6 a9 58 7d 11 cc 22 00 01 e3 04 16 3b 10 ed 93 |..X}..".....;...|
000002d0 ab 1b b9 e4 89 95 44 5c 06 d4 2c a4 d1 e5 09 12 |......D\..,.....|
000002e0 82 83 dc 72 f6 41 a9 d6 35 7f da 8a c8 f8 2b e6 |...r.A..5.....+.|
000002f0 14 03 01 00 01 01 16 03 01 00 30 10 f3 9e aa 4e |..........0....N|
00000300 b7 50 bd 7c b4 54 e9 69 aa 49 7a 35 30 da 40 03 |.P.|.T.i.Iz50.@.|
00000310 a8 48 c4 08 63 7a a1 84 f1 7f 83 6d 15 b1 b1 7d |.H..cz.....m...}|
00000320 30 94 27 9a bc a3 a0 bb 84 37 41 |0.'......7A|
>>> Flow 4 (server to client)
00000000 14 03 01 00 01 01 16 03 01 00 24 3c c9 8b e2 93 |..........$<....|
00000010 84 9e 3c ad e3 b6 9b 5f 4a e6 15 2b af d4 6f fa |..<...._J..+..o.|
00000020 84 0d f6 77 25 03 62 08 60 f2 78 be 91 d3 d0 |...w%.b.`.x....|
00000000 14 03 01 00 01 01 16 03 01 00 30 53 ec 32 b9 5c |..........0S.2.\|
00000010 a8 9c 03 1e 95 92 5e 19 99 9a e7 3d fa af c5 60 |......^....=...`|
00000020 d1 94 e0 93 fe 5d 68 e5 e3 51 67 13 c8 30 33 5f |.....]h..Qg..03_|
00000030 85 23 e2 cf c8 64 88 24 23 fe 93 |.#...d.$#..|
>>> Flow 5 (client to server)
00000000 17 03 01 00 1a 18 d9 62 5f b8 cb 21 4b 75 d4 28 |.......b_..!Ku.(|
00000010 48 37 46 98 aa ec 5f f3 6b 22 b3 92 1c 13 e3 15 |H7F..._.k"......|
00000020 03 01 00 16 13 94 43 e8 cf f3 7c 4f 2a c3 ee a0 |......C...|O*...|
00000030 80 fd 55 43 70 da 9d 88 21 f6 |..UCp...!.|
00000000 17 03 01 00 20 26 a5 85 22 18 01 84 5c 50 3b c4 |.... &.."...\P;.|
00000010 17 58 fe 0e b3 a1 26 ec 94 8e b4 76 bd 84 7a ca |.X....&....v..z.|
00000020 fc 22 2c 31 d3 17 03 01 00 20 3c 0a 9a 91 f0 00 |.",1..... <.....|
00000030 c6 69 b4 04 7d f7 8c 29 3c 7f 81 c1 79 f2 2c 34 |.i..}..)<...y.,4|
00000040 c0 fd 21 6a b7 a3 28 9b 85 1b 15 03 01 00 20 7d |..!j..(....... }|
00000050 1e c7 62 ec b2 84 5f 65 30 6e 4c 7c ab bd 03 49 |..b..._e0nL|...I|
00000060 ce 7f 0d 0c 2b 62 e1 32 01 0c 35 05 b9 f6 35 |....+b.2..5...5|