From 3b59332bf196ee7003cffd5b92eb8d10086983b9 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Thu, 17 Mar 2016 16:34:53 -0700 Subject: [PATCH] Rename a function for clarity --- cmd/ctwatch/main.go | 2 +- helpers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)