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,8 +1,8 @@
>>> Flow 1 (client to server)
00000000 16 03 01 00 36 01 00 00 32 03 01 a9 45 16 6e df |....6...2...E.n.|
00000010 8d 11 13 4d 3a b7 9d 96 18 dd ae 9c 1d 23 72 29 |...M:........#r)|
00000020 f0 64 f5 63 ec 15 53 18 28 75 27 00 00 04 00 2f |.d.c..S.(u'..../|
00000030 00 ff 01 00 00 05 00 0f 00 01 01 |...........|
00000000 16 03 01 00 39 01 00 00 35 03 01 aa c3 56 39 53 |....9...5....V9S|
00000010 94 16 6b 51 7f e2 eb a8 7c 25 59 55 9b 28 38 b1 |..kQ....|%YU.(8.|
00000020 c0 94 af 2e f5 94 ba 0e f0 a1 b1 00 00 04 00 2f |.............../|
00000030 00 ff 01 00 00 08 00 16 00 00 00 17 00 00 |..............|
>>> Flow 2 (server to client)
00000000 16 03 01 00 31 02 00 00 2d 03 01 00 00 00 00 00 |....1...-.......|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
@ -47,29 +47,29 @@
00000280 b3 3e c0 d1 bd 42 d4 db fe 3d 13 60 84 5c 21 d3 |.>...B...=.`.\!.|
00000290 3b e9 fa e7 16 03 01 00 04 0e 00 00 00 |;............|
>>> Flow 3 (client to server)
00000000 16 03 01 00 86 10 00 00 82 00 80 1e 5d a4 6d ad |............].m.|
00000010 41 36 d1 f4 3d c0 6a 3d e9 8a 4f ac 76 bb 78 57 |A6..=.j=..O.v.xW|
00000020 d0 14 b4 4d 9b ff 13 97 a3 98 f9 50 6b cc ec c7 |...M.......Pk...|
00000030 dc 56 45 c2 fe c3 19 f0 01 52 b2 db 43 de 2e 40 |.VE......R..C..@|
00000040 40 8e a8 03 33 d6 11 0f 8a a1 c0 42 50 06 46 13 |@...3......BP.F.|
00000050 69 fa cb 5f 8b 61 44 60 5b 0e 89 7d c4 90 6c ff |i.._.aD`[..}..l.|
00000060 93 5e 7f 45 48 2d ae c5 83 ac f8 d4 6d c3 fb 41 |.^.EH-......m..A|
00000070 f8 29 10 35 0e d3 54 0b 5d 3b 62 1e c9 60 68 ab |.).5..T.];b..`h.|
00000080 c9 53 72 1b 98 b7 b1 93 b4 3d 9e 14 03 01 00 01 |.Sr......=......|
00000090 01 16 03 01 00 30 9f fc 5c 44 04 a0 0a ae 03 3c |.....0..\D.....<|
000000a0 7c 8d 5d c7 06 25 ab 74 53 ee cf 95 8f 7d 5a be ||.]..%.tS....}Z.|
000000b0 be 8e e7 48 10 6f e7 15 f0 95 e9 c8 30 1f cb a9 |...H.o......0...|
000000c0 70 fb 21 1e 74 ae |p.!.t.|
00000000 16 03 01 00 86 10 00 00 82 00 80 73 3f 17 54 6f |...........s?.To|
00000010 c6 c8 08 e2 d5 e6 49 cc 51 89 d1 c8 dc cd 4f ec |......I.Q.....O.|
00000020 0b b4 71 0b d5 44 b4 fa 9e 97 a4 52 69 0a c8 f7 |..q..D.....Ri...|
00000030 79 cb 79 52 46 94 95 32 a1 d1 17 c0 ba fd 65 9b |y.yRF..2......e.|
00000040 52 c3 99 dc 06 07 54 0d 90 8e 4d ff 31 72 8c 80 |R.....T...M.1r..|
00000050 86 cf 3b be 09 f4 df dc 93 40 c4 7d 88 55 72 e8 |..;......@.}.Ur.|
00000060 f4 26 f3 8b 0d 3c 8d 07 97 90 87 a6 91 96 60 0e |.&...<........`.|
00000070 4c ec ac a4 be 36 36 32 81 8b 7e 5f 6a 7e 0d d5 |L....662..~_j~..|
00000080 9c 2b 1e 3f e2 14 fa 22 d2 8d 34 14 03 01 00 01 |.+.?..."..4.....|
00000090 01 16 03 01 00 30 43 50 a9 47 03 3b 38 0a 62 cf |.....0CP.G.;8.b.|
000000a0 74 56 a7 9c 56 a3 a2 05 dc d5 60 7a 4f 10 37 c6 |tV..V.....`zO.7.|
000000b0 13 d5 5b c8 cc b7 96 22 e4 58 a4 8a 2a 9d 48 14 |..[....".X..*.H.|
000000c0 97 03 2f 6d a0 35 |../m.5|
>>> Flow 4 (server to client)
00000000 14 03 01 00 01 01 16 03 01 00 30 2e 2b 26 99 5e |..........0.+&.^|
00000010 b8 50 62 10 f7 e5 fb 72 61 a1 5a d9 33 5b 4a 7d |.Pb....ra.Z.3[J}|
00000020 9f f1 01 69 54 5b b8 59 67 ad 9d 74 30 3f b1 54 |...iT[.Yg..t0?.T|
00000030 98 79 61 fe 23 18 a6 63 a1 6c c3 17 03 01 00 20 |.ya.#..c.l..... |
00000040 2b 4b 0b b4 75 89 ab 24 65 52 58 20 b6 80 d8 9d |+K..u..$eRX ....|
00000050 47 db 0d 9e b3 64 37 87 37 4a 64 88 61 d3 fa 93 |G....d7.7Jd.a...|
00000060 17 03 01 00 30 99 27 bc 9b 01 3c d7 a8 36 82 2e |....0.'...<..6..|
00000070 07 cb 0e 93 19 7f 77 a9 6a a8 31 d2 f0 a5 85 94 |......w.j.1.....|
00000080 42 86 65 9c cf 95 8e ec ec a2 77 2b c3 84 9a 20 |B.e.......w+... |
00000090 40 f5 9f 44 f5 15 03 01 00 20 52 8e cd bb 61 7d |@..D..... R...a}|
000000a0 ab c0 f3 76 d0 a6 41 96 5c 62 32 94 e9 fb 30 e6 |...v..A.\b2...0.|
000000b0 e2 62 7f 63 11 3c 32 75 3a 9f |.b.c.<2u:.|
00000000 14 03 01 00 01 01 16 03 01 00 30 e1 7c 3f cc a9 |..........0.|?..|
00000010 00 c1 05 00 95 e4 39 b8 82 92 14 83 c3 a4 d2 d9 |......9.........|
00000020 8a 47 c6 b5 e8 70 ff 9d 6b 90 d1 13 e5 6b ff 77 |.G...p..k....k.w|
00000030 55 eb 76 37 e3 df fa 9b 82 5a c3 17 03 01 00 20 |U.v7.....Z..... |
00000040 f3 81 d3 e6 ac fb f9 49 06 8c 27 aa f4 ad 76 6f |.......I..'...vo|
00000050 45 4e 7b 27 c0 bb db fe d9 da 7c 19 cc 7d 40 0e |EN{'......|..}@.|
00000060 17 03 01 00 30 c2 33 a6 cb 1f 5f 2e 30 94 54 1c |....0.3..._.0.T.|
00000070 02 3b 1f 9c f4 5c 41 2a 67 9d b8 af 6b 48 cc 25 |.;...\A*g...kH.%|
00000080 8c a5 1e be 88 91 20 06 dd 75 d5 68 15 ae be b1 |...... ..u.h....|
00000090 e3 7a 5b 73 9b 15 03 01 00 20 3a ab ff b4 54 57 |.z[s..... :...TW|
000000a0 68 e1 d7 0e 20 fc 9d 8f 20 f5 1e 8d f8 40 bb 55 |h... ... ....@.U|
000000b0 1f 81 76 d9 e5 ef f8 00 05 91 |..v.......|