aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mpagealloc_test.go
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo@golang.org>2019-09-05 14:23:08 -0400
committerFilippo Valsorda <filippo@golang.org>2019-11-09 20:08:06 +0000
commit29cfb4d3c3a97b6f426d1b899234da905be699aa (patch)
treecfb53911ff0e4a5382ea431bf1682c86bf525a03 /src/runtime/mpagealloc_test.go
parent7148478f1b433caa11c8827657ee1bc61f0b1c5d (diff)
downloadgo-29cfb4d3c3a97b6f426d1b899234da905be699aa.tar.xz
crypto/tls: add ExampleConfig_VerifyPeerCertificate
Setting InsecureSkipVerify and VerifyPeerCertificate is the recommended way to customize and override certificate validation. However, there is boilerplate involved and it usually requires first reimplementing the default validation strategy to then customize it. Provide an example that does the same thing as the default as a starting point. Examples of where we directed users to do something similar are in issues #35467, #31791, #28754, #21971, and #24151. Fixes #31792 Change-Id: Id033e9fa3cac9dff1f7be05c72dfb34b4f973fd4 Reviewed-on: https://go-review.googlesource.com/c/go/+/193620 Reviewed-by: Adam Langley <agl@golang.org>
Diffstat (limited to 'src/runtime/mpagealloc_test.go')
0 files changed, 0 insertions, 0 deletions