Rename a function for clarity

This commit is contained in:
Andrew Ayer 2016-03-17 16:34:53 -07:00
parent a071e9490a
commit 3b59332bf1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)