diff options
Diffstat (limited to 'sni_test.go')
-rw-r--r-- | sni_test.go | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/sni_test.go b/sni_test.go index a27b90c..8c87d24 100644 --- a/sni_test.go +++ b/sni_test.go @@ -152,12 +152,6 @@ func TestHandshakeRecord(t *testing.T) { tlsver int }{ { - // SSL 3.0, 1b packet - []byte{22, 3, 0, 0, 1, 3}, - []byte{3}, - 0, - }, - { // TLS 1.0, 1b packet []byte{22, 3, 1, 0, 1, 3}, []byte{3}, @@ -229,6 +223,12 @@ func TestHandshakeRecord(t *testing.T) { nil, 0, }, + { + // Obsolete SSL 3.0 + []byte{22, 3, 0, 0, 1, 3}, + nil, + 0, + }, } for _, test := range tests { @@ -308,13 +308,7 @@ func TestParseHello(t *testing.T) { true, }, { - // First valid packet. SSL 3.0, no extensions present. - packet([]byte{1, 0, 0, 73, 3, 0}, slice(32), []byte{32}, slice(32), []byte{0, 2, 1, 2, 1, 0}), - nil, - false, - }, - { - // TLS 1.0, no extensions present. + // First valid packet. TLS 1.0, no extensions present. packet([]byte{1, 0, 0, 73, 3, 1}, slice(32), []byte{32}, slice(32), []byte{0, 2, 1, 2, 1, 0}), nil, false, |