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,12 +1,12 @@
>>> Flow 1 (client to server)
00000000 16 03 01 00 6e 01 00 00 6a 03 03 8d a3 6b 9b 7b |....n...j....k.{|
00000010 cc 8b b4 74 25 41 25 c5 74 1d 1e 3a eb fb 70 df |...t%A%.t..:..p.|
00000020 9b de c2 d4 b4 dd 53 00 83 c6 57 00 00 04 00 2f |......S...W..../|
00000030 00 ff 01 00 00 3d 00 00 00 10 00 0e 00 00 0b 73 |.....=.........s|
00000000 16 03 01 00 71 01 00 00 6d 03 03 bd c9 cf c6 3f |....q...m......?|
00000010 0b a6 a0 f8 a6 c5 91 f1 45 fa 20 cb 42 67 2f d7 |........E. .Bg/.|
00000020 cb be 35 d4 6a a5 07 47 11 bb fe 00 00 04 00 2f |..5.j..G......./|
00000030 00 ff 01 00 00 40 00 00 00 10 00 0e 00 00 0b 73 |.....@.........s|
00000040 6e 69 74 65 73 74 2e 63 6f 6d 00 0d 00 20 00 1e |nitest.com... ..|
00000050 06 01 06 02 06 03 05 01 05 02 05 03 04 01 04 02 |................|
00000060 04 03 03 01 03 02 03 03 02 01 02 02 02 03 00 0f |................|
00000070 00 01 01 |...|
00000060 04 03 03 01 03 02 03 03 02 01 02 02 02 03 00 16 |................|
00000070 00 00 00 17 00 00 |......|
>>> Flow 2 (server to client)
00000000 16 03 03 00 31 02 00 00 2d 03 03 00 00 00 00 00 |....1...-.......|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
@ -51,31 +51,31 @@
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 03 00 04 0e 00 00 00 |;............|
>>> Flow 3 (client to server)
00000000 16 03 03 00 86 10 00 00 82 00 80 6f f3 47 eb 30 |...........o.G.0|
00000010 e0 17 d3 7a 06 a9 f7 ce 56 5c d1 0b ab c4 db b3 |...z....V\......|
00000020 93 43 d2 29 3a 53 98 70 e6 1b 4c 58 a9 97 4f c1 |.C.):S.p..LX..O.|
00000030 99 2b 1f b9 84 b5 d1 98 18 ce a8 d4 33 9f bf 5b |.+..........3..[|
00000040 dc ef 0a 37 b4 1f d4 11 08 57 d1 8c 2d 71 a7 95 |...7.....W..-q..|
00000050 5b 43 4e 9b 53 b0 00 5b 65 45 24 c5 6d fb 25 e3 |[CN.S..[eE$.m.%.|
00000060 e5 ee 5d 88 d0 8f 9d c4 dd c8 53 22 45 b1 3f 9e |..].......S"E.?.|
00000070 ee 99 36 45 66 e7 18 88 7c 7d 14 f4 3e 2d 94 bf |..6Ef...|}..>-..|
00000080 1a 51 0f a8 18 e9 9f ac cb 2c 5e 14 03 03 00 01 |.Q.......,^.....|
00000090 01 16 03 03 00 40 b0 2f 48 95 b9 25 85 6c 64 63 |.....@./H..%.ldc|
000000a0 0b a3 79 54 d9 eb 58 d1 3a 93 aa 63 ff e4 d2 23 |..yT..X.:..c...#|
000000b0 4f 83 f9 41 93 d6 5a 03 bc b5 ad 3b bb 78 5f 57 |O..A..Z....;.x_W|
000000c0 2b 9d 84 07 9f 7e e6 9c 58 b8 e5 70 f1 29 0d 29 |+....~..X..p.).)|
000000d0 52 9b 69 d5 25 03 |R.i.%.|
00000000 16 03 03 00 86 10 00 00 82 00 80 a4 72 d8 04 ea |............r...|
00000010 75 da c4 14 85 8d d7 7d 08 43 3a 38 fc 02 50 8e |u......}.C:8..P.|
00000020 54 8a 49 a7 fc 4b 3f 13 a0 63 c6 69 72 93 2d cd |T.I..K?..c.ir.-.|
00000030 f5 08 fe 24 bb d8 54 76 25 eb f8 9c 5d b9 a9 df |...$..Tv%...]...|
00000040 56 f9 42 81 c1 29 0e 4e 05 f3 f7 44 bb ee a4 de |V.B..).N...D....|
00000050 a6 cc 22 68 40 1b 81 4e fe e2 02 8e e7 7c 25 71 |.."h@..N.....|%q|
00000060 cc 9e 86 01 e6 80 68 b2 4e 80 3d fc bc 4f 8f 30 |......h.N.=..O.0|
00000070 fa 17 be 2c 7f c5 5f 17 b0 b3 3c 4b 90 a2 5e cc |...,.._...<K..^.|
00000080 35 94 9c e4 9c 35 12 a2 ba a3 c3 14 03 03 00 01 |5....5..........|
00000090 01 16 03 03 00 40 20 48 00 ff 46 9b e5 61 a3 1f |.....@ H..F..a..|
000000a0 c3 cc 86 b3 b5 4d dc f8 b3 6f 61 1f b8 03 83 93 |.....M...oa.....|
000000b0 58 be bf 77 5d db 9c 3d 26 ed e2 cd a6 1d 4b e3 |X..w]..=&.....K.|
000000c0 37 c2 0d 4d b6 80 e1 f1 17 19 1e 9e 77 90 ec 16 |7..M........w...|
000000d0 55 92 a4 f9 36 a7 |U...6.|
>>> Flow 4 (server to client)
00000000 14 03 03 00 01 01 16 03 03 00 40 00 00 00 00 00 |..........@.....|
00000010 00 00 00 00 00 00 00 00 00 00 00 0f 0d bb 06 58 |...............X|
00000020 0f c9 e5 69 4a bb e6 e5 8c 53 d7 a6 70 fa 1c c6 |...iJ....S..p...|
00000030 0d a5 b8 5b 72 74 6a 38 08 47 b4 55 53 e5 79 9b |...[rtj8.G.US.y.|
00000040 94 24 e6 d7 bf 16 37 2e 3b 90 63 17 03 03 00 40 |.$....7.;.c....@|
00000010 00 00 00 00 00 00 00 00 00 00 00 85 9f 5f d6 b1 |............._..|
00000020 f2 c9 ad b8 01 16 9f 20 b1 41 06 f4 6d 44 b5 6d |....... .A..mD.m|
00000030 0a 68 d0 e3 6a 24 66 de 39 f1 7a d9 81 5e f7 d4 |.h..j$f.9.z..^..|
00000040 36 e6 11 12 f6 0f 01 ef 6e af 0d 17 03 03 00 40 |6.......n......@|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 8c ec 5a 5a 6c c5 04 d1 9d 1e 0b e2 e5 f5 10 cd |..ZZl...........|
00000070 3a f9 66 1b 4d e5 2c a5 16 67 40 02 95 95 19 d9 |:.f.M.,..g@.....|
00000080 93 0b e5 f3 83 9d 47 c7 73 ba 2c c5 e4 a9 2f fb |......G.s.,.../.|
00000060 b4 b8 fe 91 27 cb 85 b3 4c 2c 42 8e ce c0 17 40 |....'...L,B....@|
00000070 82 34 21 c6 fe b6 c8 90 07 d2 a7 5e f2 01 34 ed |.4!........^..4.|
00000080 0a 51 33 af 4b 72 80 49 4b d1 a1 02 99 f5 26 3d |.Q3.Kr.IK.....&=|
00000090 15 03 03 00 30 00 00 00 00 00 00 00 00 00 00 00 |....0...........|
000000a0 00 00 00 00 00 d6 1f 95 49 7e 5e 87 0f 37 82 cd |........I~^..7..|
000000b0 89 53 e1 a9 28 69 96 e3 53 6a 2e c4 77 dc 84 ff |.S..(i..Sj..w...|
000000c0 9b ab fe 35 4e |...5N|
000000a0 00 00 00 00 00 63 81 63 33 d1 2b db 09 8b b6 57 |.....c.c3.+....W|
000000b0 54 c9 34 e8 56 e4 e3 b4 86 90 d5 86 df 71 a9 85 |T.4.V........q..|
000000c0 56 be d5 9c b8 |V....|