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

@ -1,25 +1,17 @@
>>> Flow 1 (client to server)
00000000 16 03 01 01 42 01 00 01 3e 03 03 5c 2b 4a 78 7e |....B...>..\+Jx~|
00000010 fc 29 91 f5 c8 fa 6d b8 2e 73 6c fa 15 ce b3 f5 |.)....m..sl.....|
00000020 70 f5 bc d8 a0 4e f4 1b a9 6f 95 00 00 ac c0 30 |p....N...o.....0|
00000030 c0 2c c0 28 c0 24 c0 14 c0 0a 00 a5 00 a3 00 a1 |.,.(.$..........|
00000040 00 9f 00 6b 00 6a 00 69 00 68 00 39 00 38 00 37 |...k.j.i.h.9.8.7|
00000050 00 36 00 88 00 87 00 86 00 85 c0 32 c0 2e c0 2a |.6.........2...*|
00000060 c0 26 c0 0f c0 05 00 9d 00 3d 00 35 00 84 c0 2f |.&.......=.5.../|
00000070 c0 2b c0 27 c0 23 c0 13 c0 09 00 a4 00 a2 00 a0 |.+.'.#..........|
00000080 00 9e 00 67 00 40 00 3f 00 3e 00 33 00 32 00 31 |...g.@.?.>.3.2.1|
00000090 00 30 00 9a 00 99 00 98 00 97 00 45 00 44 00 43 |.0.........E.D.C|
000000a0 00 42 c0 31 c0 2d c0 29 c0 25 c0 0e c0 04 00 9c |.B.1.-.).%......|
000000b0 00 3c 00 2f 00 96 00 41 00 07 c0 11 c0 07 c0 0c |.<./...A........|
000000c0 c0 02 00 05 00 04 c0 12 c0 08 00 16 00 13 00 10 |................|
000000d0 00 0d c0 0d c0 03 00 0a 00 ff 01 00 00 69 00 0b |.............i..|
000000e0 00 04 03 00 01 02 00 0a 00 1c 00 1a 00 17 00 19 |................|
000000f0 00 1c 00 1b 00 18 00 1a 00 16 00 0e 00 0d 00 0b |................|
00000100 00 0c 00 09 00 0a 00 23 00 00 00 0d 00 20 00 1e |.......#..... ..|
00000110 06 01 06 02 06 03 05 01 05 02 05 03 04 01 04 02 |................|
00000120 04 03 03 01 03 02 03 03 02 01 02 02 02 03 00 0f |................|
00000130 00 01 01 00 10 00 10 00 0e 06 70 72 6f 74 6f 32 |..........proto2|
00000140 06 70 72 6f 74 6f 31 |.proto1|
00000000 16 03 01 00 bf 01 00 00 bb 03 03 60 8c 9e 48 42 |...........`..HB|
00000010 d1 55 7b 73 05 12 ae ec 61 7d 25 30 ed 1c b8 39 |.U{s....a}%0...9|
00000020 72 d9 11 5e f6 a7 a4 cf df 24 76 00 00 38 c0 2c |r..^.....$v..8.,|
00000030 c0 30 00 9f cc a9 cc a8 cc aa c0 2b c0 2f 00 9e |.0.........+./..|
00000040 c0 24 c0 28 00 6b c0 23 c0 27 00 67 c0 0a c0 14 |.$.(.k.#.'.g....|
00000050 00 39 c0 09 c0 13 00 33 00 9d 00 9c 00 3d 00 3c |.9.....3.....=.<|
00000060 00 35 00 2f 00 ff 01 00 00 5a 00 0b 00 04 03 00 |.5./.....Z......|
00000070 01 02 00 0a 00 0a 00 08 00 1d 00 17 00 19 00 18 |................|
00000080 00 23 00 00 00 0d 00 20 00 1e 06 01 06 02 06 03 |.#..... ........|
00000090 05 01 05 02 05 03 04 01 04 02 04 03 03 01 03 02 |................|
000000a0 03 03 02 01 02 02 02 03 00 10 00 10 00 0e 06 70 |...............p|
000000b0 72 6f 74 6f 32 06 70 72 6f 74 6f 31 00 16 00 00 |roto2.proto1....|
000000c0 00 17 00 00 |....|
>>> Flow 2 (server to client)
00000000 16 03 03 00 35 02 00 00 31 03 03 00 00 00 00 00 |....5...1.......|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
@ -67,40 +59,40 @@
000002b0 71 b5 e5 54 5b 12 2e 8f 09 67 fd a7 24 20 3e b2 |q..T[....g..$ >.|
000002c0 56 1c ce 97 28 5e f8 2b 2d 4f 9e f1 07 9f 6c 4b |V...(^.+-O....lK|
000002d0 5b 83 56 e2 32 42 e9 58 b6 d7 49 a6 b5 68 1a 41 |[.V.2B.X..I..h.A|
000002e0 03 56 6b dc 5a 89 05 01 00 80 71 2b 96 d0 8b 29 |.Vk.Z.....q+...)|
000002f0 0e 22 b4 b0 2b fa 82 7b ae d2 1e b4 73 b2 37 93 |."..+..{....s.7.|
00000300 c1 c7 f0 9f 4c fa 1d 66 4a fe 44 c9 f5 f3 5e b5 |....L..fJ.D...^.|
00000310 5d be 97 61 52 77 85 53 2d 14 b2 3b 43 d7 4d 9a |]..aRw.S-..;C.M.|
00000320 6c 70 9b 39 86 45 73 7e fd a8 b9 97 d7 47 ad d1 |lp.9.Es~.....G..|
00000330 b2 b1 74 ac e3 6a ce 15 47 4b 65 13 f9 ec 81 21 |..t..j..GKe....!|
00000340 a2 7a 02 1f 65 d0 c4 ad f6 52 52 ce 0d 4b ca 60 |.z..e....RR..K.`|
00000350 a1 69 0e 96 3f b4 69 1e fe ea dc 6d 74 4e 2a 12 |.i..?.i....mtN*.|
00000360 a9 0e 5a b9 d8 e7 88 db 1e 9a 16 03 03 00 04 0e |..Z.............|
000002e0 03 56 6b dc 5a 89 05 01 00 80 a5 52 65 aa 70 b9 |.Vk.Z......Re.p.|
000002f0 58 76 c8 07 4f 93 d4 8c 2b 37 ef 90 0b 6f 28 41 |Xv..O...+7...o(A|
00000300 2a cc 74 34 38 ad 67 eb ff 00 ba 89 03 dc 28 64 |*.t48.g.......(d|
00000310 c7 61 44 95 e6 f7 9c 13 58 a6 62 57 e0 fc 64 7c |.aD.....X.bW..d||
00000320 49 74 e2 d5 fe ff 94 7a 22 59 11 5d 04 7c db f5 |It.....z"Y.].|..|
00000330 55 7f 98 a0 70 15 9d 9b e9 41 d9 aa cc 5f 68 71 |U...p....A..._hq|
00000340 f6 cd ee 1a 8d 4a 66 b2 3a ce 4a 76 1d 3d 5b 53 |.....Jf.:.Jv.=[S|
00000350 f8 27 c9 31 4e d5 fd 40 4f 5d ef 12 83 5e 5d 69 |.'.1N..@O]...^]i|
00000360 38 6a 88 8d 92 41 6d 2d 3e 69 16 03 03 00 04 0e |8j...Am->i......|
00000370 00 00 00 |...|
>>> Flow 3 (client to server)
00000000 16 03 03 00 46 10 00 00 42 41 04 b2 47 69 17 0e |....F...BA..Gi..|
00000010 df df 5e ea e8 16 c3 f1 66 23 24 77 8c 15 b1 16 |..^.....f#$w....|
00000020 08 83 42 0c 75 bb 59 39 59 6f 99 0c 3e 0d e6 94 |..B.u.Y9Yo..>...|
00000030 ef 52 17 7c d6 6a b1 aa be d5 dc 3b 7d 1b 22 a8 |.R.|.j.....;}.".|
00000040 93 fb e1 80 d6 d2 43 7b b3 ef d8 14 03 03 00 01 |......C{........|
00000050 01 16 03 03 00 28 a5 16 b7 b3 0c f4 88 95 6e 43 |.....(........nC|
00000060 dd f1 bd 2c 36 2d 4a 9a f7 c6 fb 5f 32 6a 12 42 |...,6-J...._2j.B|
00000070 7f 65 29 9d 3d e9 a8 4f b3 be 79 7e 7f 8d |.e).=..O..y~..|
00000000 16 03 03 00 46 10 00 00 42 41 04 e3 0b 0e 3c d4 |....F...BA....<.|
00000010 63 8c 7c 65 4c 64 cb d1 76 25 78 16 e7 68 b5 3c |c.|eLd..v%x..h.<|
00000020 2b 86 94 f8 07 39 e1 a3 f6 f7 d3 57 d0 c5 5f f5 |+....9.....W.._.|
00000030 eb c6 67 d0 c0 d4 1a 78 39 61 03 7b 9a 53 db 8a |..g....x9a.{.S..|
00000040 2f 43 b4 ef 31 b8 ac d0 49 fe 45 14 03 03 00 01 |/C..1...I.E.....|
00000050 01 16 03 03 00 28 b3 d6 bc 4f 3c c8 a5 d4 47 1b |.....(...O<...G.|
00000060 17 db be 1b 20 73 5f 3f b9 d2 9a 41 15 92 bc 28 |.... s_?...A...(|
00000070 73 30 5d c5 c2 82 8c 01 c5 dd 12 f1 76 f1 |s0].........v.|
>>> Flow 4 (server to client)
00000000 16 03 03 00 82 04 00 00 7e 00 00 00 00 00 78 50 |........~.....xP|
00000010 46 ad c1 db a8 38 86 7b 2b bb fd d0 c3 42 3e 00 |F....8.{+....B>.|
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 94 |................|
00000030 6f ec 80 83 61 85 0f fd a5 13 4d 72 83 b0 ba b3 |o...a.....Mr....|
00000040 b4 45 5a 1b ae a9 c5 9a a9 8b 1b 8e ae 99 5d e6 |.EZ...........].|
00000050 0d 51 a5 85 a2 c7 c9 04 34 98 04 44 75 30 d2 07 |.Q......4..Du0..|
00000060 21 75 67 36 56 33 94 e0 c9 bb 8c 07 ed 33 9c d6 |!ug6V3.......3..|
00000070 41 ad f6 e7 d8 bf 32 db 47 b7 b7 5d ac 1f a6 3d |A.....2.G..]...=|
00000080 1e e0 b1 69 c3 98 8b 14 03 03 00 01 01 16 03 03 |...i............|
00000090 00 28 00 00 00 00 00 00 00 00 24 e3 60 cf db f6 |.(........$.`...|
000000a0 49 bc 97 c3 f2 d0 d6 df 96 00 5b 9e a4 23 1e bf |I.........[..#..|
000000b0 f0 e8 40 34 dc 66 3a db 56 7f 17 03 03 00 25 00 |..@4.f:.V.....%.|
000000c0 00 00 00 00 00 00 01 7b cf c8 6a 40 80 e2 89 fb |.......{..j@....|
000000d0 3e 8e ef 3a 81 e5 67 06 9d ba 94 53 e2 1b 6f d1 |>..:..g....S..o.|
000000e0 18 57 39 e7 15 03 03 00 1a 00 00 00 00 00 00 00 |.W9.............|
000000f0 02 11 5e 53 2f ec 27 79 c6 2b 73 c8 7a 85 b8 da |..^S/.'y.+s.z...|
00000100 1a 6d a3 |.m.|
00000030 6f ec 80 83 61 dd a0 38 1e bf 55 20 48 cf 04 4c |o...a..8..U H..L|
00000040 7f 7d f9 e8 62 2b 25 72 6d fc 89 4e e6 20 51 5e |.}..b+%rm..N. Q^|
00000050 b6 a8 4b 26 95 bb 03 93 43 2f a8 a3 86 2f 88 45 |..K&....C/.../.E|
00000060 95 17 03 e9 85 33 94 8e 88 8e 25 7a c7 e6 8f 21 |.....3....%z...!|
00000070 a7 a7 ca 81 07 e4 0b a6 44 60 df 19 66 9c d9 3d |........D`..f..=|
00000080 47 1b a2 29 3e a7 09 14 03 03 00 01 01 16 03 03 |G..)>...........|
00000090 00 28 00 00 00 00 00 00 00 00 94 37 d6 25 aa 5c |.(.........7.%.\|
000000a0 28 f9 7b ab 15 d4 77 9c ee 67 ed 04 58 b0 f8 90 |(.{...w..g..X...|
000000b0 bf 57 2c 83 19 2d 2c 1d 63 cd 17 03 03 00 25 00 |.W,..-,.c.....%.|
000000c0 00 00 00 00 00 00 01 41 3a 44 90 fa a5 73 a8 cb |.......A:D...s..|
000000d0 a7 1b 08 38 b9 15 a4 87 76 55 4a 04 d8 13 54 8e |...8....vUJ...T.|
000000e0 56 a0 d6 1e 15 03 03 00 1a 00 00 00 00 00 00 00 |V...............|
000000f0 02 18 41 23 67 cf a2 be f2 72 4d 49 55 9d 51 56 |..A#g....rMIU.QV|
00000100 ef c1 f8 |...|