summaryrefslogtreecommitdiff
path: root/bin-src/crtsh-pem2html.go
diff options
context:
space:
mode:
Diffstat (limited to 'bin-src/crtsh-pem2html.go')
-rw-r--r--bin-src/crtsh-pem2html.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin-src/crtsh-pem2html.go b/bin-src/crtsh-pem2html.go
index c0b815c..2c9debb 100644
--- a/bin-src/crtsh-pem2html.go
+++ b/bin-src/crtsh-pem2html.go
@@ -29,10 +29,8 @@ func handleBool(ok bool, str string, a ...interface{}) {
}
func rfc6962type(certX509 *x509.Certificate) string {
- for _, ext := range certX509.Extensions {
- if ext.Id.Equal(util.OID_RFC6962_Poison) {
- return "Precertificate"
- }
+ if util.IsPrecertificate(certX509) {
+ return "Precertificate"
}
return "Certificate"
}