use new error codes throughout the server

fixes #86
This commit is contained in:
Lucas Clemente
2016-05-17 12:48:19 +02:00
parent 287ff59138
commit d0e6b993bb
11 changed files with 46 additions and 24 deletions

View File

@@ -196,7 +196,7 @@ var _ = Describe("Crypto setup", func() {
It("errors without SNI", func() {
WriteHandshakeMessage(&stream.dataToRead, TagCHLO, map[Tag][]byte{})
err := cs.HandleCryptoStream()
Expect(err).To(MatchError("expected SNI in handshake map"))
Expect(err).To(MatchError("CryptoMessageParameterNotFound: SNI required"))
})
Context("escalating crypto", func() {