func()

in ccadb2OneCRL/onecrl/onecrl.go [60:71]


func (r *Record) Type() set.Type {
	if r.PubKeyHash != "" && r.Subject != "" {
		return set.SubjectKeyHashType
	} else if r.IssuerName != "" && r.SerialNumber != "" {
		return set.IssuerSerialType
	}
	log.WithField("entry", r).Panic("a OneCRL entry was found that does not appear to be either a " +
		"SubjectPubKeyHash type nor the more common IssuerSerial type")
	// The Go compiler understands that the above statement panics the program and compiles just fine, but Goland
	// will complain endlessly (as of Aug 2020) that this method will not compile due to a missing return.
	return set.IssuerSerialType
}