]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: use Certificate.Equals and CertPool.contains.
authorAdam Langley <agl@golang.org>
Wed, 26 Oct 2016 20:51:44 +0000 (13:51 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 26 Oct 2016 22:58:21 +0000 (22:58 +0000)
commit4f1e7be51f401a5374c0def2df0773abc924b03c
tree46ad9e94e5ece9b1c67be95a161b65ec3cea2635
parentf697cf22558157b9c0bc287287c5668c758f16c9
crypto/x509: use Certificate.Equals and CertPool.contains.

By using these utility functions, the code can be made a little shorter.
Thanks to Omar Shafie for pointing this out in
https://golang.org/cl/27393/.

Change-Id: I33fd97cf7d60a31d0844ec16c12bba530dcc6f6d
Reviewed-on: https://go-review.googlesource.com/32120
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/cert_pool.go