diff options
| author | Roland Shoemaker <roland@golang.org> | 2025-10-01 08:57:00 -0700 |
|---|---|---|
| committer | Roland Shoemaker <roland@golang.org> | 2025-10-24 08:40:50 -0700 |
| commit | 0d3dab9b1d3b22ecac956c79a1b42a7d3f587c06 (patch) | |
| tree | cddd777aea17c454ba01c32b226cfa0934ccb09c /src/encoding/json | |
| parent | 29046398bb9081ea8f8ff3befa770e86d60b1e05 (diff) | |
| download | go-0d3dab9b1d3b22ecac956c79a1b42a7d3f587c06.tar.xz | |
crypto/x509: simplify candidate chain filtering
Use slices.DeleteFunc to remove chains with invalid policies and
incompatible key usage, instead of iterating over the chains and
reconstructing the slice.
Change-Id: I8ad2bc1ac2469d0d18b2c090e3d4f702b1b577cb
Reviewed-on: https://go-review.googlesource.com/c/go/+/708415
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/encoding/json')
0 files changed, 0 insertions, 0 deletions
