Skip to content

Commit e5489a3

Browse files
geemusgopherbot
authored andcommitted
crypto/x509: add missing be to comment about serial number positivity
Change-Id: I4e0e5309eb3cb1c6820f1a034a5f52adffe35645 GitHub-Last-Rev: 74b2e89 GitHub-Pull-Request: #70639 Reviewed-on: https://go-review.googlesource.com/c/go/+/632815 Reviewed-by: Michael Knyszek <[email protected]> Auto-Submit: Roland Shoemaker <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent c5adb82 commit e5489a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/x509/x509.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ func CreateCertificate(rand io.Reader, template, parent *Certificate, pub, priv
16941694
}
16951695
}
16961696

1697-
// RFC 5280 Section 4.1.2.2: serial number must positive
1697+
// RFC 5280 Section 4.1.2.2: serial number must be positive
16981698
//
16991699
// We _should_ also restrict serials to <= 20 octets, but it turns out a lot of people
17001700
// get this wrong, in part because the encoding can itself alter the length of the

0 commit comments

Comments
 (0)