]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: allow certificates and key to be in either order.
authorAdam Langley <agl@golang.org>
Thu, 13 Sep 2012 15:00:16 +0000 (11:00 -0400)
committerAdam Langley <agl@golang.org>
Thu, 13 Sep 2012 15:00:16 +0000 (11:00 -0400)
commitecc04b8927c89fd8aa278af88888d9f186d2417f
tree4a2b4128f57467c7b7dbb30f1f46b8c4b285b4ce
parent37721cc1ce19269afb1a32bc14c51c4a4beb7b8b
crypto/tls: allow certificates and key to be in either order.

X509KeyPair wasn't really supposed to allow the certificate and
key to be in the same file, but it did work if you put the key
first. Since some HTTPS servers support loading keys and certs
like this, this change makes it work in either order.

Fixes #3986.

R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/6499103
src/pkg/crypto/tls/tls.go
src/pkg/crypto/tls/tls_test.go [new file with mode: 0644]