mirror of
				https://github.com/SSLMate/certspotter.git
				synced 2025-07-03 10:47:17 +02:00 
			
		
		
		
	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),
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	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
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user