Add HasParseErrors method to EntryInfo

This commit is contained in:
Andrew Ayer 2016-03-23 20:18:12 -07:00
parent 616ac0cb83
commit af14fca70f
1 changed files with 10 additions and 0 deletions

View File

@ -214,6 +214,16 @@ func (info *CertInfo) Environ () []string {
return env
}
func (info *EntryInfo) HasParseErrors () bool {
return info.ParseError != nil ||
info.CertInfo.DNSNamesParseError != nil ||
info.CertInfo.SubjectParseError != nil ||
info.CertInfo.IssuerParseError != nil ||
info.CertInfo.SerialNumberParseError != nil ||
info.CertInfo.ValidityParseError != nil ||
info.CertInfo.ConstraintsParseError != nil
}
func (info *EntryInfo) Fingerprint () string {
if len(info.FullChain) > 0 {
return sha256hex(info.FullChain[0])