return the local TLS error, but don't send it on the wire

This commit is contained in:
Marten Seemann
2019-03-07 16:16:02 +09:00
parent ae12852e4c
commit 5b27076a4c
6 changed files with 35 additions and 18 deletions

View File

@@ -138,8 +138,7 @@ var _ = Describe("Handshake tests", func() {
tlsConf,
clientConfig,
)
// TODO: check the error returned locally here
Expect(err).To(HaveOccurred())
Expect(err).To(MatchError("CRYPTO_ERROR: x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs"))
})
It("fails the handshake if the client fails to provide the requested client cert", func() {