func()

in entryMaker/oneCRL/oneCRL.go [686:702]


func (r *RevocationsTxtData) ToRevocationsTxtString() string {
	RevocationsTxtString := ""

	for issuer, serials := range r.byIssuerSerialNumber {
		RevocationsTxtString = fmt.Sprintf("%s%s\n", RevocationsTxtString, issuer)
		for _, serial := range serials {
			RevocationsTxtString = fmt.Sprintf("%s %s\n", RevocationsTxtString, serial)
		}
	}
	for subject, pubKeyHashes := range r.bySubjectPubKeyHash {
		RevocationsTxtString = fmt.Sprintf("%s%s\n", RevocationsTxtString, subject)
		for _, pubKeyHash := range pubKeyHashes {
			RevocationsTxtString = fmt.Sprintf("%s\t%s\n", RevocationsTxtString, pubKeyHash)
		}
	}
	return RevocationsTxtString
}