func addDeniedNames(tx *gorp.Transaction, names []string) (err error) { sort.Strings(names) deniedCSR := &core.DeniedCSR{Names: strings.ToLower(strings.Join(names, ","))} err = tx.Insert(deniedCSR) return }
func addFQDNSet(tx *gorp.Transaction, names []string, serial string, issued time.Time, expires time.Time) error { return tx.Insert(&core.FQDNSet{ SetHash: hashNames(names), Serial: serial, Issued: issued, Expires: expires, }) }