diff --git a/cmd/ctwatch/main.go b/cmd/ctwatch/main.go index d2cce30..a1fc2a4 100644 --- a/cmd/ctwatch/main.go +++ b/cmd/ctwatch/main.go @@ -69,7 +69,7 @@ func processEntry (scanner *ctwatch.Scanner, entry *ct.LogEntry) { FullChain: ctwatch.GetFullChain(entry), } - info.CertInfo, info.ParseError = ctwatch.MakeCertInfo(entry) + info.CertInfo, info.ParseError = ctwatch.MakeCertInfoFromLogEntry(entry) if info.ParseError == nil && info.CertInfo.DNSNamesParseError == nil { // Match DNS names diff --git a/helpers.go b/helpers.go index c7051b9..46901ee 100644 --- a/helpers.go +++ b/helpers.go @@ -132,7 +132,7 @@ func MakeCertInfoFromRawCert (certBytes []byte) (*CertInfo, error) { return MakeCertInfoFromRawTBS(cert.GetRawTBSCertificate()) } -func MakeCertInfo (entry *ct.LogEntry) (*CertInfo, error) { +func MakeCertInfoFromLogEntry (entry *ct.LogEntry) (*CertInfo, error) { switch entry.Leaf.TimestampedEntry.EntryType { case ct.X509LogEntryType: return MakeCertInfoFromRawCert(entry.Leaf.TimestampedEntry.X509Entry)