]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: update how we create testing scripts.
authorAdam Langley <agl@golang.org>
Wed, 11 Apr 2012 16:55:57 +0000 (12:55 -0400)
committerAdam Langley <agl@golang.org>
Wed, 11 Apr 2012 16:55:57 +0000 (12:55 -0400)
commit7247dcab92e4be1c0d2eec76823e27c60c9735ba
tree28087a6fec3173f5372a54329a9a0897a7629632
parent98aa4968b7f7fbbac2baba99c508d72d4f4ce883
crypto/tls: update how we create testing scripts.

crypto/tls is tested, in part, by replaying recorded TLS connections
and checking that the bytes sent by the Go code haven't changed.

Previously we used GnuTLS's debug output and extracted the bytes of
the TLS connection using a Python script. That wasn't great, and I
think GnuTLS removed that level of debugging in a more current
release.

This change records the connection with Go code and adds a test for
ECDHE-AES clients generating using this method.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5988048
src/pkg/crypto/tls/handshake_client_test.go
src/pkg/crypto/tls/handshake_server_test.go
src/pkg/crypto/tls/parse-gnutls-cli-debug-log.py [deleted file]