Commit b99f446dc4 for golang
commit b99f446dc47e0c21ff493239191a26e035a9c7ff
Author: Daniel McCarney <daniel@binaryparadox.net>
Date: Thu Dec 3 11:47:34 2026 -0500
crypto/tls: clarify which UPKI errors fail the handshake
The MissingData comment was difficult to interpret with respect to
error conditions. Clarify that errors opening, reading, or parsing the
index or a referenced filter fail the handshake when they fall outside
the cases covered by MissingData.
For #83417
For #82402
Change-Id: I70d5aa7e607944675ed69773925a029c61607199
Reviewed-on: https://go-review.googlesource.com/c/go/+/869782
Auto-Submit: Daniel McCarney <daniel@binaryparadox.net>
Reviewed-by: Neal Patel <nealpatel@google.com>
Reviewed-by: Austin Clements <austin@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/src/crypto/tls/upki.go b/src/crypto/tls/upki.go
index 1b74f94235..391f36f78e 100644
--- a/src/crypto/tls/upki.go
+++ b/src/crypto/tls/upki.go
@@ -42,7 +42,8 @@ type UPKIRevocationConfig struct {
// path is missing, a parent is not a directory, or access is denied.
// By default, the connection proceeds if automatic discovery finds no
// available index. [UPKIRevocationPolicyReject] requires an available index.
- // Errors reading or parsing an opened index or its filters are fatal.
+ // Any other error opening, reading, or parsing the index or a filter it names
+ // causes the handshake to fail, regardless of this policy.
MissingData UPKIRevocationPolicy
// NotCovered controls the result when the revocation data cannot