summaryrefslogtreecommitdiff
path: root/bin-src/util/rfc6962.go
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-09-01 00:33:47 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-09-01 01:45:17 -0600
commitd26030ecbc2d0baa614ff31e8c0c28e98e1d70ab (patch)
tree295604dd1baf4cb3231628b392b530aad16d58cc /bin-src/util/rfc6962.go
parentf27db0f7772b3d160e0afececc5b30425ebb2d9b (diff)
Use golangci-lint to modernize my Go
Diffstat (limited to 'bin-src/util/rfc6962.go')
-rw-r--r--bin-src/util/rfc6962.go13
1 files changed, 4 insertions, 9 deletions
diff --git a/bin-src/util/rfc6962.go b/bin-src/util/rfc6962.go
index 46a531b..f3ac958 100644
--- a/bin-src/util/rfc6962.go
+++ b/bin-src/util/rfc6962.go
@@ -3,24 +3,19 @@ package util
import (
"crypto/x509"
"encoding/asn1"
-
- //"fmt"
- //"os"
)
+//nolint:gochecknoglobals // would be constant
var (
- oidSCTs = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 11129, 2, 4, 2}
- oidPrecertificatePoison = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 11129, 2, 4, 3}
+ OidSCTs = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 11129, 2, 4, 2}
+ OidPrecertificatePoison = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 11129, 2, 4, 3}
)
func IsPrecertificate(certX509 *x509.Certificate) bool {
for _, ext := range certX509.Extensions {
- //fmt.Fprintln(os.Stderr, "ext", ext)
- if ext.Id.Equal(oidPrecertificatePoison) {
- //fmt.Fprintln(os.Stderr, "t")
+ if ext.Id.Equal(OidPrecertificatePoison) {
return true
}
}
- //fmt.Fprintln(os.Stderr, "f")
return false
}