func NewEntry()

in certdataDiffCCADB/ccadb/ccadb.go [143:178]


func NewEntry(c *Certificate) *utils.Entry {
	var cio string
	var ciou string
	var cn string
	var csn string
	var pem string
	var fp string
	var tb string
	var tw bool
	var te bool
	var ok bool
	if cio, ok = c.Get(CIO); !ok {
		log.Printf("Failed to find column in CCADB, %v\n", CIO)
	}
	if ciou, ok = c.Get(CIOU); !ok {
		log.Printf("Failed to find column in CCADB, %v\n", CIOU)
	}
	if cn, ok = c.Get(CN); !ok {
		log.Printf("Failed to find column in CCADB, %v\n", CN)
	}
	if csn, ok = c.Get(CSN); !ok {
		log.Printf("Failed to find column in CCADB, %v\n", CSN)
	}
	if pem, ok = c.Get(PEM); !ok {
		log.Printf("Failed to find column in CCADB, %v\n", PEM)
	}
	if fp, ok = c.Get(FP); !ok {
		log.Printf("Failed to find column in CCADB, %v\n", FP)
	}
	if tb, ok = c.Get(TB); !ok {
		log.Printf("Failed to find column in CCADB, %v\n", TB)
	}
	tw, te = strings.Contains(tb, TrustWeb), strings.Contains(tb, TrustEmail)
	return utils.NewEntry(cio, ciou, cn, csn, pem, fp, tw, te,
		c.lineNum, "ccadb")
}