Rename a function for clarity
This commit is contained in:
parent
a071e9490a
commit
3b59332bf1
|
@ -69,7 +69,7 @@ func processEntry (scanner *ctwatch.Scanner, entry *ct.LogEntry) {
|
||||||
FullChain: ctwatch.GetFullChain(entry),
|
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 {
|
if info.ParseError == nil && info.CertInfo.DNSNamesParseError == nil {
|
||||||
// Match DNS names
|
// Match DNS names
|
||||||
|
|
|
@ -132,7 +132,7 @@ func MakeCertInfoFromRawCert (certBytes []byte) (*CertInfo, error) {
|
||||||
return MakeCertInfoFromRawTBS(cert.GetRawTBSCertificate())
|
return MakeCertInfoFromRawTBS(cert.GetRawTBSCertificate())
|
||||||
}
|
}
|
||||||
|
|
||||||
func MakeCertInfo (entry *ct.LogEntry) (*CertInfo, error) {
|
func MakeCertInfoFromLogEntry (entry *ct.LogEntry) (*CertInfo, error) {
|
||||||
switch entry.Leaf.TimestampedEntry.EntryType {
|
switch entry.Leaf.TimestampedEntry.EntryType {
|
||||||
case ct.X509LogEntryType:
|
case ct.X509LogEntryType:
|
||||||
return MakeCertInfoFromRawCert(entry.Leaf.TimestampedEntry.X509Entry)
|
return MakeCertInfoFromRawCert(entry.Leaf.TimestampedEntry.X509Entry)
|
||||||
|
|
Loading…
Reference in New Issue