]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: restrict CRL number to <=20 octets
authorRoland Shoemaker <roland@golang.org>
Wed, 29 Jun 2022 18:30:47 +0000 (11:30 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 7 Jul 2022 19:43:03 +0000 (19:43 +0000)
commitc177d9d98a7bfb21346f6309c115d0a2bf3167e3
tree293c364c9ccf7e4a5ec4c468dd9ea663f7c5c0f2
parent486fc0177068277a51235c7794660b238e70d622
crypto/x509: restrict CRL number to <=20 octets

Similar to certificate serial numbers, RFC 5280 restricts the length of
the CRL number field to no more than 20 octets. Enforce this in
CreateRevocationList.

Fixes #53543

Change-Id: If392ef6b0844db716ae9ee6ef317135fceab039c
Reviewed-on: https://go-review.googlesource.com/c/go/+/415134
Auto-Submit: Roland Shoemaker <roland@golang.org>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go