]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: allow tls.Listen when only GetCertificate is provided.
authoraubble <anmol@aubble.com>
Thu, 20 Aug 2015 18:31:15 +0000 (14:31 -0400)
committerAdam Langley <agl@golang.org>
Sat, 29 Aug 2015 19:28:03 +0000 (19:28 +0000)
commitbfa016150b886b76cc1a4050ee8b6e98d0e0e9ba
tree39dfa7730dd4c6a6393df879de1b5fc5ef4a3de4
parent74245b03534dfec5f719aa60e03c0b932aa63e26
crypto/tls: allow tls.Listen when only GetCertificate is provided.

Go 1.5 allowed TLS connections where Config.Certificates was nil as long
as the GetCertificate callback was given. However, tls.Listen wasn't
updated accordingly until this change.

Change-Id: I5f67f323f63c988ff79642f3daf8a6b2a153e6b2
Reviewed-on: https://go-review.googlesource.com/13801
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/tls/tls.go