aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorRoland Shoemaker <roland@golang.org>2024-02-09 09:45:55 -0800
committerGopher Robot <gobot@golang.org>2024-05-22 17:23:31 +0000
commit8524931a2cdc6a57afdf6f4b3375cb261c2557da (patch)
tree26eb914124f896dd1913b4fb11c634fdbebf16bf /src/runtime
parentdb13584baedce4909915cb4631555f6dbd7b8c38 (diff)
downloadgo-8524931a2cdc6a57afdf6f4b3375cb261c2557da.tar.xz
crypto/x509: reject serial numbers longer than 20 octets
Updates #65085 Change-Id: I8e5fb6c77c54f07247b30afea9fe8c548bf6d0be Reviewed-on: https://go-review.googlesource.com/c/go/+/562975 Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Roland Shoemaker <roland@golang.org> Reviewed-by: Filippo Valsorda <filippo@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/metrics/doc.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/metrics/doc.go b/src/runtime/metrics/doc.go
index 30e8671c0c..8e99846e6d 100644
--- a/src/runtime/metrics/doc.go
+++ b/src/runtime/metrics/doc.go
@@ -327,6 +327,11 @@ Below is the full list of supported metrics, ordered lexicographically.
package due to a non-default GODEBUG=x509negativeserial=...
setting.
+ /godebug/non-default-behavior/x509seriallength:events
+ The number of non-default behaviors executed by the crypto/x509
+ package due to a non-default GODEBUG=x509seriallength=...
+ setting.
+
/godebug/non-default-behavior/x509sha1:events
The number of non-default behaviors executed by the crypto/x509
package due to a non-default GODEBUG=x509sha1=... setting.