mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/tls: check in support code.
This support code helps in generating the handshake scripts which are used for testing. R=rsc, ality CC=golang-dev https://golang.org/cl/3680041
This commit is contained in:
parent
0bf2aa1aa7
commit
fd021cbe8f
2 changed files with 60 additions and 4 deletions
|
|
@ -189,10 +189,11 @@ var testPrivateKey = &rsa.PrivateKey{
|
|||
}
|
||||
|
||||
// Script of interaction with gnutls implementation.
|
||||
// The values for this test are obtained by building a test binary (gotest)
|
||||
// and then running 6.out -serve to start a server and then
|
||||
// gnutls-cli --insecure --debug 100 -p 10443 localhost
|
||||
// to dump a session.
|
||||
// The values for this test are obtained by building and running in server mode:
|
||||
// % gotest -match "TestRunServer" -serve
|
||||
// and then:
|
||||
// % gnutls-cli --insecure --debug 100 -p 10443 localhost > /tmp/log 2>&1
|
||||
// % python parse-gnutls-cli-debug-log.py < /tmp/log
|
||||
var rc4ServerScript = [][]byte{
|
||||
{
|
||||
0x16, 0x03, 0x02, 0x00, 0x7f, 0x01, 0x00, 0x00,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue