Skip to content

Commit

Permalink
Merge pull request #1025 from cpu/cpu-bump-zlint-dep
Browse files Browse the repository at this point in the history
Gopkg: update zlint/zcrypto to latest.
  • Loading branch information
cbroglie authored Aug 8, 2019
2 parents d4e8552 + df5c37b commit b1ec8c5
Show file tree
Hide file tree
Showing 43 changed files with 999 additions and 3,808 deletions.
19 changes: 7 additions & 12 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions signer/local/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1522,8 +1522,6 @@ func TestLint(t *testing.T) {
// On purpose this template will trip the following lints:
// 1. e_sub_cert_aia_does_not_contain_ocsp_url because there is no OCSP URL.
// 2. e_dnsname_not_valid_tld because `.cert` is not a real TLD
// 3. w_serial_number_low_entropy because '1338' is a static constant <8
// bytes in length.
serial = big.NewInt(1338)
jankyTemplate.SerialNumber = serial
jankyTemplate.Subject.CommonName = "www.janky.cert"
Expand Down Expand Up @@ -1554,11 +1552,10 @@ func TestLint(t *testing.T) {
name: "lint results above err level",
signer: lintSigner,
lintErrLevel: lints.Notice,
expectedErr: errors.New("pre-issuance linting found 3 error results"),
expectedErr: errors.New("pre-issuance linting found 2 error results"),
expectedErrResults: map[string]lints.LintResult{
"e_sub_cert_aia_does_not_contain_ocsp_url": lints.LintResult{Status: 6},
"e_dnsname_not_valid_tld": lints.LintResult{Status: 6},
"w_serial_number_low_entropy": lints.LintResult{Status: 5},
},
},
{
Expand All @@ -1576,12 +1573,11 @@ func TestLint(t *testing.T) {
signer: lintSigner,
lintErrLevel: lints.Notice,
ignoredLintMap: map[string]bool{
"w_serial_number_low_entropy": true,
"e_dnsname_not_valid_tld": true,
},
expectedErr: errors.New("pre-issuance linting found 2 error results"),
expectedErr: errors.New("pre-issuance linting found 1 error results"),
expectedErrResults: map[string]lints.LintResult{
"e_sub_cert_aia_does_not_contain_ocsp_url": lints.LintResult{Status: 6},
"e_dnsname_not_valid_tld": lints.LintResult{Status: 6},
},
},
}
Expand Down
14 changes: 0 additions & 14 deletions vendor/github.com/asaskevich/govalidator/.travis.yml

This file was deleted.

63 changes: 0 additions & 63 deletions vendor/github.com/asaskevich/govalidator/CONTRIBUTING.md

This file was deleted.

21 changes: 0 additions & 21 deletions vendor/github.com/asaskevich/govalidator/LICENSE

This file was deleted.

Loading

0 comments on commit b1ec8c5

Please sign in to comment.