]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: simplify intermediate certificate handling
authorJoel Sing <joel@sing.id.au>
Tue, 19 Mar 2019 16:58:42 +0000 (03:58 +1100)
committerFilippo Valsorda <filippo@golang.org>
Tue, 2 Apr 2019 20:29:58 +0000 (20:29 +0000)
commit20389553c7d287a4fffb9718e328a514640a915c
tree785d4e09b53278d6d0142fea69517b41db1e5566
parent2d683807135d8179d292a4f6f03be3cf7e4d30d3
crypto/tls: simplify intermediate certificate handling

The certificates argument to verifyServerCertificate must contain
at least one certificate. Simplify the intermediate certificate
handling code accordingly.

Change-Id: I8292cdfb51f418e011d6d97f47d10b4e631aa932
Reviewed-on: https://go-review.googlesource.com/c/go/+/169657
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/tls/handshake_client.go