Skip to content

Commit

Permalink
Add Revocation.IsActive
Browse files Browse the repository at this point in the history
  • Loading branch information
danikarik committed Sep 24, 2020
1 parent f62dca8 commit 9d1613f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x509_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ type Revocation struct {
Status Status `json:"status"`
}

// IsActive checks whether Revocation is active or not.
func (r *Revocation) IsActive() bool { return r.Status == StatusActive }

// Cert holds data of certificate.
type Cert struct {
Valid bool `json:"valid"`
Expand Down

0 comments on commit 9d1613f

Please sign in to comment.