Skip to content

Commit

Permalink
Always perform e_cert_unique_identifier_version_not_2_or_3 (#711)
Browse files Browse the repository at this point in the history
* lint about the encoding of qcstatements for PSD2

* Revert "lint about the encoding of qcstatements for PSD2"

This reverts commit 6c23670.

* util: gtld_map autopull updates for 2021-10-21T07:25:20 UTC

* always check and perform the operation in the execution

---------

Co-authored-by: mtg <git@mtg.de>
Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: Christopher Henderson <chris@chenderson.org>
  • Loading branch information
4 people committed May 14, 2023
1 parent a5c869f commit 2438596
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ func NewCertUniqueIdVersion() lint.LintInterface {
}

func (l *certUniqueIdVersion) CheckApplies(c *x509.Certificate) bool {
return c.IssuerUniqueId.Bytes != nil || c.SubjectUniqueId.Bytes != nil
return true
}

func (l *certUniqueIdVersion) Execute(c *x509.Certificate) *lint.LintResult {
if (c.Version) != 2 && (c.Version) != 3 {
if (c.IssuerUniqueId.Bytes != nil || c.SubjectUniqueId.Bytes != nil) && (c.Version) != 2 && (c.Version) != 3 {
return &lint.LintResult{Status: lint.Error}
} else {
return &lint.LintResult{Status: lint.Pass}
Expand Down

0 comments on commit 2438596

Please sign in to comment.