diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 3dac856ac..3a6f64a92 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -18,10 +18,12 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: ^1.18 - + go-version: ^1.20 + - name: Install golangci-lint + run: | + wget https://github.com/golangci/golangci-lint/releases/download/v1.51.2/golangci-lint-1.51.2-linux-amd64.deb + sudo apt install -y ./golangci-lint-1.51.2-linux-amd64.deb\ - name: Run golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - version: v1.45.2 - working-directory: v3 + run: | + cd v3 + golangci-lint run diff --git a/.golangci.yaml b/.golangci.yaml index c83c4d6c5..e89bdfbcc 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -9,6 +9,11 @@ linters-settings: linters: enable-all: true disable: + - interfacer + - nosnakecase + - tparallel + - nonamedreturns + - exhaustruct - stylecheck - gosec - dupl diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 95e8e05f2..f9fde81de 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -266,6 +266,19 @@ func TestCaCommonNameNotMissing2(t *testing.T) { } ``` +Adding New Profiles +---------------- +**Generating Profile Scaffolding.** The scaffolding for a new profiles can be created +by running `./newProfile.sh `. + +An example is: + +```bash +$ ./newProfile.sh my_new_profile +``` + +This will generate a new file in the `profiles` directory by the name `profile_my_new_profile.go` for you. + Updating the TLD Map -------------------- diff --git a/README.md b/README.md index 7fbec7440..d4679d600 100644 --- a/README.md +++ b/README.md @@ -103,8 +103,28 @@ Example ZLint CLI usage: echo "Lint mycert.pem using a custom configuration for any configurable lints" zlint -config configFile.toml mycert.pem + echo "List available lint profiles. A profile is a pre-defined collection of lints." + zlint -list-profiles + See `zlint -h` for all available command line options. +### Linting Certificate Revocation Lists +No special flags are necessary when running lints against a certificate revocation list. However, the CRL in question MUST be a PEM encoded ASN.1 with the `X509 CRL` PEM armor. + +The following is an example of a parseable CRL PEM file. +``` +-----BEGIN X509 CRL----- +MIIBnjCBhwIBATANBgkqhkiG9w0BAQsFADAYMRYwFAYDVQQDEw1BbWlyIHdhcyBI +ZXJlFw0yMzAzMTMwNTUyNTVaFw0yMzAzMTQwNTUyNTVaoDswOTArBgNVHSMEJDAi +gCAywvCJz28KsE/6Wf9E1nuiihBFWlUyq7X/RDgn5SllIDAKBgNVHRQEAwIBATAN +BgkqhkiG9w0BAQsFAAOCAQEAakioBhLs31svWHGmolDhUg6O1daN6zXSAz/avgzl +38aTKfRSNQ+vM7qgrvCoRojnamziJgXe1hz+/dc8H0/+WEBwVgp1rBzr8f25dSZC +lXBHT1cNI5RL+wU0pFMouUiwWqwUg8o9iGYkqvhuko4AQIcpAoBuf0OggjCuj48r +FX7UN7Kz4pc/4ufengKGkf7EeEQffY3zlS0DAtWv+exoQ6Dt+otDr0PbINJZg+46 +TJ/+0w6RsLGoe4Sh/PYPfaCngMyezENUgJgR1+vF6hbVUweeOB+4nFRNxvHMup0G +GEA4yfzQtHWL8rizWUCyuqXEMPZLzyJT0rv5cLgoOvs+8Q== +-----END X509 CRL----- +``` Library Usage ------------- @@ -234,6 +254,7 @@ Here are some projects/CAs known to integrate with ZLint in some fashion: * [Sectigo](https://sectigo.com/) and [crt.sh](https://crt.sh) * [Siemens](https://siemens.com/pki) * [SSL.com](https://www.ssl.com/) +* [PKI Insights](https://www.codegic.com/pki-insights-health-monitoring-for-microsoft-ca/) Please submit a pull request to update the README if you are aware of another CA/project that uses zlint. diff --git a/v3/benchmarks_test.go b/v3/benchmarks_test.go index d78e48307..068afa0e3 100644 --- a/v3/benchmarks_test.go +++ b/v3/benchmarks_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/cmd/genTestCerts/genTestCerts.go b/v3/cmd/genTestCerts/genTestCerts.go index dae197dc7..f241abfa3 100644 --- a/v3/cmd/genTestCerts/genTestCerts.go +++ b/v3/cmd/genTestCerts/genTestCerts.go @@ -1,7 +1,7 @@ package main /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/cmd/genTestCerts/go.mod b/v3/cmd/genTestCerts/go.mod index 96801d8ed..abb83cda4 100644 --- a/v3/cmd/genTestCerts/go.mod +++ b/v3/cmd/genTestCerts/go.mod @@ -12,6 +12,6 @@ require ( require ( github.com/weppos/publicsuffix-go v0.15.1-0.20220329081811-9a40b608a236 // indirect golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect - golang.org/x/net v0.0.0-20220412020605-290c469a71a5 // indirect - golang.org/x/text v0.3.7 // indirect + golang.org/x/net v0.7.0 // indirect + golang.org/x/text v0.7.0 // indirect ) diff --git a/v3/cmd/genTestCerts/go.sum b/v3/cmd/genTestCerts/go.sum index ad51e9f9c..e72e0184e 100644 --- a/v3/cmd/genTestCerts/go.sum +++ b/v3/cmd/genTestCerts/go.sum @@ -5,8 +5,8 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxv github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/mreiferson/go-httpclient v0.0.0-20160630210159-31f0106b4474/go.mod h1:OQA4XLvDbMgS8P0CevmM4m9Q3Jq4phKUzcocxuGJ5m8= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -32,8 +32,8 @@ golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20220412020605-290c469a71a5 h1:bRb386wvrE+oBNdF1d/Xh9mQrfQ4ecYhW5qJ5GvTGT4= -golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -42,8 +42,8 @@ golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= diff --git a/v3/cmd/zlint-gtld-update/main.go b/v3/cmd/zlint-gtld-update/main.go index e729ee4f4..1280c5147 100644 --- a/v3/cmd/zlint-gtld-update/main.go +++ b/v3/cmd/zlint-gtld-update/main.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -75,7 +75,7 @@ var ( // This file was generated by zlint-gtld-update. /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -185,6 +185,7 @@ func getGTLDData() ([]util.GTLDPeriod, error) { return nil, fmt.Errorf("error getting ICANN gTLD JSON : %s", err) } + //nolint:musttag var results struct { GTLDs []util.GTLDPeriod } diff --git a/v3/cmd/zlint/config.toml b/v3/cmd/zlint/config.toml new file mode 100644 index 000000000..7c2413d96 --- /dev/null +++ b/v3/cmd/zlint/config.toml @@ -0,0 +1,19 @@ + +[AppleRootStorePolicyConfig] + +[CABFBaselineRequirementsConfig] + +[CABFEVGuidelinesConfig] + +[CommunityConfig] + +[MozillaRootStorePolicyConfig] + +[RFC5280Config] + +[RFC5480Config] + +[RFC5891Config] + +[e_rsa_fermat_factorization] +Rounds = 0 diff --git a/v3/cmd/zlint/main.go b/v3/cmd/zlint/main.go index 15ce2b287..11185522f 100644 --- a/v3/cmd/zlint/main.go +++ b/v3/cmd/zlint/main.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -32,11 +32,14 @@ import ( "github.com/zmap/zlint/v3" "github.com/zmap/zlint/v3/formattedoutput" "github.com/zmap/zlint/v3/lint" + + _ "github.com/zmap/zlint/v3/profiles" ) var ( // flags listLintsJSON bool listLintSources bool + listProfiles bool summary bool longSummary bool prettyprint bool @@ -46,6 +49,7 @@ var ( // flags excludeNames string includeSources string excludeSources string + profile string printVersion bool config string exampleConfig bool @@ -59,6 +63,7 @@ var ( // flags func init() { flag.BoolVar(&listLintsJSON, "list-lints-json", false, "Print lints in JSON format, one per line") flag.BoolVar(&listLintSources, "list-lints-source", false, "Print list of lint sources, one per line") + flag.BoolVar(&listProfiles, "list-profiles", false, "Print profiles in JSON format, one per line") flag.BoolVar(&summary, "summary", false, "Prints a short human-readable summary report") flag.BoolVar(&longSummary, "longSummary", false, "Prints a human-readable summary report with details") flag.StringVar(&format, "format", "pem", "One of {pem, der, base64}") @@ -67,6 +72,7 @@ func init() { flag.StringVar(&excludeNames, "excludeNames", "", "Comma-separated list of lints to exclude by name") flag.StringVar(&includeSources, "includeSources", "", "Comma-separated list of lint sources to include") flag.StringVar(&excludeSources, "excludeSources", "", "Comma-separated list of lint sources to exclude") + flag.StringVar(&profile, "profile", "", "Name of the linting profile to use. Equivalent to enumerating all of the lints in a given profile using includeNames") flag.BoolVar(&printVersion, "version", false, "Print ZLint version and exit") flag.StringVar(&config, "config", "", "A path to valid a TOML file that is to service as the configuration for a single run of ZLint") flag.BoolVar(&exampleConfig, "exampleConfig", false, "Print a complete example of a configuration that is usable via the '-config' flag and exit. All values listed in this example will be set to their default.") @@ -118,6 +124,18 @@ func main() { return } + if listProfiles { + enc := json.NewEncoder(os.Stdout) + enc.SetEscapeHTML(false) + for _, profile := range lint.AllProfiles() { + err = enc.Encode(profile) + if err != nil { + log.Fatalf("a critical error occurred while JSON encoding a profile, %s", err) + } + } + return + } + var inform = strings.ToLower(format) if flag.NArg() < 1 || flag.Arg(0) == "-" { doLint(os.Stdin, inform, registry) @@ -151,12 +169,20 @@ func doLint(inputFile *os.File, inform string, registry lint.Registry) { } var asn1Data []byte + var isCRL bool switch inform { case "pem": p, _ := pem.Decode(fileBytes) - if p == nil || p.Type != "CERTIFICATE" { + if p == nil { log.Fatal("unable to parse PEM") } + switch p.Type { + case "CERTIFICATE": + case "X509 CRL": + isCRL = true + default: + log.Fatalf("unknown PEM type (%s)", p.Type) + } asn1Data = p.Bytes case "der": asn1Data = fileBytes @@ -168,13 +194,20 @@ func doLint(inputFile *os.File, inform string, registry lint.Registry) { default: log.Fatalf("unknown input format %s", format) } - - c, err := x509.ParseCertificate(asn1Data) - if err != nil { - log.Fatalf("unable to parse certificate: %s", err) + var zlintResult *zlint.ResultSet + if isCRL { + crl, err := x509.ParseRevocationList(asn1Data) + if err != nil { + log.Fatalf("unable to parse certificate revocation list: %s", err) + } + zlintResult = zlint.LintRevocationList(crl) + } else { + c, err := x509.ParseCertificate(asn1Data) + if err != nil { + log.Fatalf("unable to parse certificate: %s", err) + } + zlintResult = zlint.LintCertificateEx(c, registry) } - - zlintResult := zlint.LintCertificateEx(c, registry) jsonBytes, err := json.Marshal(zlintResult.Results) if err != nil { log.Fatalf("unable to encode lints JSON: %s", err) @@ -214,6 +247,7 @@ func trimmedList(raw string) []string { // setLints returns a filtered registry to use based on the nameFilter, // includeNames, excludeNames, includeSources, and excludeSources flag values in // use. +// //nolint:cyclop func setLints() (lint.Registry, error) { configuration, err := lint.NewConfigFromFile(config) @@ -222,10 +256,17 @@ func setLints() (lint.Registry, error) { } lint.GlobalRegistry().SetConfiguration(configuration) // If there's no filter options set, use the global registry as-is - if nameFilter == "" && includeNames == "" && excludeNames == "" && includeSources == "" && excludeSources == "" { + anyFilters := func(args ...string) bool { + for _, arg := range args { + if arg != "" { + return true + } + } + return false + } + if !anyFilters(nameFilter, includeNames, excludeNames, includeSources, excludeSources, profile) { return lint.GlobalRegistry(), nil } - filterOpts := lint.FilterOptions{} if nameFilter != "" { r, err := regexp.Compile(nameFilter) @@ -250,6 +291,13 @@ func setLints() (lint.Registry, error) { if includeNames != "" { filterOpts.IncludeNames = trimmedList(includeNames) } + if profile != "" { + p, ok := lint.GetProfile(profile) + if !ok { + return nil, fmt.Errorf("lint profile name does not exist: %v", profile) + } + filterOpts.AddProfile(p) + } return lint.GlobalRegistry().Filter(filterOpts) } diff --git a/v3/go.mod b/v3/go.mod index af450c37a..0f32059a7 100644 --- a/v3/go.mod +++ b/v3/go.mod @@ -5,14 +5,14 @@ go 1.18 require ( github.com/kr/text v0.2.0 // indirect github.com/pelletier/go-toml v1.9.3 - github.com/sirupsen/logrus v1.8.1 - github.com/zmap/zcrypto v0.0.0-20220402174210-599ec18ecbac - golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 - golang.org/x/net v0.0.0-20220412020605-290c469a71a5 - golang.org/x/text v0.3.7 + github.com/sirupsen/logrus v1.9.0 + github.com/zmap/zcrypto v0.0.0-20230310154051-c8b263fd8300 + golang.org/x/crypto v0.7.0 + golang.org/x/net v0.8.0 + golang.org/x/text v0.8.0 ) require ( - github.com/weppos/publicsuffix-go v0.15.1-0.20220329081811-9a40b608a236 // indirect - golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect + github.com/weppos/publicsuffix-go v0.30.0 // indirect + golang.org/x/sys v0.6.0 // indirect ) diff --git a/v3/go.sum b/v3/go.sum index 0d25dba65..6adff4187 100644 --- a/v3/go.sum +++ b/v3/go.sum @@ -2,7 +2,10 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= +github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= @@ -10,52 +13,96 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mreiferson/go-httpclient v0.0.0-20160630210159-31f0106b4474/go.mod h1:OQA4XLvDbMgS8P0CevmM4m9Q3Jq4phKUzcocxuGJ5m8= +github.com/mreiferson/go-httpclient v0.0.0-20201222173833-5e475fde3a4d/go.mod h1:OQA4XLvDbMgS8P0CevmM4m9Q3Jq4phKUzcocxuGJ5m8= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/pelletier/go-toml v1.9.3 h1:zeC5b1GviRUyKYd6OJPvBU/mcVDVoL1OhT17FCt5dSQ= github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/sirupsen/logrus v1.3.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= -github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/weppos/publicsuffix-go v0.15.1-0.20220329081811-9a40b608a236 h1:vMJBP3PQViZsF6cOINtvyMC8ptpLsyJ4EwyFnzuWNxc= -github.com/weppos/publicsuffix-go v0.15.1-0.20220329081811-9a40b608a236/go.mod h1:HYux0V0Zi04bHNwOHy4cXJVz/TQjYonnF6aoYhj+3QE= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/weppos/publicsuffix-go v0.12.0/go.mod h1:z3LCPQ38eedDQSwmsSRW4Y7t2L8Ln16JPQ02lHAdn5k= +github.com/weppos/publicsuffix-go v0.13.0/go.mod h1:z3LCPQ38eedDQSwmsSRW4Y7t2L8Ln16JPQ02lHAdn5k= +github.com/weppos/publicsuffix-go v0.30.0 h1:QHPZ2GRu/YE7cvejH9iyavPOkVCB4dNxp2ZvtT+vQLY= +github.com/weppos/publicsuffix-go v0.30.0/go.mod h1:kBi8zwYnR0zrbm8RcuN1o9Fzgpnnn+btVN8uWPMyXAY= +github.com/weppos/publicsuffix-go/publicsuffix/generator v0.0.0-20220927085643-dc0d00c92642/go.mod h1:GHfoeIdZLdZmLjMlzBftbTDntahTttUMWjxZwQJhULE= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/zmap/rc2 v0.0.0-20131011165748-24b9757f5521/go.mod h1:3YZ9o3WnatTIZhuOtot4IcUfzoKVjUHqu6WALIyI0nE= +github.com/zmap/rc2 v0.0.0-20190804163417-abaa70531248/go.mod h1:3YZ9o3WnatTIZhuOtot4IcUfzoKVjUHqu6WALIyI0nE= github.com/zmap/zcertificate v0.0.0-20180516150559-0e3d58b1bac4/go.mod h1:5iU54tB79AMBcySS0R2XIyZBAVmeHranShAFELYx7is= -github.com/zmap/zcrypto v0.0.0-20220402174210-599ec18ecbac h1:+nr36qrZEH0RIYNjcUEnOrCUdcSG3om2ANaFA6iSVWA= -github.com/zmap/zcrypto v0.0.0-20220402174210-599ec18ecbac/go.mod h1:egdRkzUylATvPkWMpebZbXhv0FMEMJGX/ur0D3Csk2s= +github.com/zmap/zcertificate v0.0.1/go.mod h1:q0dlN54Jm4NVSSuzisusQY0hqDWvu92C+TWveAxiVWk= +github.com/zmap/zcrypto v0.0.0-20201128221613-3719af1573cf/go.mod h1:aPM7r+JOkfL+9qSB4KbYjtoEzJqUK50EXkkJabeNJDQ= +github.com/zmap/zcrypto v0.0.0-20201211161100-e54a5822fb7e/go.mod h1:aPM7r+JOkfL+9qSB4KbYjtoEzJqUK50EXkkJabeNJDQ= +github.com/zmap/zcrypto v0.0.0-20230310154051-c8b263fd8300 h1:DZH5n7L3L8RxKdSyJHZt7WePgwdhHnPhQFdQSJaHF+o= +github.com/zmap/zcrypto v0.0.0-20230310154051-c8b263fd8300/go.mod h1:mOd4yUMgn2fe2nV9KXsa9AyQBFZGzygVPovsZR+Rl5w= +github.com/zmap/zlint/v3 v3.0.0/go.mod h1:paGwFySdHIBEMJ61YjoqT4h7Ge+fdYG4sUQhnTb1lJ8= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201124201722-c8d3bf9c5392/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= -golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA= -golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= +golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20220412020605-290c469a71a5 h1:bRb386wvrE+oBNdF1d/Xh9mQrfQ4ecYhW5qJ5GvTGT4= -golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201126233918-771906719818/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/v3/integration/config.go b/v3/integration/config.go index b35dfe44e..41d0d3247 100644 --- a/v3/integration/config.go +++ b/v3/integration/config.go @@ -1,4 +1,4 @@ -// +build integration +//go:build integration package integration diff --git a/v3/integration/corpus_test.go b/v3/integration/corpus_test.go index e593dd6f8..d0cea999b 100644 --- a/v3/integration/corpus_test.go +++ b/v3/integration/corpus_test.go @@ -1,4 +1,4 @@ -// +build integration +//go:build integration package integration diff --git a/v3/integration/csv.go b/v3/integration/csv.go index 7dbcf7f58..ea5c1316c 100644 --- a/v3/integration/csv.go +++ b/v3/integration/csv.go @@ -1,4 +1,4 @@ -// +build integration +//go:build integration package integration @@ -45,7 +45,8 @@ type workItem struct { // directory, writing work items to the workChannel as they are available. // // Expected CSV format: -// subject_dn, issuer_dn, raw, fingerprint_sha256 +// +// subject_dn, issuer_dn, raw, fingerprint_sha256 func loadCSV(workChannel chan<- workItem, directory string) { log.Printf("Reading data from %d CSV files", len(conf.Files)) for i, dataFile := range conf.Files { diff --git a/v3/integration/integration_test.go b/v3/integration/integration_test.go index feae90f97..496812f58 100644 --- a/v3/integration/integration_test.go +++ b/v3/integration/integration_test.go @@ -1,4 +1,4 @@ -// +build integration +//go:build integration package integration diff --git a/v3/integration/lints/filters/files.go b/v3/integration/lints/filters/files.go index ddf94f5a5..86860b5c1 100644 --- a/v3/integration/lints/filters/files.go +++ b/v3/integration/lints/filters/files.go @@ -1,7 +1,7 @@ package filters /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/integration/lints/filters/nodes.go b/v3/integration/lints/filters/nodes.go index e16d611ba..66c74a9ef 100644 --- a/v3/integration/lints/filters/nodes.go +++ b/v3/integration/lints/filters/nodes.go @@ -8,10 +8,10 @@ import "go/ast" // // For example, the following returns a list of only function declarations. // -// filters.Declarations(tree.Decls, func(decl ast.Decl) bool { -// _, ok := decl.(*ast.FuncDecl) -// return ok -// }) +// filters.Declarations(tree.Decls, func(decl ast.Decl) bool { +// _, ok := decl.(*ast.FuncDecl) +// return ok +// }) // // The order of declarations is maintained. func Declarations(decls []ast.Decl, predicate func(decl ast.Decl) bool) (filtered []ast.Decl) { diff --git a/v3/integration/lints/lint/lint.go b/v3/integration/lints/lint/lint.go index d3efdd1d3..d9b39acf0 100644 --- a/v3/integration/lints/lint/lint.go +++ b/v3/integration/lints/lint/lint.go @@ -1,7 +1,7 @@ package lint /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -35,7 +35,7 @@ type Lint interface { // The message should be succinct and descriptive of the core issue. This message can only be set in the constructor, // NewResult. For example... // -// "Go style guides suggest not using bare returns in complex functions" +// "Go style guides suggest not using bare returns in complex functions" // // Code citations are the locations within the file that did not meet your expectations. Please see AddCodeCitations // for information on how to add these to the Result type. Adding a code citation will result in the file, line number @@ -72,8 +72,6 @@ func NewResult(message string) *Result { // func (l *certPolicyConflictsWithLocality) Initialize() error { // return nil // } -// -// func (r *Result) AddCodeCitation(start, end token.Pos, file *File) *Result { srcCode := make([]byte, end-start) reader := strings.NewReader(file.Src) @@ -133,9 +131,9 @@ type File struct { // LineOf computes which line a particular position within a file lands on. // // This is not the greatest song in the world. -// No, this is just a tribute. +// No, this is just a tribute. // Couldn't remember the greatest song in the world. -// No, this is just a tribute! +// No, this is just a tribute! // // The word "remember" begins at position 81 within this text, therefor LineOf(81) should return line 3. func (f *File) LineOf(pos token.Pos) int { diff --git a/v3/integration/lints/lints/init_first.go b/v3/integration/lints/lints/init_first.go index 7f9ce9f3a..1af1b6a62 100644 --- a/v3/integration/lints/lints/init_first.go +++ b/v3/integration/lints/lints/init_first.go @@ -1,7 +1,7 @@ package lints /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/integration/lints/lints/init_first_test.go b/v3/integration/lints/lints/init_first_test.go index c0e287a90..cc07a3f4d 100644 --- a/v3/integration/lints/lints/init_first_test.go +++ b/v3/integration/lints/lints/init_first_test.go @@ -1,7 +1,7 @@ package lints /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/integration/lints/lints/not_committing_genTestCerts.go b/v3/integration/lints/lints/not_committing_genTestCerts.go index 9e0d72f01..2be507bb1 100644 --- a/v3/integration/lints/lints/not_committing_genTestCerts.go +++ b/v3/integration/lints/lints/not_committing_genTestCerts.go @@ -1,7 +1,7 @@ package lints /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -24,7 +24,7 @@ import ( "github.com/zmap/zlint/v3/integration/lints/lint" ) -const want = `aa8663b8cf8dffa06495878e2a5467786071e61ef260a7dec78738aff8ab7bb6` +const want = `6247a4fbe902f83e571ee5ff2e7d8443ac198db70318bbc9f6ee62f893e88a55` type NotCommittingGenTestCerts struct{} diff --git a/v3/integration/lints/lints/testdata/lint_initializeFirst.go b/v3/integration/lints/lints/testdata/lint_initializeFirst.go index 42316a109..a0cfc70e8 100644 --- a/v3/integration/lints/lints/testdata/lint_initializeFirst.go +++ b/v3/integration/lints/lints/testdata/lint_initializeFirst.go @@ -1,7 +1,7 @@ package testdata /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/integration/lints/lints/testdata/lint_initializeFirstNoFunctions.go b/v3/integration/lints/lints/testdata/lint_initializeFirstNoFunctions.go index 05e3ce8ef..6cfc90cf6 100644 --- a/v3/integration/lints/lints/testdata/lint_initializeFirstNoFunctions.go +++ b/v3/integration/lints/lints/testdata/lint_initializeFirstNoFunctions.go @@ -1,7 +1,7 @@ package testdata /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/integration/lints/lints/testdata/lint_initializeNotFirst.go b/v3/integration/lints/lints/testdata/lint_initializeNotFirst.go index 7d8942cfe..2d20d9c03 100644 --- a/v3/integration/lints/lints/testdata/lint_initializeNotFirst.go +++ b/v3/integration/lints/lints/testdata/lint_initializeNotFirst.go @@ -1,7 +1,7 @@ package testdata /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/integration/lints/main.go b/v3/integration/lints/main.go index 7e8f3bf76..dde95a6ca 100644 --- a/v3/integration/lints/main.go +++ b/v3/integration/lints/main.go @@ -1,7 +1,7 @@ package main /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/integration/lints/main_test.go b/v3/integration/lints/main_test.go index bf9910f18..5defd2d92 100644 --- a/v3/integration/lints/main_test.go +++ b/v3/integration/lints/main_test.go @@ -1,7 +1,7 @@ package main /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/integration/lints/testdata/lint_initFirst.go b/v3/integration/lints/testdata/lint_initFirst.go index 198d03b65..3ff5b5efe 100644 --- a/v3/integration/lints/testdata/lint_initFirst.go +++ b/v3/integration/lints/testdata/lint_initFirst.go @@ -1,7 +1,7 @@ package testdata /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/integration/lints/testdata/lint_initializeFirstNoFunctions.go b/v3/integration/lints/testdata/lint_initializeFirstNoFunctions.go index 05e3ce8ef..6cfc90cf6 100644 --- a/v3/integration/lints/testdata/lint_initializeFirstNoFunctions.go +++ b/v3/integration/lints/testdata/lint_initializeFirstNoFunctions.go @@ -1,7 +1,7 @@ package testdata /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/integration/lints/testdata/notAGolangFile.sh b/v3/integration/lints/testdata/notAGolangFile.sh index 950b3cc91..c10463cba 100644 --- a/v3/integration/lints/testdata/notAGolangFile.sh +++ b/v3/integration/lints/testdata/notAGolangFile.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# ZLint Copyright 2021 Regents of the University of Michigan +# ZLint Copyright 2023 Regents of the University of Michigan # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy diff --git a/v3/integration/package.go b/v3/integration/package.go index 1fc1cc9fd..3359626c0 100644 --- a/v3/integration/package.go +++ b/v3/integration/package.go @@ -1,4 +1,4 @@ -// +build integration +//go:build integration // the integration package contains zlint integration tests and supporting test data tools. package integration diff --git a/v3/integration/result.go b/v3/integration/result.go index 409b99a79..d2e9340f4 100644 --- a/v3/integration/result.go +++ b/v3/integration/result.go @@ -1,4 +1,4 @@ -// +build integration +//go:build integration package integration diff --git a/v3/lint/base.go b/v3/lint/base.go index c5afe8a31..6c6e5f514 100644 --- a/v3/lint/base.go +++ b/v3/lint/base.go @@ -1,7 +1,7 @@ package lint /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -15,23 +15,40 @@ package lint */ import ( - "fmt" "time" "github.com/zmap/zcrypto/x509" "github.com/zmap/zlint/v3/util" ) -// LintInterface is implemented by each Lint. -type LintInterface interface { //nolint:revive +// LintInterface is implemented by each certificate linter. +// +// @deprecated - use CertificateLintInterface instead. +type LintInterface = CertificateLintInterface + +// RevocationListLintInterface is implemented by each revocation list linter. +type RevocationListLintInterface interface { + // CheckApplies runs once per revocation list. It returns true if the + // Lint should run on the given certificate. If CheckApplies returns + // false, the Lint result is automatically set to NA without calling + // CheckEffective() or Run(). + CheckApplies(r *x509.RevocationList) bool + + // Execute is the body of the lint. It is called for every revocation list + // for which CheckApplies returns true. + Execute(r *x509.RevocationList) *LintResult +} + +// CertificateLintInterface is implemented by each certificate linter. +type CertificateLintInterface interface { // CheckApplies runs once per certificate. It returns true if the Lint should // run on the given certificate. If CheckApplies returns false, the Lint // result is automatically set to NA without calling CheckEffective() or // Run(). CheckApplies(c *x509.Certificate) bool - // Execute() is the body of the lint. It is called for every certificate for - // which CheckApplies() returns true. + // Execute is the body of the lint. It is called for every certificate for + // which CheckApplies returns true. Execute(c *x509.Certificate) *LintResult } @@ -40,10 +57,45 @@ type Configurable interface { Configure() interface{} } +// LintMetadata represents the metadata that are broadly associated across all types of lints. +// +// That is, all lints (irrespective of being a certificate lint, a CRL lint, and OCSP, etc.) +// have a Name, a Description, a Citation, and so on. +// +// In this way, this struct may be embedded in any linting type in order to maintain this +// data, while each individual linting type provides the behavior over this data. +type LintMetadata struct { + // Name is a lowercase underscore-separated string describing what a given + // Lint checks. If Name beings with "w", the lint MUST NOT return Error, only + // Warn. If Name beings with "e", the Lint MUST NOT return Warn, only Error. + Name string `json:"name,omitempty"` + + // A human-readable description of what the Lint checks. Usually copied + // directly from the CA/B Baseline Requirements or RFC 5280. + Description string `json:"description,omitempty"` + + // The source of the check, e.g. "BRs: 6.1.6" or "RFC 5280: 4.1.2.6". + Citation string `json:"citation,omitempty"` + + // Programmatic source of the check, BRs, RFC5280, or ZLint + Source LintSource `json:"source"` + + // Lints automatically returns NE for all certificates where CheckApplies() is + // true but with NotBefore < EffectiveDate. This check is bypassed if + // EffectiveDate is zero. Please see CheckEffective for more information. + EffectiveDate time.Time `json:"-"` + + // Lints automatically returns NE for all certificates where CheckApplies() is + // true but with NotBefore >= IneffectiveDate. This check is bypassed if + // IneffectiveDate is zero. Please see CheckEffective for more information. + IneffectiveDate time.Time `json:"-"` +} + // A Lint struct represents a single lint, e.g. // "e_basic_constraints_not_critical". It contains an implementation of LintInterface. +// +// @deprecated - use CertificateLint instead. type Lint struct { - // Name is a lowercase underscore-separated string describing what a given // Lint checks. If Name beings with "w", the lint MUST NOT return Error, only // Warn. If Name beings with "e", the Lint MUST NOT return Warn, only Error. @@ -68,24 +120,40 @@ type Lint struct { // true but with NotBefore >= IneffectiveDate. This check is bypassed if // IneffectiveDate is zero. Please see CheckEffective for more information. IneffectiveDate time.Time `json:"-"` - // A constructor which returns the implementation of the lint logic. Lint func() LintInterface `json:"-"` } +// toCertificateLint converts a Lint to a CertificateLint for backwards compatibility. +// +// @deprecated - Use CertificateLint directly. +func (l *Lint) toCertificateLint() *CertificateLint { + return &CertificateLint{ + LintMetadata: LintMetadata{ + Name: l.Name, + Description: l.Description, + Citation: l.Citation, + Source: l.Source, + EffectiveDate: l.EffectiveDate, + IneffectiveDate: l.IneffectiveDate, + }, + Lint: l.Lint, + } +} + // CheckEffective returns true if c was issued on or after the EffectiveDate // AND before (but not on) the Ineffective date. That is, CheckEffective // returns true if... // -// c.NotBefore in [EffectiveDate, IneffectiveDate) +// c.NotBefore in [EffectiveDate, IneffectiveDate) // // If EffectiveDate is zero, then only IneffectiveDate is checked. Conversely, // if IneffectiveDate is zero then only EffectiveDate is checked. If both EffectiveDate // and IneffectiveDate are zero then CheckEffective always returns true. +// +// @deprecated - use CertificateLint instead. func (l *Lint) CheckEffective(c *x509.Certificate) bool { - onOrAfterEffective := l.EffectiveDate.IsZero() || util.OnOrAfter(c.NotBefore, l.EffectiveDate) - strictlyBeforeIneffective := l.IneffectiveDate.IsZero() || c.NotBefore.Before(l.IneffectiveDate) - return onOrAfterEffective && strictlyBeforeIneffective + return l.toCertificateLint().CheckEffective(c) } // Execute runs the lint against a certificate. For lints that are @@ -97,34 +165,132 @@ func (l *Lint) CheckEffective(c *x509.Certificate) bool { // CheckApplies() // CheckEffective() // Execute() +// +// @deprecated - use CertificateLint instead func (l *Lint) Execute(cert *x509.Certificate, config Configuration) *LintResult { + return l.toCertificateLint().Execute(cert, config) +} + +// CertificateLint represents a single x509 certificate linter. +type CertificateLint struct { + // Metadata associated with the linter. + LintMetadata + // A constructor which returns the implementation of the linter. + Lint func() CertificateLintInterface `json:"-"` +} + +// toLint converts a CertificateLint to Lint for backwards compatibility +// +// @deprecated - use CertificateLint directly. +func (l *CertificateLint) toLint() *Lint { + return &Lint{ + Name: l.Name, + Description: l.Description, + Citation: l.Citation, + Source: l.Source, + EffectiveDate: l.EffectiveDate, + IneffectiveDate: l.IneffectiveDate, + Lint: l.Lint, + } +} + +// CheckEffective returns true if c was issued on or after the EffectiveDate +// AND before (but not on) the Ineffective date. That is, CheckEffective +// returns true if... +// +// c.NotBefore in [EffectiveDate, IneffectiveDate) +// +// If EffectiveDate is zero, then only IneffectiveDate is checked. Conversely, +// if IneffectiveDate is zero then only EffectiveDate is checked. If both EffectiveDate +// and IneffectiveDate are zero then CheckEffective always returns true. +func (l *CertificateLint) CheckEffective(c *x509.Certificate) bool { + return checkEffective(l.EffectiveDate, l.IneffectiveDate, c.NotBefore) +} + +// Execute runs the lint against a certificate. For lints that are +// sourced from the CA/B Forum Baseline Requirements, we first determine +// if they are within the purview of the BRs. See CertificateLintInterface +// for details about the other methods called. +// The ordering is as follows: +// +// Configure() ----> only if the lint implements Configurable +// CheckApplies() +// CheckEffective() +// Execute() +func (l *CertificateLint) Execute(cert *x509.Certificate, config Configuration) *LintResult { if l.Source == CABFBaselineRequirements && !util.IsServerAuthCert(cert) { return &LintResult{Status: NA} } - return l.execute(l.Lint(), cert, config) -} - -func (l *Lint) execute(lint LintInterface, cert *x509.Certificate, config Configuration) *LintResult { - configurable, ok := lint.(Configurable) - if ok { - err := config.Configure(configurable.Configure(), l.Name) - if err != nil { - details := fmt.Sprintf( - "A fatal error occurred while attempting to configure %s. Please visit the [%s] section of "+ - "your provided configuration and compare it with the output of `zlint -exampleConfig`. Error: %s", - l.Name, - l.Name, - err.Error()) - return &LintResult{ - Status: Fatal, - Details: details} - } + lint := l.Lint() + err := config.MaybeConfigure(lint, l.Name) + if err != nil { + return &LintResult{ + Status: Fatal, + Details: err.Error()} } if !lint.CheckApplies(cert) { return &LintResult{Status: NA} } else if !l.CheckEffective(cert) { return &LintResult{Status: NE} } - res := lint.Execute(cert) - return res + return lint.Execute(cert) +} + +// RevocationListLint represents a single x509 CRL linter. +type RevocationListLint struct { + // Metadata associated with the linter. + LintMetadata + // A constructor which returns the implementation of the linter. + Lint func() RevocationListLintInterface `json:"-"` +} + +// CheckEffective returns true if r was generated on or after the EffectiveDate +// AND before (but not on) the Ineffective date. That is, CheckEffective +// returns true if... +// +// r.ThisUpdate in [EffectiveDate, IneffectiveDate) +// +// If EffectiveDate is zero, then only IneffectiveDate is checked. Conversely, +// if IneffectiveDate is zero then only EffectiveDate is checked. If both EffectiveDate +// and IneffectiveDate are zero then CheckEffective always returns true. +func (l *RevocationListLint) CheckEffective(r *x509.RevocationList) bool { + return checkEffective(l.EffectiveDate, l.IneffectiveDate, r.ThisUpdate) +} + +// Execute runs the lint against a revocation list. +// The ordering is as follows: +// +// Configure() ----> only if the lint implements Configurable +// CheckApplies() +// CheckEffective() +// Execute() +func (l *RevocationListLint) Execute(r *x509.RevocationList, config Configuration) *LintResult { + lint := l.Lint() + err := config.MaybeConfigure(lint, l.Name) + if err != nil { + return &LintResult{ + Status: Fatal, + Details: err.Error()} + } + if !lint.CheckApplies(r) { + return &LintResult{Status: NA} + } else if !l.CheckEffective(r) { + return &LintResult{Status: NE} + } + return lint.Execute(r) +} + +// checkEffective returns true if target was generated on or after the EffectiveDate +// AND before (but not on) the Ineffective date. That is, CheckEffective +// returns true if... +// +// target in [effective, ineffective) +// +// If effective is zero, then only ineffective is checked. Conversely, +// if ineffective is zero then only effect is checked. If both effective +// and ineffective are zero then checkEffective always returns true. +func checkEffective(effective, ineffective, target time.Time) bool { + onOrAfterEffective := effective.IsZero() || util.OnOrAfter(target, effective) + strictlyBeforeIneffective := ineffective.IsZero() || target.Before(ineffective) + return onOrAfterEffective && strictlyBeforeIneffective } diff --git a/v3/lint/base_test.go b/v3/lint/base_test.go index 10ba29d45..84718ab01 100644 --- a/v3/lint/base_test.go +++ b/v3/lint/base_test.go @@ -1,7 +1,7 @@ package lint /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -166,3 +166,149 @@ func TestLint_CheckEffective(t *testing.T) { } } } + +// This test attempts to simplify the truth table by assigning dates to the +// single digit values 1 through 5, inclusive. As per the standard library, +// 0 is taken to be the null value. +// +// E.G. +// +// If a lint is effective between 2 and 5, then the revocation lists {2, 3, 4} return true. +// If a lint is effective between 0 and 4, then the revocation lists {0, 1, 2, 3} return true. +// If a lint is effective between 2 and 0, then the revocation lists {2, 3, 4, 5} return true. +// If a lint is effective between 0 and 0, then the revocation lists {0, 1, 2, 3, 4, 5} return true. +func TestLint_RevocationListLint_CheckEffective(t *testing.T) { + zero := time.Time{} + one := time.Unix(1, 0) + two := time.Unix(2, 0) + three := time.Unix(3, 0) + four := time.Unix(4, 0) + five := time.Unix(5, 0) + lZeroZero := RevocationListLint{LintMetadata: LintMetadata{ + Description: "ZeroZero", + EffectiveDate: zero, IneffectiveDate: zero}, + } + lTwoZero := RevocationListLint{LintMetadata: LintMetadata{ + Description: "TwoZero", + EffectiveDate: two, IneffectiveDate: zero}} + lZeroFour := RevocationListLint{LintMetadata: LintMetadata{ + Description: "ZeroFour", + EffectiveDate: zero, IneffectiveDate: four}} + lTwoFour := RevocationListLint{LintMetadata: LintMetadata{ + Description: "TwoFour", + EffectiveDate: two, IneffectiveDate: four}} + + type revocationList struct { + Description string + RevocationList *x509.RevocationList + } + + cZero := revocationList{ + Description: "cZero", + RevocationList: &x509.RevocationList{ThisUpdate: zero}, + } + cOne := revocationList{ + Description: "cOne", + RevocationList: &x509.RevocationList{ThisUpdate: one}, + } + cTwo := revocationList{ + Description: "cTwo", + RevocationList: &x509.RevocationList{ThisUpdate: two}, + } + cThree := revocationList{ + Description: "cThree", + RevocationList: &x509.RevocationList{ThisUpdate: three}, + } + cFour := revocationList{ + Description: "cFour", + RevocationList: &x509.RevocationList{ThisUpdate: four}, + } + cFive := revocationList{ + Description: "cFive", + RevocationList: &x509.RevocationList{ThisUpdate: five}, + } + + data := []struct { + Lint RevocationListLint + RevocationList revocationList + Want bool + }{ + /////////////// + { + Lint: lZeroZero, + RevocationList: cZero, + Want: true, + }, + { + Lint: lZeroZero, + RevocationList: cOne, + Want: true, + }, + ////////// + { + Lint: lTwoZero, + RevocationList: cOne, + Want: false, + }, + { + Lint: lTwoZero, + RevocationList: cTwo, + Want: true, + }, + { + Lint: lTwoZero, + RevocationList: cThree, + Want: true, + }, + /////////////// + { + Lint: lZeroFour, + RevocationList: cTwo, + Want: true, + }, + { + Lint: lZeroFour, + RevocationList: cFour, + Want: false, + }, + { + Lint: lZeroFour, + RevocationList: cFive, + Want: false, + }, + //////////// + { + Lint: lTwoFour, + RevocationList: cOne, + Want: false, + }, + { + Lint: lTwoFour, + RevocationList: cTwo, + Want: true, + }, + { + Lint: lTwoFour, + RevocationList: cThree, + Want: true, + }, + { + Lint: lTwoFour, + RevocationList: cFour, + Want: false, + }, + { + Lint: lTwoFour, + RevocationList: cFive, + Want: false, + }, + } + + for _, d := range data { + got := d.Lint.CheckEffective(d.RevocationList.RevocationList) + if got != d.Want { + t.Errorf("Lint %s, revocation list %s, got %v want %v", + d.Lint.Description, d.RevocationList.Description, got, d.Want) + } + } +} diff --git a/v3/lint/configuration.go b/v3/lint/configuration.go index d60f3aec7..0ace959be 100644 --- a/v3/lint/configuration.go +++ b/v3/lint/configuration.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -15,6 +15,7 @@ package lint import ( + "errors" "fmt" "io" "os" @@ -30,24 +31,42 @@ type Configuration struct { tree *toml.Tree } +// MaybeConfigure is a thin wrapper over Configure. +// +// If the provided lint object does not implement the Configurable interface +// then this function is a noop and nil is always returned. +// +// Otherwise, configuration of the provided lint is attempted. +func (c Configuration) MaybeConfigure(lint interface{}, namespace string) error { + configurable, ok := lint.(Configurable) + if !ok { + return nil + } + return c.Configure(configurable.Configure(), namespace) +} + // Configure attempts to deserialize the provided namespace into the provided empty interface. // // For example, let's say that the name of your lint is MyLint, then the configuration // file might look something like the following... // // ``` +// // [MyLint] // A = 1 // B = 2 +// // ``` // // Given this, our target struct may look like the following... // // ``` +// // type MytLint struct { // A int // B uint // } +// // ``` // // So deserializing into this struct would look like... @@ -56,7 +75,17 @@ type Configuration struct { // configuration.Configure(&myLint, myLint.Name()) // ``` func (c Configuration) Configure(lint interface{}, namespace string) error { - return c.deserializeConfigInto(lint, namespace) + err := c.deserializeConfigInto(lint, namespace) + if err != nil { + details := fmt.Sprintf( + "A fatal error occurred while attempting to configure %s. Please visit the [%s] section of "+ + "your provided configuration and compare it with the output of `zlint -exampleConfig`. Error: %s", + namespace, + namespace, + err.Error()) + err = errors.New(details) + } + return err } // NewConfig attempts to instantiate a configuration by consuming the contents of the provided reader. @@ -121,9 +150,11 @@ func NewEmptyConfig() Configuration { // And the following struct definition... // // ``` -// type SomeOtherLint { -// IsWebPKI bool `toml:"is_web_pki"` -// } +// +// type SomeOtherLint { +// IsWebPKI bool `toml:"is_web_pki"` +// } +// // ``` // // Then the invocation of this function should be... diff --git a/v3/lint/configuration_test.go b/v3/lint/configuration_test.go index e306d067e..cf7fb8ba3 100644 --- a/v3/lint/configuration_test.go +++ b/v3/lint/configuration_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -1079,6 +1079,7 @@ func TestStripGlobalsFromStructWithPrivates(t *testing.T) { A string B Global C int + //nolint:unused d int } test := Test{} diff --git a/v3/lint/global_configurations.go b/v3/lint/global_configurations.go index 826734ed3..0438fab33 100644 --- a/v3/lint/global_configurations.go +++ b/v3/lint/global_configurations.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lint/lint_lookup.go b/v3/lint/lint_lookup.go new file mode 100644 index 000000000..91d723606 --- /dev/null +++ b/v3/lint/lint_lookup.go @@ -0,0 +1,217 @@ +/* + * ZLint Copyright 2023 Regents of the University of Michigan + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package lint + +import ( + "sort" + "sync" +) + +var ( + // Verify that the interface holds + _ linterLookup = &linterLookupImpl{} + _ CertificateLinterLookup = &certificateLinterLookupImpl{} + _ RevocationListLinterLookup = &revocationListLinterLookupImpl{} +) + +type linterLookup interface { + // Names returns a list of all lint names that have been registered. + // The returned list is sorted by lexicographical ordering. + Names() []string + // Sources returns a SourceList of registered LintSources. The list is not + // sorted but can be sorted by the caller with sort.Sort() if required. + Sources() SourceList +} + +type linterLookupImpl struct { + sync.RWMutex + // lintNames is a sorted list of all registered lint names. It is + // equivalent to collecting the keys from lintsByName into a slice and sorting + // them lexicographically. + lintNames []string + sources map[LintSource]struct{} +} + +// Names returns the list of lint names registered for the lint type T. +func (lookup *linterLookupImpl) Names() []string { + lookup.RLock() + defer lookup.RUnlock() + return lookup.lintNames +} + +// Sources returns a SourceList of registered LintSources. The list is not +// sorted but can be sorted by the caller with sort.Sort() if required. +func (lookup *linterLookupImpl) Sources() SourceList { + lookup.RLock() + defer lookup.RUnlock() + var list SourceList + for lintSource := range lookup.sources { + list = append(list, lintSource) + } + return list +} + +func newLinterLookup() linterLookupImpl { + return linterLookupImpl{ + lintNames: make([]string, 0), + sources: map[LintSource]struct{}{}, + } +} + +// CertificateLinterLookup is an interface describing how registered certificate lints can be looked up. +type CertificateLinterLookup interface { + linterLookup + // ByName returns a pointer to the registered lint with the given name, or nil + // if there is no such lint registered in the registry. + ByName(name string) *CertificateLint + // BySource returns a list of registered lints that have the same LintSource as + // provided (or nil if there were no such lints in the registry). + BySource(s LintSource) []*CertificateLint + // Lints returns a list of all the lints registered. + Lints() []*CertificateLint +} + +type certificateLinterLookupImpl struct { + linterLookupImpl + // lintsByName is a map of all registered lints by name. + lintsByName map[string]*CertificateLint + lintsBySource map[LintSource][]*CertificateLint + lints []*CertificateLint +} + +// ByName returns the Lint previously registered under the given name with +// Register, or nil if no matching lint name has been registered. +func (lookup *certificateLinterLookupImpl) ByName(name string) *CertificateLint { + lookup.RLock() + defer lookup.RUnlock() + return lookup.lintsByName[name] +} + +// BySource returns a list of registered lints that have the same LintSource as +// provided (or nil if there were no such lints). +func (lookup *certificateLinterLookupImpl) BySource(s LintSource) []*CertificateLint { + lookup.RLock() + defer lookup.RUnlock() + return lookup.lintsBySource[s] +} + +// Lints returns a list of registered lints. +func (lookup *certificateLinterLookupImpl) Lints() []*CertificateLint { + lookup.RLock() + defer lookup.RUnlock() + return lookup.lints +} + +func (lookup *certificateLinterLookupImpl) register(lint *CertificateLint, name string, source LintSource) error { + if name == "" { + return errEmptyName + } + lookup.RLock() + defer lookup.RUnlock() + + if existing := lookup.lintsByName[name]; existing != nil { + return &errDuplicateName{name} + } + lookup.lints = append(lookup.lints, lint) + lookup.lintNames = append(lookup.lintNames, name) + lookup.lintsByName[name] = lint + + lookup.sources[source] = struct{}{} + lookup.lintsBySource[source] = append(lookup.lintsBySource[source], lint) + sort.Strings(lookup.lintNames) + return nil +} + +func newCertificateLintLookup() certificateLinterLookupImpl { + return certificateLinterLookupImpl{ + linterLookupImpl: newLinterLookup(), + lintsByName: make(map[string]*CertificateLint), + lintsBySource: make(map[LintSource][]*CertificateLint), + lints: make([]*CertificateLint, 0), + } +} + +// RevocationListLinterLookup is an interface describing how registered revocation list lints can be looked up. +type RevocationListLinterLookup interface { + linterLookup + // ByName returns a pointer to the registered lint with the given name, or nil + // if there is no such lint registered in the registry. + ByName(name string) *RevocationListLint + // BySource returns a list of registered lints that have the same LintSource as + // provided (or nil if there were no such lints in the registry). + BySource(s LintSource) []*RevocationListLint + // Lints returns a list of all the lints registered. + Lints() []*RevocationListLint +} + +type revocationListLinterLookupImpl struct { + linterLookupImpl + // lintsByName is a map of all registered lints by name. + lintsByName map[string]*RevocationListLint + lintsBySource map[LintSource][]*RevocationListLint + lints []*RevocationListLint +} + +// ByName returns the Lint previously registered under the given name with +// Register, or nil if no matching lint name has been registered. +func (lookup *revocationListLinterLookupImpl) ByName(name string) *RevocationListLint { + lookup.RLock() + defer lookup.RUnlock() + return lookup.lintsByName[name] +} + +// BySource returns a list of registered lints that have the same LintSource as +// provided (or nil if there were no such lints). +func (lookup *revocationListLinterLookupImpl) BySource(s LintSource) []*RevocationListLint { + lookup.RLock() + defer lookup.RUnlock() + return lookup.lintsBySource[s] +} + +// Lints returns a list of registered lints. +func (lookup *revocationListLinterLookupImpl) Lints() []*RevocationListLint { + lookup.RLock() + defer lookup.RUnlock() + return lookup.lints +} + +func (lookup *revocationListLinterLookupImpl) register(lint *RevocationListLint, name string, source LintSource) error { + if name == "" { + return errEmptyName + } + lookup.RLock() + defer lookup.RUnlock() + + if existing := lookup.lintsByName[name]; existing != nil { + return &errDuplicateName{name} + } + lookup.lints = append(lookup.lints, lint) + lookup.lintNames = append(lookup.lintNames, name) + lookup.lintsByName[name] = lint + + lookup.sources[source] = struct{}{} + lookup.lintsBySource[source] = append(lookup.lintsBySource[source], lint) + sort.Strings(lookup.lintNames) + return nil +} + +func newRevocationListLintLookup() revocationListLinterLookupImpl { + return revocationListLinterLookupImpl{ + linterLookupImpl: newLinterLookup(), + lintsByName: make(map[string]*RevocationListLint), + lintsBySource: make(map[LintSource][]*RevocationListLint), + lints: make([]*RevocationListLint, 0), + } +} diff --git a/v3/lint/profile.go b/v3/lint/profile.go new file mode 100644 index 000000000..d94c94c03 --- /dev/null +++ b/v3/lint/profile.go @@ -0,0 +1,59 @@ +/* + * ZLint Copyright 2023 Regents of the University of Michigan + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package lint + +type Profile struct { + // Name is a lowercase underscore-separated string describing what a given + // profile aggregates. + Name string `json:"name"` + + // A human-readable description of what the Profile checks. Usually copied + // directly from the CA/B Baseline Requirements, RFC 5280, or other published + // document. + Description string `json:"description,omitempty"` + + // The source of the check, e.g. "BRs: 6.1.6" or "RFC 5280: 4.1.2.6". + Citation string `json:"citation,omitempty"` + + // Programmatic source of the check, BRs, RFC5280, or ZLint + Source LintSource `json:"source,omitempty"` + + // The names of the lints that compromise this profile. These names + // MUST be the exact same found within Lint.Name. + LintNames []string `json:"lints"` +} + +var profiles = map[string]Profile{} + +// RegisterProfile registered the provided profile into the global profile mapping. +func RegisterProfile(profile Profile) { + profiles[profile.Name] = profile +} + +// GetProfile returns the Profile for which the provided name matches Profile.Name. +// If no such Profile exists then the `ok` returns false, else true. +func GetProfile(name string) (profile Profile, ok bool) { + profile, ok = profiles[name] + return profile, ok +} + +// AllProfiles returns a slice of all Profiles currently registered globally. +func AllProfiles() []Profile { + p := make([]Profile, 0) + for _, profile := range profiles { + p = append(p, profile) + } + return p +} diff --git a/v3/lint/registration.go b/v3/lint/registration.go index 2d6d96939..9e77ebf8c 100644 --- a/v3/lint/registration.go +++ b/v3/lint/registration.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -23,7 +23,6 @@ import ( "regexp" "sort" "strings" - "sync" "github.com/pelletier/go-toml" ) @@ -56,12 +55,21 @@ type FilterOptions struct { // Empty returns true if the FilterOptions is empty and does not specify any // elements to filter by. -func (opts FilterOptions) Empty() bool { - return opts.NameFilter == nil && - len(opts.IncludeNames) == 0 && - len(opts.ExcludeNames) == 0 && - len(opts.IncludeSources) == 0 && - len(opts.ExcludeSources) == 0 +func (f FilterOptions) Empty() bool { + return f.NameFilter == nil && + len(f.IncludeNames) == 0 && + len(f.ExcludeNames) == 0 && + len(f.IncludeSources) == 0 && + len(f.ExcludeSources) == 0 +} + +// AddProfile takes in a Profile and appends all Profile.LintNames +// into FilterOptions.IncludeNames. +func (f *FilterOptions) AddProfile(profile Profile) { + if f.IncludeNames == nil { + f.IncludeNames = make([]string, 0) + } + f.IncludeNames = append(f.IncludeNames, profile.LintNames...) } // Registry is an interface describing a collection of registered lints. @@ -71,7 +79,7 @@ func (opts FilterOptions) Empty() bool { // Typically users will interact with the global Registry returned by // GlobalRegistry(), or a filtered Registry created by applying FilterOptions to // the GlobalRegistry()'s Filter function. -type Registry interface { +type Registry interface { //nolint: interfacebloat // Somewhat unavoidable here. // Names returns a list of all of the lint names that have been registered // in string sorted order. Names() []string @@ -82,9 +90,13 @@ type Registry interface { DefaultConfiguration() ([]byte, error) // ByName returns a pointer to the registered lint with the given name, or nil // if there is no such lint registered in the registry. + // + // @deprecated - use CertificateLints instead. ByName(name string) *Lint // BySource returns a list of registered lints that have the same LintSource as // provided (or nil if there were no such lints in the registry). + // + // @deprecated - use CertificateLints instead. BySource(s LintSource) []*Lint // Filter returns a new Registry containing only lints that match the // FilterOptions criteria. @@ -94,22 +106,18 @@ type Registry interface { WriteJSON(w io.Writer) SetConfiguration(config Configuration) GetConfiguration() Configuration + // CertificateLints returns an interface used to lookup CertificateLints. + CertificateLints() CertificateLinterLookup + // RevocationListLitns returns an interface used to lookup RevocationListLints. + RevocationListLints() RevocationListLinterLookup } // registryImpl implements the Registry interface to provide a global collection // of Lints that have been registered. type registryImpl struct { - sync.RWMutex - // lintsByName is a map of all registered lints by name. - lintsByName map[string]*Lint - // lintNames is a sorted list of all of the registered lint names. It is - // equivalent to collecting the keys from lintsByName into a slice and sorting - // them lexicographically. - lintNames []string - // lintsBySource is a map of all registered lints by source category. Lints - // are added to the lintsBySource map by RegisterLint. - lintsBySource map[LintSource][]*Lint - configuration Configuration + certificateLints certificateLinterLookupImpl + revocationListLints revocationListLinterLookupImpl + configuration Configuration } var ( @@ -135,67 +143,106 @@ func (e errDuplicateName) Error() string { e.lintName) } -// register adds the provided lint to the Registry. If initialize is true then -// the lint's Initialize() function will be called before registering the lint. +// registerLint registers a lint to the registry. +// +// @deprecated - use registerCertificateLint instead. +func (r *registryImpl) register(l *Lint) error { + if l == nil { + return errNilLint + } + if l.Lint() == nil { + return errNilLintPtr + } + + return r.registerCertificateLint(l.toCertificateLint()) +} + +// registerCertificateLint registers a CertificateLint to the registry. // // An error is returned if the lint or lint's Lint pointer is nil, if the Lint // has an empty Name or if the Name was previously registered. -func (r *registryImpl) register(l *Lint) error { +func (r *registryImpl) registerCertificateLint(l *CertificateLint) error { if l == nil { return errNilLint } if l.Lint() == nil { return errNilLintPtr } - if l.Name == "" { - return errEmptyName + return r.certificateLints.register(l, l.Name, l.Source) +} + +// registerCertificateLint registers a CertificateLint to the registry. +// +// An error is returned if the lint or lint's Lint pointer is nil, if the Lint +// has an empty Name or if the Name was previously registered. +func (r *registryImpl) registerRevocationListLint(l *RevocationListLint) error { + if l == nil { + return errNilLint } - if existing := r.ByName(l.Name); existing != nil { - return &errDuplicateName{l.Name} + if l.Lint() == nil { + return errNilLintPtr } - r.Lock() - defer r.Unlock() - r.lintNames = append(r.lintNames, l.Name) - r.lintsByName[l.Name] = l - r.lintsBySource[l.Source] = append(r.lintsBySource[l.Source], l) - sort.Strings(r.lintNames) - return nil + return r.revocationListLints.register(l, l.Name, l.Source) } // ByName returns the Lint previously registered under the given name with // Register, or nil if no matching lint name has been registered. +// +// @deprecated - use r.CertificateLints.ByName() instead. func (r *registryImpl) ByName(name string) *Lint { - r.RLock() - defer r.RUnlock() - return r.lintsByName[name] + certificateLint := r.certificateLints.ByName(name) + if certificateLint == nil { + return nil + } + + return certificateLint.toLint() } // Names returns a list of all of the lint names that have been registered // in string sorted order. func (r *registryImpl) Names() []string { - r.RLock() - defer r.RUnlock() - return r.lintNames + var names []string + names = append(names, r.certificateLints.lintNames...) + names = append(names, r.revocationListLints.lintNames...) + + sort.Strings(names) + return names } // BySource returns a list of registered lints that have the same LintSource as // provided (or nil if there were no such lints). +// +// @deprecated use r.CertificateLints().BySource() instead. func (r *registryImpl) BySource(s LintSource) []*Lint { - r.RLock() - defer r.RUnlock() - return r.lintsBySource[s] + var lints []*Lint + + certificateLints := r.certificateLints.BySource(s) + for _, l := range certificateLints { + if l == nil { + continue + } + lints = append(lints, l.toLint()) + } + + return lints } // Sources returns a SourceList of registered LintSources. The list is not // sorted but can be sorted by the caller with sort.Sort() if required. func (r *registryImpl) Sources() SourceList { - r.RLock() - defer r.RUnlock() - var results SourceList - for k := range r.lintsBySource { - results = append(results, k) - } - return results + var sources SourceList + + sources = append(sources, r.certificateLints.Sources()...) + sources = append(sources, r.revocationListLints.Sources()...) + return sources +} + +func (r *registryImpl) CertificateLints() CertificateLinterLookup { + return &r.certificateLints +} + +func (r *registryImpl) RevocationListLints() RevocationListLinterLookup { + return &r.revocationListLints } // lintNamesToMap converts a list of lit names into a bool hashmap useful for @@ -209,10 +256,15 @@ func (r *registryImpl) lintNamesToMap(names []string) (map[string]bool, error) { namesMap := make(map[string]bool, len(names)) for _, n := range names { n = strings.TrimSpace(n) - if l := r.ByName(n); l == nil { - return nil, fmt.Errorf("unknown lint name %q", n) + if l := r.certificateLints.ByName(n); l != nil { + namesMap[n] = true + continue } - namesMap[n] = true + if l := r.revocationListLints.ByName(n); l != nil { + namesMap[n] = true + continue + } + return nil, fmt.Errorf("unknown lint name %q", n) } return namesMap, nil } @@ -232,7 +284,9 @@ func sourceListToMap(sources SourceList) map[LintSource]bool { // criteria included. // // FilterOptions are applied in the following order of precedence: -// ExcludeSources > IncludeSources > NameFilter > ExcludeNames > IncludeNames +// +// ExcludeSources > IncludeSources > NameFilter > ExcludeNames > IncludeNames +// //nolint:cyclop func (r *registryImpl) Filter(opts FilterOptions) (Registry, error) { // If there's no filtering to be done, return the existing Registry. @@ -262,12 +316,25 @@ func (r *registryImpl) Filter(opts FilterOptions) (Registry, error) { } for _, name := range r.Names() { - l := r.ByName(name) + var meta LintMetadata + var registerFunc func() error - if sourceExcludes != nil && sourceExcludes[l.Source] { + if l := r.certificateLints.ByName(name); l != nil { + meta = l.LintMetadata + registerFunc = func() error { + return filteredRegistry.registerCertificateLint(l) + } + } else if l := r.revocationListLints.ByName(name); l != nil { + meta = l.LintMetadata + registerFunc = func() error { + return filteredRegistry.registerRevocationListLint(l) + } + } + + if sourceExcludes != nil && sourceExcludes[meta.Source] { continue } - if sourceIncludes != nil && !sourceIncludes[l.Source] { + if sourceIncludes != nil && !sourceIncludes[meta.Source] { continue } if opts.NameFilter != nil && !opts.NameFilter.MatchString(name) { @@ -280,9 +347,7 @@ func (r *registryImpl) Filter(opts FilterOptions) (Registry, error) { continue } - // when adding lints to a filtered registry we do not want Initialize() to - // be called a second time, so provide false as the initialize argument. - if err := filteredRegistry.register(l); err != nil { + if err := registerFunc(); err != nil { return nil, err } } @@ -295,9 +360,14 @@ func (r *registryImpl) Filter(opts FilterOptions) (Registry, error) { func (r *registryImpl) WriteJSON(w io.Writer) { enc := json.NewEncoder(w) enc.SetEscapeHTML(false) - for _, name := range r.Names() { + for _, lint := range r.certificateLints.Lints() { //nolint:errchkjson - _ = enc.Encode(r.ByName(name)) + _ = enc.Encode(lint) + } + + for _, lint := range r.revocationListLints.Lints() { + //nolint:errchkjson + _ = enc.Encode(lint) } } @@ -322,13 +392,22 @@ func (r *registryImpl) DefaultConfiguration() ([]byte, error) { // for the sake of making unit testing easier. func (r *registryImpl) defaultConfiguration(globals []GlobalConfiguration) ([]byte, error) { configurables := map[string]interface{}{} - for name, lint := range r.lintsByName { + for name, lint := range r.certificateLints.lintsByName { + switch configurable := lint.Lint().(type) { + case Configurable: + configurables[name] = stripGlobalsFromExample(configurable.Configure()) + default: + } + } + + for name, lint := range r.revocationListLints.lintsByName { switch configurable := lint.Lint().(type) { case Configurable: configurables[name] = stripGlobalsFromExample(configurable.Configure()) default: } } + for _, config := range globals { switch config.(type) { case *Global: @@ -360,11 +439,12 @@ func (r *registryImpl) defaultConfiguration(globals []GlobalConfiguration) ([]by // NewRegistry constructs a Registry implementation that can be used to register // lints. +// //nolint:revive func NewRegistry() *registryImpl { registry := ®istryImpl{ - lintsByName: make(map[string]*Lint), - lintsBySource: make(map[LintSource][]*Lint), + certificateLints: newCertificateLintLookup(), + revocationListLints: newRevocationListLintLookup(), } registry.SetConfiguration(NewEmptyConfig()) return registry @@ -377,18 +457,41 @@ var globalRegistry = NewRegistry() // RegisterLint must be called once for each lint to be executed. Normally, // RegisterLint is called from the Go init() function of a lint implementation. // -// RegsterLint will call l.Lint's Initialize() function as part of the -// registration process. -// // IMPORTANT: RegisterLint will panic if given a nil lint, or a lint with a nil -// Lint pointer, or if the lint's Initialize function errors, or if the lint -// name matches a previously registered lint's name. These conditions all -// indicate a bug that should be addressed by a developer. +// Lint pointer, or if the lint name matches a previously registered lint's +// name. These conditions all indicate a bug that should be addressed by a +// developer. +// +// @deprecated - use RegisterCertificateLint instead. func RegisterLint(l *Lint) { + RegisterCertificateLint(l.toCertificateLint()) +} + +// RegisterCertificateLint must be called once for each CertificateLint to be executed. +// Normally, RegisterCertificateLint is called from the Go init() function of a lint implementation. +// +// IMPORTANT: RegisterCertificateLint will panic if given a nil lint, or a lint +// with a nil Lint pointer, or if the lint name matches a previously registered +// lint's name. These conditions all indicate a bug that should be addressed by +// a developer. +func RegisterCertificateLint(l *CertificateLint) { + if err := globalRegistry.registerCertificateLint(l); err != nil { + panic(fmt.Sprintf("RegisterLint error: %v\n", err.Error())) + } +} + +// RegisterRevocationListLint must be called once for each RevocationListLint to be executed. +// Normally, RegisterRevocationListLint is called from the Go init() function of a lint implementation. +// +// IMPORTANT: RegisterRevocationListLint will panic if given a nil lint, or a +// lint with a nil Lint pointer, or if the lint name matches a previously +// registered lint's name. These conditions all indicate a bug that should be +// addressed by a developer. +func RegisterRevocationListLint(l *RevocationListLint) { // RegisterLint always sets initialize to true. It's assumed this is called by // the package init() functions and therefore must be doing the first // initialization of a lint. - if err := globalRegistry.register(l); err != nil { + if err := globalRegistry.registerRevocationListLint(l); err != nil { panic(fmt.Sprintf("RegisterLint error: %v\n", err.Error())) } } diff --git a/v3/lint/registration_test.go b/v3/lint/registration_test.go index 615afb319..02ad43482 100644 --- a/v3/lint/registration_test.go +++ b/v3/lint/registration_test.go @@ -1,7 +1,7 @@ package lint /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -23,28 +23,27 @@ import ( "github.com/zmap/zcrypto/x509" ) -func TestAllLintsHaveNameDescriptionSource(t *testing.T) { - for _, name := range GlobalRegistry().Names() { - lint := GlobalRegistry().ByName(name) - if lint.Name == "" { - t.Errorf("lint %s has empty name", name) +func TestAllLintsHaveValidMeta(t *testing.T) { + checkMeta := func(meta LintMetadata) { + if meta.Name == "" { + t.Errorf("lint %s has empty name", meta.Name) } - if lint.Description == "" { - t.Errorf("lint %s has empty description", name) + if meta.Description == "" { + t.Errorf("lint %s has empty description", meta.Name) } - if lint.Citation == "" { - t.Errorf("lint %s has empty citation", name) + if meta.Citation == "" { + t.Errorf("lint %s has empty citation", meta.Name) } - } -} - -func TestAllLintsHaveSource(t *testing.T) { - for _, name := range globalRegistry.Names() { - lint := GlobalRegistry().ByName(name) - if lint.Source == UnknownLintSource { - t.Errorf("lint %s has unknown source", name) + if meta.Source == UnknownLintSource { + t.Errorf("lint %s has unknown source", meta.Name) } } + for _, lint := range globalRegistry.certificateLints.lints { + checkMeta(lint.LintMetadata) + } + for _, lint := range globalRegistry.revocationListLints.lints { + checkMeta(lint.LintMetadata) + } } func TestFilterOptionsEmpty(t *testing.T) { @@ -68,6 +67,16 @@ func (m mockLint) Execute(c *x509.Certificate) *LintResult { return nil } +type mockRevocationListLint struct{} + +func (m mockRevocationListLint) CheckApplies(c *x509.RevocationList) bool { + return true +} + +func (m mockRevocationListLint) Execute(c *x509.RevocationList) *LintResult { + return nil +} + func TestRegister(t *testing.T) { egLint := &Lint{ Name: "mockLint", @@ -152,6 +161,117 @@ func TestRegister(t *testing.T) { } } +func TestRegistryLookupEngine(t *testing.T) { + expectedNames := []string{ + "A-mockCertificateLint", + "B-mockLint", + "C-mockRevocationListLint", + } + + expectedSources := []LintSource{ + Community, + RFC3279, + RFC8813, + } + + egCertificateLint := &CertificateLint{ + LintMetadata: LintMetadata{ + Name: "A-mockCertificateLint", + Source: Community, + }, + Lint: func() CertificateLintInterface { return &mockLint{} }, + } + + egLint := &Lint{ + Name: "B-mockLint", + Lint: func() LintInterface { return &mockLint{} }, + Source: RFC8813, // arbitrary value for testing + } + + egRevocationListLint := &RevocationListLint{ + LintMetadata: LintMetadata{ + Name: "C-mockRevocationListLint", + Source: RFC3279, // arbitrary value for testing + }, + Lint: func() RevocationListLintInterface { return &mockRevocationListLint{} }, + } + + registry := NewRegistry() + if err := registry.register(egLint); err != nil { + t.Fatalf("registry.register failed: %v", err) + } + if err := registry.registerCertificateLint(egCertificateLint); err != nil { + t.Fatalf("registry.registerCertificateLint failed: %v", err) + } + if err := registry.registerRevocationListLint(egRevocationListLint); err != nil { + t.Fatalf("registry.registerRevocationListLint failed: %v", err) + } + t.Run("lint names are correct and sorted", func(t *testing.T) { + if !reflect.DeepEqual(registry.Names(), expectedNames) { + t.Fatalf("expected lint names: %v, got: %v", registry.Names(), expectedNames) + } + }) + + t.Run("sources are valid", func(t *testing.T) { + sources := registry.Sources() + sort.Sort(sources) + for i, source := range sources { + if source != expectedSources[i] { + t.Fatalf("expected source names: %v, got: %v", sources, expectedSources) + } + } + }) + + t.Run("stores contain correct lints", func(t *testing.T) { + testCases := []struct { + name string + deprecatedStore bool + certificateStore bool + revocationListStore bool + }{ + { + name: "A-mockCertificateLint", + deprecatedStore: true, + certificateStore: true, + revocationListStore: false, + }, + { + name: "B-mockLint", + deprecatedStore: true, + certificateStore: true, + revocationListStore: false, + }, + { + name: "C-mockRevocationListLint", + deprecatedStore: false, + certificateStore: false, + revocationListStore: true, + }, + } + + for _, tc := range testCases { + { + lint := registry.ByName(tc.name) + if (lint != nil) != tc.deprecatedStore { + t.Fatalf("expected lint %s to be %t (true = present, false = absent) in deprecated store", tc.name, tc.deprecatedStore) + } + } + { + lint := registry.CertificateLints().ByName(tc.name) + if (lint != nil) != tc.certificateStore { + t.Fatalf("expected lint %s to be %t (true = present, false = absent) in certificate store", tc.name, tc.certificateStore) + } + } + { + lint := registry.RevocationListLints().ByName(tc.name) + if (lint != nil) != tc.revocationListStore { + t.Fatalf("expected lint %s to be %t (true = present, false = absent) in revocationList store", tc.name, tc.revocationListStore) + } + } + } + }) +} + func TestRegistryFilter(t *testing.T) { testLint := func(name string, source LintSource) *Lint { return &Lint{ diff --git a/v3/lint/result.go b/v3/lint/result.go index 726d5743f..ca3d6db0e 100644 --- a/v3/lint/result.go +++ b/v3/lint/result.go @@ -1,7 +1,7 @@ package lint /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -21,6 +21,7 @@ import ( ) // LintStatus is an enum returned by lints inside of a LintResult. +// //nolint:revive type LintStatus int diff --git a/v3/lint/source.go b/v3/lint/source.go index b978ea8b6..c1808c063 100644 --- a/v3/lint/source.go +++ b/v3/lint/source.go @@ -7,7 +7,7 @@ import ( ) /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -22,6 +22,7 @@ import ( // LintSource is a type representing a known lint source that lints cite // requirements from. +// //nolint:revive type LintSource string diff --git a/v3/lint/source_test.go b/v3/lint/source_test.go index 75827f28c..4f93e0a04 100644 --- a/v3/lint/source_test.go +++ b/v3/lint/source_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -24,6 +24,7 @@ import ( // TestLintSourceMarshal tests that a LintSource can be correctly marshaled and // unmarshalled. func TestLintSourceMarshal(t *testing.T) { + //nolint:musttag throwAway := struct { Source LintSource }{ diff --git a/v3/lints/apple/lint_ct_sct_policy_count_unsatisfied.go b/v3/lints/apple/lint_ct_sct_policy_count_unsatisfied.go index 37f4dc041..0f2eb822b 100644 --- a/v3/lints/apple/lint_ct_sct_policy_count_unsatisfied.go +++ b/v3/lints/apple/lint_ct_sct_policy_count_unsatisfied.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/apple/lint_ct_sct_policy_count_unsatisfied_test.go b/v3/lints/apple/lint_ct_sct_policy_count_unsatisfied_test.go index 60451649c..567adc007 100644 --- a/v3/lints/apple/lint_ct_sct_policy_count_unsatisfied_test.go +++ b/v3/lints/apple/lint_ct_sct_policy_count_unsatisfied_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/apple/lint_e_server_cert_valid_time_longer_than_398_days.go b/v3/lints/apple/lint_e_server_cert_valid_time_longer_than_398_days.go index 0902bb176..b953c1b74 100644 --- a/v3/lints/apple/lint_e_server_cert_valid_time_longer_than_398_days.go +++ b/v3/lints/apple/lint_e_server_cert_valid_time_longer_than_398_days.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/apple/lint_w_server_cert_valid_time_longer_than_397_days.go b/v3/lints/apple/lint_w_server_cert_valid_time_longer_than_397_days.go index c80c185ba..532b84683 100644 --- a/v3/lints/apple/lint_w_server_cert_valid_time_longer_than_397_days.go +++ b/v3/lints/apple/lint_w_server_cert_valid_time_longer_than_397_days.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/apple/time.go b/v3/lints/apple/time.go index cd56e8790..2b4e632f2 100644 --- a/v3/lints/apple/time.go +++ b/v3/lints/apple/time.go @@ -4,8 +4,9 @@ import "time" // In the context of a root policy update on trusted certificate lifetimes[0] // Apple provided an unambiguous definition for the length of a day: -// "398 days is measured with a day being equal to 86,400 seconds. Any time -// greater than this indicates an additional day of validity." +// +// "398 days is measured with a day being equal to 86,400 seconds. Any time +// greater than this indicates an additional day of validity." // // We provide that value as a constant here for lints to use. // diff --git a/v3/lints/cabf_br/lint_ca_common_name_missing.go b/v3/lints/cabf_br/lint_ca_common_name_missing.go index cded5cb8c..4a350a245 100644 --- a/v3/lints/cabf_br/lint_ca_common_name_missing.go +++ b/v3/lints/cabf_br/lint_ca_common_name_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_common_name_missing_test.go b/v3/lints/cabf_br/lint_ca_common_name_missing_test.go index 71391cb25..b832329e2 100644 --- a/v3/lints/cabf_br/lint_ca_common_name_missing_test.go +++ b/v3/lints/cabf_br/lint_ca_common_name_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_country_name_invalid.go b/v3/lints/cabf_br/lint_ca_country_name_invalid.go index ba34eea9d..0c1ce0534 100644 --- a/v3/lints/cabf_br/lint_ca_country_name_invalid.go +++ b/v3/lints/cabf_br/lint_ca_country_name_invalid.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_country_name_invalid_test.go b/v3/lints/cabf_br/lint_ca_country_name_invalid_test.go index bdd158ba9..e8959bb30 100644 --- a/v3/lints/cabf_br/lint_ca_country_name_invalid_test.go +++ b/v3/lints/cabf_br/lint_ca_country_name_invalid_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_country_name_missing.go b/v3/lints/cabf_br/lint_ca_country_name_missing.go index a0a112b2b..a5fdb48f2 100644 --- a/v3/lints/cabf_br/lint_ca_country_name_missing.go +++ b/v3/lints/cabf_br/lint_ca_country_name_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_country_name_missing_test.go b/v3/lints/cabf_br/lint_ca_country_name_missing_test.go index 90d17fd98..318caca96 100644 --- a/v3/lints/cabf_br/lint_ca_country_name_missing_test.go +++ b/v3/lints/cabf_br/lint_ca_country_name_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_crl_sign_not_set.go b/v3/lints/cabf_br/lint_ca_crl_sign_not_set.go index 863a7ea40..fac3e3e90 100644 --- a/v3/lints/cabf_br/lint_ca_crl_sign_not_set.go +++ b/v3/lints/cabf_br/lint_ca_crl_sign_not_set.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_crl_sign_not_set_test.go b/v3/lints/cabf_br/lint_ca_crl_sign_not_set_test.go index e9bcbafbb..ca3e2c5b8 100644 --- a/v3/lints/cabf_br/lint_ca_crl_sign_not_set_test.go +++ b/v3/lints/cabf_br/lint_ca_crl_sign_not_set_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_digital_signature_not_set.go b/v3/lints/cabf_br/lint_ca_digital_signature_not_set.go index 64fc07c28..f76531643 100644 --- a/v3/lints/cabf_br/lint_ca_digital_signature_not_set.go +++ b/v3/lints/cabf_br/lint_ca_digital_signature_not_set.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_digital_signature_not_set_test.go b/v3/lints/cabf_br/lint_ca_digital_signature_not_set_test.go index d4f26d525..2b3d77f2b 100644 --- a/v3/lints/cabf_br/lint_ca_digital_signature_not_set_test.go +++ b/v3/lints/cabf_br/lint_ca_digital_signature_not_set_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_is_ca.go b/v3/lints/cabf_br/lint_ca_is_ca.go index 5bec46cec..170beb261 100644 --- a/v3/lints/cabf_br/lint_ca_is_ca.go +++ b/v3/lints/cabf_br/lint_ca_is_ca.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_is_ca_test.go b/v3/lints/cabf_br/lint_ca_is_ca_test.go index 662683ba1..43a8c9117 100644 --- a/v3/lints/cabf_br/lint_ca_is_ca_test.go +++ b/v3/lints/cabf_br/lint_ca_is_ca_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_key_cert_sign_not_set.go b/v3/lints/cabf_br/lint_ca_key_cert_sign_not_set.go index 1861e3a41..9fe92b638 100644 --- a/v3/lints/cabf_br/lint_ca_key_cert_sign_not_set.go +++ b/v3/lints/cabf_br/lint_ca_key_cert_sign_not_set.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_key_cert_sign_not_set_test.go b/v3/lints/cabf_br/lint_ca_key_cert_sign_not_set_test.go index 9ea94b653..24934ffa8 100644 --- a/v3/lints/cabf_br/lint_ca_key_cert_sign_not_set_test.go +++ b/v3/lints/cabf_br/lint_ca_key_cert_sign_not_set_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_key_usage_missing.go b/v3/lints/cabf_br/lint_ca_key_usage_missing.go index 551a9a831..84e0a9db5 100644 --- a/v3/lints/cabf_br/lint_ca_key_usage_missing.go +++ b/v3/lints/cabf_br/lint_ca_key_usage_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_key_usage_missing_test.go b/v3/lints/cabf_br/lint_ca_key_usage_missing_test.go index bac8f30ec..8f619cbd3 100644 --- a/v3/lints/cabf_br/lint_ca_key_usage_missing_test.go +++ b/v3/lints/cabf_br/lint_ca_key_usage_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_key_usage_not_critical.go b/v3/lints/cabf_br/lint_ca_key_usage_not_critical.go index 1af5c0942..11a03b78e 100644 --- a/v3/lints/cabf_br/lint_ca_key_usage_not_critical.go +++ b/v3/lints/cabf_br/lint_ca_key_usage_not_critical.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_key_usage_not_critical_test.go b/v3/lints/cabf_br/lint_ca_key_usage_not_critical_test.go index 2b36d57ae..8c750a730 100644 --- a/v3/lints/cabf_br/lint_ca_key_usage_not_critical_test.go +++ b/v3/lints/cabf_br/lint_ca_key_usage_not_critical_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_organization_name_missing.go b/v3/lints/cabf_br/lint_ca_organization_name_missing.go index 38d702e6d..e4a686c7d 100644 --- a/v3/lints/cabf_br/lint_ca_organization_name_missing.go +++ b/v3/lints/cabf_br/lint_ca_organization_name_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ca_organization_name_missing_test.go b/v3/lints/cabf_br/lint_ca_organization_name_missing_test.go index 68f8cad36..1a19c6908 100644 --- a/v3/lints/cabf_br/lint_ca_organization_name_missing_test.go +++ b/v3/lints/cabf_br/lint_ca_organization_name_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_locality.go b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_locality.go index 7b290e49a..e4776b6b1 100644 --- a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_locality.go +++ b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_locality.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_locality_test.go b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_locality_test.go index 5060a1a8d..f9325675d 100644 --- a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_locality_test.go +++ b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_locality_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_org.go b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_org.go index c32b5ae96..648cb03a8 100644 --- a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_org.go +++ b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_org.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_org_test.go b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_org_test.go index e55691e21..e6992df9f 100644 --- a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_org_test.go +++ b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_org_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_postal.go b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_postal.go index 2b9d26abb..27e1997e3 100644 --- a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_postal.go +++ b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_postal.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_postal_test.go b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_postal_test.go index d85c61e18..feff3a4fd 100644 --- a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_postal_test.go +++ b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_postal_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_province.go b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_province.go index 656c80767..f26fdbc49 100644 --- a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_province.go +++ b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_province.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_province_test.go b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_province_test.go index fa0875605..6390dd618 100644 --- a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_province_test.go +++ b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_province_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_street.go b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_street.go index 314278a61..e842d6d5d 100644 --- a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_street.go +++ b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_street.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_street_test.go b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_street_test.go index cf5fa58e0..955096548 100644 --- a/v3/lints/cabf_br/lint_cab_dv_conflicts_with_street_test.go +++ b/v3/lints/cabf_br/lint_cab_dv_conflicts_with_street_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_iv_requires_personal_name.go b/v3/lints/cabf_br/lint_cab_iv_requires_personal_name.go index 8f81fdc8a..4c7a758d4 100644 --- a/v3/lints/cabf_br/lint_cab_iv_requires_personal_name.go +++ b/v3/lints/cabf_br/lint_cab_iv_requires_personal_name.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_iv_requires_personal_name_test.go b/v3/lints/cabf_br/lint_cab_iv_requires_personal_name_test.go index 2ea6f5aa4..fa4901a94 100644 --- a/v3/lints/cabf_br/lint_cab_iv_requires_personal_name_test.go +++ b/v3/lints/cabf_br/lint_cab_iv_requires_personal_name_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_ov_requires_org.go b/v3/lints/cabf_br/lint_cab_ov_requires_org.go index b39c0512e..c73b7665b 100644 --- a/v3/lints/cabf_br/lint_cab_ov_requires_org.go +++ b/v3/lints/cabf_br/lint_cab_ov_requires_org.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cab_ov_requires_org_test.go b/v3/lints/cabf_br/lint_cab_ov_requires_org_test.go index 8f4966d92..8e1bd0c79 100644 --- a/v3/lints/cabf_br/lint_cab_ov_requires_org_test.go +++ b/v3/lints/cabf_br/lint_cab_ov_requires_org_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cert_policy_iv_requires_country.go b/v3/lints/cabf_br/lint_cert_policy_iv_requires_country.go index 75ca58834..a33dcaa55 100644 --- a/v3/lints/cabf_br/lint_cert_policy_iv_requires_country.go +++ b/v3/lints/cabf_br/lint_cert_policy_iv_requires_country.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cert_policy_iv_requires_country_test.go b/v3/lints/cabf_br/lint_cert_policy_iv_requires_country_test.go index 9a31acbb2..5dcd75c64 100644 --- a/v3/lints/cabf_br/lint_cert_policy_iv_requires_country_test.go +++ b/v3/lints/cabf_br/lint_cert_policy_iv_requires_country_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cert_policy_iv_requires_province_or_locality.go b/v3/lints/cabf_br/lint_cert_policy_iv_requires_province_or_locality.go index cfeac1b91..5e423bb0e 100644 --- a/v3/lints/cabf_br/lint_cert_policy_iv_requires_province_or_locality.go +++ b/v3/lints/cabf_br/lint_cert_policy_iv_requires_province_or_locality.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cert_policy_iv_requires_province_or_locality_test.go b/v3/lints/cabf_br/lint_cert_policy_iv_requires_province_or_locality_test.go index cd257fe69..89911bb02 100644 --- a/v3/lints/cabf_br/lint_cert_policy_iv_requires_province_or_locality_test.go +++ b/v3/lints/cabf_br/lint_cert_policy_iv_requires_province_or_locality_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cert_policy_ov_requires_country.go b/v3/lints/cabf_br/lint_cert_policy_ov_requires_country.go index ef81bd934..7ef68f93e 100644 --- a/v3/lints/cabf_br/lint_cert_policy_ov_requires_country.go +++ b/v3/lints/cabf_br/lint_cert_policy_ov_requires_country.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cert_policy_ov_requires_country_test.go b/v3/lints/cabf_br/lint_cert_policy_ov_requires_country_test.go index 6aa0a64e6..c4b3642ea 100644 --- a/v3/lints/cabf_br/lint_cert_policy_ov_requires_country_test.go +++ b/v3/lints/cabf_br/lint_cert_policy_ov_requires_country_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cert_policy_ov_requires_province_or_locality.go b/v3/lints/cabf_br/lint_cert_policy_ov_requires_province_or_locality.go index e3ed9aae8..99cfb6d46 100644 --- a/v3/lints/cabf_br/lint_cert_policy_ov_requires_province_or_locality.go +++ b/v3/lints/cabf_br/lint_cert_policy_ov_requires_province_or_locality.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_cert_policy_ov_requires_province_or_locality_test.go b/v3/lints/cabf_br/lint_cert_policy_ov_requires_province_or_locality_test.go index 1af110817..f7d7d6697 100644 --- a/v3/lints/cabf_br/lint_cert_policy_ov_requires_province_or_locality_test.go +++ b/v3/lints/cabf_br/lint_cert_policy_ov_requires_province_or_locality_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dh_params_missing.go b/v3/lints/cabf_br/lint_dh_params_missing.go index 1c38628f0..244d2376c 100644 --- a/v3/lints/cabf_br/lint_dh_params_missing.go +++ b/v3/lints/cabf_br/lint_dh_params_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_bad_character_in_label.go b/v3/lints/cabf_br/lint_dnsname_bad_character_in_label.go index 8f70133e6..ebf317840 100644 --- a/v3/lints/cabf_br/lint_dnsname_bad_character_in_label.go +++ b/v3/lints/cabf_br/lint_dnsname_bad_character_in_label.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_bad_character_in_label_test.go b/v3/lints/cabf_br/lint_dnsname_bad_character_in_label_test.go index 7944f7b0f..30a72a3ec 100644 --- a/v3/lints/cabf_br/lint_dnsname_bad_character_in_label_test.go +++ b/v3/lints/cabf_br/lint_dnsname_bad_character_in_label_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_check_left_label_wildcard.go b/v3/lints/cabf_br/lint_dnsname_check_left_label_wildcard.go index 2700c4854..b829d19e0 100644 --- a/v3/lints/cabf_br/lint_dnsname_check_left_label_wildcard.go +++ b/v3/lints/cabf_br/lint_dnsname_check_left_label_wildcard.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_check_left_label_wildcard_test.go b/v3/lints/cabf_br/lint_dnsname_check_left_label_wildcard_test.go index 9d58a1ab0..eae2d9889 100644 --- a/v3/lints/cabf_br/lint_dnsname_check_left_label_wildcard_test.go +++ b/v3/lints/cabf_br/lint_dnsname_check_left_label_wildcard_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_contains_bare_iana_suffix.go b/v3/lints/cabf_br/lint_dnsname_contains_bare_iana_suffix.go index ce914657a..57405f324 100644 --- a/v3/lints/cabf_br/lint_dnsname_contains_bare_iana_suffix.go +++ b/v3/lints/cabf_br/lint_dnsname_contains_bare_iana_suffix.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_contains_bare_iana_suffix_test.go b/v3/lints/cabf_br/lint_dnsname_contains_bare_iana_suffix_test.go index a66be259e..dfcce94a3 100644 --- a/v3/lints/cabf_br/lint_dnsname_contains_bare_iana_suffix_test.go +++ b/v3/lints/cabf_br/lint_dnsname_contains_bare_iana_suffix_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_contains_empty_label.go b/v3/lints/cabf_br/lint_dnsname_contains_empty_label.go index 6fa57d2f1..e5be883f9 100644 --- a/v3/lints/cabf_br/lint_dnsname_contains_empty_label.go +++ b/v3/lints/cabf_br/lint_dnsname_contains_empty_label.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_contains_empty_label_test.go b/v3/lints/cabf_br/lint_dnsname_contains_empty_label_test.go index 1df8adf33..1ad69eec6 100644 --- a/v3/lints/cabf_br/lint_dnsname_contains_empty_label_test.go +++ b/v3/lints/cabf_br/lint_dnsname_contains_empty_label_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_contains_prohibited_reserved_label.go b/v3/lints/cabf_br/lint_dnsname_contains_prohibited_reserved_label.go index 2c3983eff..ef9d4a191 100644 --- a/v3/lints/cabf_br/lint_dnsname_contains_prohibited_reserved_label.go +++ b/v3/lints/cabf_br/lint_dnsname_contains_prohibited_reserved_label.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_contains_prohibited_reserved_label_test.go b/v3/lints/cabf_br/lint_dnsname_contains_prohibited_reserved_label_test.go index c5cfc2747..e76dfec9f 100644 --- a/v3/lints/cabf_br/lint_dnsname_contains_prohibited_reserved_label_test.go +++ b/v3/lints/cabf_br/lint_dnsname_contains_prohibited_reserved_label_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_hyphen_in_sld.go b/v3/lints/cabf_br/lint_dnsname_hyphen_in_sld.go index f894fa006..83c00642c 100644 --- a/v3/lints/cabf_br/lint_dnsname_hyphen_in_sld.go +++ b/v3/lints/cabf_br/lint_dnsname_hyphen_in_sld.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_hyphen_in_sld_test.go b/v3/lints/cabf_br/lint_dnsname_hyphen_in_sld_test.go index 0dffbc34a..30bbacfa1 100644 --- a/v3/lints/cabf_br/lint_dnsname_hyphen_in_sld_test.go +++ b/v3/lints/cabf_br/lint_dnsname_hyphen_in_sld_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_label_too_long.go b/v3/lints/cabf_br/lint_dnsname_label_too_long.go index 700e9ab8b..e103b7c4a 100644 --- a/v3/lints/cabf_br/lint_dnsname_label_too_long.go +++ b/v3/lints/cabf_br/lint_dnsname_label_too_long.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_label_too_long_test.go b/v3/lints/cabf_br/lint_dnsname_label_too_long_test.go index 14d6a5aeb..5bacc9ef6 100644 --- a/v3/lints/cabf_br/lint_dnsname_label_too_long_test.go +++ b/v3/lints/cabf_br/lint_dnsname_label_too_long_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_right_label_valid_tld.go b/v3/lints/cabf_br/lint_dnsname_right_label_valid_tld.go index eee0fab14..7d36e69d1 100644 --- a/v3/lints/cabf_br/lint_dnsname_right_label_valid_tld.go +++ b/v3/lints/cabf_br/lint_dnsname_right_label_valid_tld.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_right_label_valid_tld_test.go b/v3/lints/cabf_br/lint_dnsname_right_label_valid_tld_test.go index bfcaaed09..1ab0a31cb 100644 --- a/v3/lints/cabf_br/lint_dnsname_right_label_valid_tld_test.go +++ b/v3/lints/cabf_br/lint_dnsname_right_label_valid_tld_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_underscore_in_sld.go b/v3/lints/cabf_br/lint_dnsname_underscore_in_sld.go index 1c3ec26f1..f024ace59 100644 --- a/v3/lints/cabf_br/lint_dnsname_underscore_in_sld.go +++ b/v3/lints/cabf_br/lint_dnsname_underscore_in_sld.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_underscore_in_sld_test.go b/v3/lints/cabf_br/lint_dnsname_underscore_in_sld_test.go index 2ad9ba3de..88a54cf57 100644 --- a/v3/lints/cabf_br/lint_dnsname_underscore_in_sld_test.go +++ b/v3/lints/cabf_br/lint_dnsname_underscore_in_sld_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_underscore_in_trd.go b/v3/lints/cabf_br/lint_dnsname_underscore_in_trd.go index 6da9f1f8f..b6266573a 100644 --- a/v3/lints/cabf_br/lint_dnsname_underscore_in_trd.go +++ b/v3/lints/cabf_br/lint_dnsname_underscore_in_trd.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_underscore_in_trd_test.go b/v3/lints/cabf_br/lint_dnsname_underscore_in_trd_test.go index 1e33c2e0e..a9f73cce8 100644 --- a/v3/lints/cabf_br/lint_dnsname_underscore_in_trd_test.go +++ b/v3/lints/cabf_br/lint_dnsname_underscore_in_trd_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_wildcard_left_of_public_suffix.go b/v3/lints/cabf_br/lint_dnsname_wildcard_left_of_public_suffix.go index b1c67c8f2..3277e3e6d 100644 --- a/v3/lints/cabf_br/lint_dnsname_wildcard_left_of_public_suffix.go +++ b/v3/lints/cabf_br/lint_dnsname_wildcard_left_of_public_suffix.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_wildcard_left_of_public_suffix_test.go b/v3/lints/cabf_br/lint_dnsname_wildcard_left_of_public_suffix_test.go index ee7418b06..313884346 100644 --- a/v3/lints/cabf_br/lint_dnsname_wildcard_left_of_public_suffix_test.go +++ b/v3/lints/cabf_br/lint_dnsname_wildcard_left_of_public_suffix_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_wildcard_only_in_left_label.go b/v3/lints/cabf_br/lint_dnsname_wildcard_only_in_left_label.go index da3320ee3..4d6338d39 100644 --- a/v3/lints/cabf_br/lint_dnsname_wildcard_only_in_left_label.go +++ b/v3/lints/cabf_br/lint_dnsname_wildcard_only_in_left_label.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dnsname_wildcard_only_in_left_label_test.go b/v3/lints/cabf_br/lint_dnsname_wildcard_only_in_left_label_test.go index 510b50a2c..19b31b0d6 100644 --- a/v3/lints/cabf_br/lint_dnsname_wildcard_only_in_left_label_test.go +++ b/v3/lints/cabf_br/lint_dnsname_wildcard_only_in_left_label_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dsa_correct_order_in_subgroup.go b/v3/lints/cabf_br/lint_dsa_correct_order_in_subgroup.go index 0def57863..03183614f 100644 --- a/v3/lints/cabf_br/lint_dsa_correct_order_in_subgroup.go +++ b/v3/lints/cabf_br/lint_dsa_correct_order_in_subgroup.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dsa_correct_order_in_subgroup_test.go b/v3/lints/cabf_br/lint_dsa_correct_order_in_subgroup_test.go index 97c8c09b6..2edfe3117 100644 --- a/v3/lints/cabf_br/lint_dsa_correct_order_in_subgroup_test.go +++ b/v3/lints/cabf_br/lint_dsa_correct_order_in_subgroup_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dsa_improper_modulus_or_divisor_size.go b/v3/lints/cabf_br/lint_dsa_improper_modulus_or_divisor_size.go index 123ce672f..149373cb3 100644 --- a/v3/lints/cabf_br/lint_dsa_improper_modulus_or_divisor_size.go +++ b/v3/lints/cabf_br/lint_dsa_improper_modulus_or_divisor_size.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dsa_improper_modulus_or_divisor_size_test.go b/v3/lints/cabf_br/lint_dsa_improper_modulus_or_divisor_size_test.go index 0f0658d4c..850c99caa 100644 --- a/v3/lints/cabf_br/lint_dsa_improper_modulus_or_divisor_size_test.go +++ b/v3/lints/cabf_br/lint_dsa_improper_modulus_or_divisor_size_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dsa_shorter_than_2048_bits.go b/v3/lints/cabf_br/lint_dsa_shorter_than_2048_bits.go index f9e9cd7d7..f7084b79e 100644 --- a/v3/lints/cabf_br/lint_dsa_shorter_than_2048_bits.go +++ b/v3/lints/cabf_br/lint_dsa_shorter_than_2048_bits.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dsa_shorter_than_2048_bits_test.go b/v3/lints/cabf_br/lint_dsa_shorter_than_2048_bits_test.go index 6ec043cdd..10944c467 100644 --- a/v3/lints/cabf_br/lint_dsa_shorter_than_2048_bits_test.go +++ b/v3/lints/cabf_br/lint_dsa_shorter_than_2048_bits_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dsa_unique_correct_representation.go b/v3/lints/cabf_br/lint_dsa_unique_correct_representation.go index de64fbbff..8ed63b848 100644 --- a/v3/lints/cabf_br/lint_dsa_unique_correct_representation.go +++ b/v3/lints/cabf_br/lint_dsa_unique_correct_representation.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_dsa_unique_correct_representation_test.go b/v3/lints/cabf_br/lint_dsa_unique_correct_representation_test.go index b663f565a..6d81a907e 100644 --- a/v3/lints/cabf_br/lint_dsa_unique_correct_representation_test.go +++ b/v3/lints/cabf_br/lint_dsa_unique_correct_representation_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_e_sub_ca_aia_missing.go b/v3/lints/cabf_br/lint_e_sub_ca_aia_missing.go index defe83064..8d8e038b2 100644 --- a/v3/lints/cabf_br/lint_e_sub_ca_aia_missing.go +++ b/v3/lints/cabf_br/lint_e_sub_ca_aia_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_e_sub_ca_aia_missing_test.go b/v3/lints/cabf_br/lint_e_sub_ca_aia_missing_test.go index 816a6b653..584ccce19 100644 --- a/v3/lints/cabf_br/lint_e_sub_ca_aia_missing_test.go +++ b/v3/lints/cabf_br/lint_e_sub_ca_aia_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ec_improper_curves.go b/v3/lints/cabf_br/lint_ec_improper_curves.go index 5b995d403..711c11a09 100644 --- a/v3/lints/cabf_br/lint_ec_improper_curves.go +++ b/v3/lints/cabf_br/lint_ec_improper_curves.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ec_improper_curves_test.go b/v3/lints/cabf_br/lint_ec_improper_curves_test.go index 7fad4aaf4..b7074aaed 100644 --- a/v3/lints/cabf_br/lint_ec_improper_curves_test.go +++ b/v3/lints/cabf_br/lint_ec_improper_curves_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_nc_intersects_reserved_ip.go b/v3/lints/cabf_br/lint_ext_nc_intersects_reserved_ip.go index 6a5961bf8..47b3e714a 100644 --- a/v3/lints/cabf_br/lint_ext_nc_intersects_reserved_ip.go +++ b/v3/lints/cabf_br/lint_ext_nc_intersects_reserved_ip.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_nc_intersects_reserved_ip_test.go b/v3/lints/cabf_br/lint_ext_nc_intersects_reserved_ip_test.go index 12419e1d5..54a63cf15 100644 --- a/v3/lints/cabf_br/lint_ext_nc_intersects_reserved_ip_test.go +++ b/v3/lints/cabf_br/lint_ext_nc_intersects_reserved_ip_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_contains_reserved_ip.go b/v3/lints/cabf_br/lint_ext_san_contains_reserved_ip.go index 5f6c91716..74cf1ae16 100644 --- a/v3/lints/cabf_br/lint_ext_san_contains_reserved_ip.go +++ b/v3/lints/cabf_br/lint_ext_san_contains_reserved_ip.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_contains_reserved_ip_test.go b/v3/lints/cabf_br/lint_ext_san_contains_reserved_ip_test.go index cd55fb8b7..c2b49d3ce 100644 --- a/v3/lints/cabf_br/lint_ext_san_contains_reserved_ip_test.go +++ b/v3/lints/cabf_br/lint_ext_san_contains_reserved_ip_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_critical_with_subject_dn.go b/v3/lints/cabf_br/lint_ext_san_critical_with_subject_dn.go index 04a44e5a4..eb965fc95 100644 --- a/v3/lints/cabf_br/lint_ext_san_critical_with_subject_dn.go +++ b/v3/lints/cabf_br/lint_ext_san_critical_with_subject_dn.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_critical_with_subject_dn_test.go b/v3/lints/cabf_br/lint_ext_san_critical_with_subject_dn_test.go index 940cd7177..aadd41e32 100644 --- a/v3/lints/cabf_br/lint_ext_san_critical_with_subject_dn_test.go +++ b/v3/lints/cabf_br/lint_ext_san_critical_with_subject_dn_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_directory_name_present.go b/v3/lints/cabf_br/lint_ext_san_directory_name_present.go index bcfb9cf21..5f402c7c5 100644 --- a/v3/lints/cabf_br/lint_ext_san_directory_name_present.go +++ b/v3/lints/cabf_br/lint_ext_san_directory_name_present.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_directory_name_present_test.go b/v3/lints/cabf_br/lint_ext_san_directory_name_present_test.go index b73b20a35..acf943d1e 100644 --- a/v3/lints/cabf_br/lint_ext_san_directory_name_present_test.go +++ b/v3/lints/cabf_br/lint_ext_san_directory_name_present_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_edi_party_name_present.go b/v3/lints/cabf_br/lint_ext_san_edi_party_name_present.go index bd6e2f050..4c9196f3c 100644 --- a/v3/lints/cabf_br/lint_ext_san_edi_party_name_present.go +++ b/v3/lints/cabf_br/lint_ext_san_edi_party_name_present.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_edi_party_name_present_test.go b/v3/lints/cabf_br/lint_ext_san_edi_party_name_present_test.go index fa1e9d2e8..e9537d74a 100644 --- a/v3/lints/cabf_br/lint_ext_san_edi_party_name_present_test.go +++ b/v3/lints/cabf_br/lint_ext_san_edi_party_name_present_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_missing.go b/v3/lints/cabf_br/lint_ext_san_missing.go index a43af6099..d97caf02a 100644 --- a/v3/lints/cabf_br/lint_ext_san_missing.go +++ b/v3/lints/cabf_br/lint_ext_san_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_missing_test.go b/v3/lints/cabf_br/lint_ext_san_missing_test.go index bc5ea5c37..d7c2e466f 100644 --- a/v3/lints/cabf_br/lint_ext_san_missing_test.go +++ b/v3/lints/cabf_br/lint_ext_san_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_other_name_present.go b/v3/lints/cabf_br/lint_ext_san_other_name_present.go index 1752d00b3..7b792ded5 100644 --- a/v3/lints/cabf_br/lint_ext_san_other_name_present.go +++ b/v3/lints/cabf_br/lint_ext_san_other_name_present.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_other_name_present_test.go b/v3/lints/cabf_br/lint_ext_san_other_name_present_test.go index c85e8a8f2..648b5da5c 100644 --- a/v3/lints/cabf_br/lint_ext_san_other_name_present_test.go +++ b/v3/lints/cabf_br/lint_ext_san_other_name_present_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_registered_id_present.go b/v3/lints/cabf_br/lint_ext_san_registered_id_present.go index dd6a5ec66..37fcee954 100644 --- a/v3/lints/cabf_br/lint_ext_san_registered_id_present.go +++ b/v3/lints/cabf_br/lint_ext_san_registered_id_present.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_registered_id_present_test.go b/v3/lints/cabf_br/lint_ext_san_registered_id_present_test.go index 3b446fbab..cbc79e078 100644 --- a/v3/lints/cabf_br/lint_ext_san_registered_id_present_test.go +++ b/v3/lints/cabf_br/lint_ext_san_registered_id_present_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_rfc822_name_present.go b/v3/lints/cabf_br/lint_ext_san_rfc822_name_present.go index 1aedbcfc4..caf2ca23d 100644 --- a/v3/lints/cabf_br/lint_ext_san_rfc822_name_present.go +++ b/v3/lints/cabf_br/lint_ext_san_rfc822_name_present.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_rfc822_name_present_test.go b/v3/lints/cabf_br/lint_ext_san_rfc822_name_present_test.go index 4a5eefda6..1792b7a8a 100644 --- a/v3/lints/cabf_br/lint_ext_san_rfc822_name_present_test.go +++ b/v3/lints/cabf_br/lint_ext_san_rfc822_name_present_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_uniform_resource_identifier_present.go b/v3/lints/cabf_br/lint_ext_san_uniform_resource_identifier_present.go index 5a011e710..707ee7e00 100644 --- a/v3/lints/cabf_br/lint_ext_san_uniform_resource_identifier_present.go +++ b/v3/lints/cabf_br/lint_ext_san_uniform_resource_identifier_present.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_san_uniform_resource_identifier_present_test.go b/v3/lints/cabf_br/lint_ext_san_uniform_resource_identifier_present_test.go index 400d52c4b..87525e34c 100644 --- a/v3/lints/cabf_br/lint_ext_san_uniform_resource_identifier_present_test.go +++ b/v3/lints/cabf_br/lint_ext_san_uniform_resource_identifier_present_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ext_tor_service_descriptor_hash_invalid.go b/v3/lints/cabf_br/lint_ext_tor_service_descriptor_hash_invalid.go index b70573268..4d63e7776 100644 --- a/v3/lints/cabf_br/lint_ext_tor_service_descriptor_hash_invalid.go +++ b/v3/lints/cabf_br/lint_ext_tor_service_descriptor_hash_invalid.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -104,15 +104,16 @@ func lintOnionURL(onion string) *lint.LintResult { // Execute will lint the provided certificate. An lint.Error lint.LintResult will be // returned if: // -// 1) There is no TorServiceDescriptor extension present and it's required -// 2) There were no TorServiceDescriptors parsed by zcrypto -// 3) There are TorServiceDescriptorHash entries with an invalid Onion URL. -// 4) There are TorServiceDescriptorHash entries with an unknown hash -// algorithm or incorrect hash bit length. -// 5) There is a TorServiceDescriptorHash entry that doesn't correspond to -// an onion subject in the cert. -// 6) There is an onion subject in the cert that doesn't correspond to -// a TorServiceDescriptorHash, if required. +// 1. There is no TorServiceDescriptor extension present and it's required +// 2. There were no TorServiceDescriptors parsed by zcrypto +// 3. There are TorServiceDescriptorHash entries with an invalid Onion URL. +// 4. There are TorServiceDescriptorHash entries with an unknown hash +// algorithm or incorrect hash bit length. +// 5. There is a TorServiceDescriptorHash entry that doesn't correspond to +// an onion subject in the cert. +// 6. There is an onion subject in the cert that doesn't correspond to +// a TorServiceDescriptorHash, if required. +// //nolint:cyclop func (l *torServiceDescHashInvalid) Execute(c *x509.Certificate) *lint.LintResult { // If the certificate is EV, the BRTorServiceDescriptor extension is required. diff --git a/v3/lints/cabf_br/lint_extra_subject_common_names.go b/v3/lints/cabf_br/lint_extra_subject_common_names.go index 3d17bca22..03cc2a2a6 100644 --- a/v3/lints/cabf_br/lint_extra_subject_common_names.go +++ b/v3/lints/cabf_br/lint_extra_subject_common_names.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_invalid_certificate_version.go b/v3/lints/cabf_br/lint_invalid_certificate_version.go index 67c5b5705..f66f6b4de 100644 --- a/v3/lints/cabf_br/lint_invalid_certificate_version.go +++ b/v3/lints/cabf_br/lint_invalid_certificate_version.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_invalid_certificate_version_test.go b/v3/lints/cabf_br/lint_invalid_certificate_version_test.go index 04a4393f9..882511a5c 100644 --- a/v3/lints/cabf_br/lint_invalid_certificate_version_test.go +++ b/v3/lints/cabf_br/lint_invalid_certificate_version_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_no_underscores_before_1_6_2.go b/v3/lints/cabf_br/lint_no_underscores_before_1_6_2.go index 865244253..316c835b4 100644 --- a/v3/lints/cabf_br/lint_no_underscores_before_1_6_2.go +++ b/v3/lints/cabf_br/lint_no_underscores_before_1_6_2.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_no_underscores_before_1_6_2_test.go b/v3/lints/cabf_br/lint_no_underscores_before_1_6_2_test.go index 92134c303..91d4e64c2 100644 --- a/v3/lints/cabf_br/lint_no_underscores_before_1_6_2_test.go +++ b/v3/lints/cabf_br/lint_no_underscores_before_1_6_2_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ocsp_id_pkix_ocsp_nocheck_ext_not_included_server_auth.go b/v3/lints/cabf_br/lint_ocsp_id_pkix_ocsp_nocheck_ext_not_included_server_auth.go index 6fd53b783..8601321ee 100644 --- a/v3/lints/cabf_br/lint_ocsp_id_pkix_ocsp_nocheck_ext_not_included_server_auth.go +++ b/v3/lints/cabf_br/lint_ocsp_id_pkix_ocsp_nocheck_ext_not_included_server_auth.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_ocsp_id_pkix_ocsp_nocheck_ext_not_included_server_auth_test.go b/v3/lints/cabf_br/lint_ocsp_id_pkix_ocsp_nocheck_ext_not_included_server_auth_test.go index 574b36864..7deb89193 100644 --- a/v3/lints/cabf_br/lint_ocsp_id_pkix_ocsp_nocheck_ext_not_included_server_auth_test.go +++ b/v3/lints/cabf_br/lint_ocsp_id_pkix_ocsp_nocheck_ext_not_included_server_auth_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_old_root_ca_rsa_mod_less_than_2048_bits.go b/v3/lints/cabf_br/lint_old_root_ca_rsa_mod_less_than_2048_bits.go index 9d9cc782e..527f8c94c 100644 --- a/v3/lints/cabf_br/lint_old_root_ca_rsa_mod_less_than_2048_bits.go +++ b/v3/lints/cabf_br/lint_old_root_ca_rsa_mod_less_than_2048_bits.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_old_root_ca_rsa_mod_less_than_2048_bits_test.go b/v3/lints/cabf_br/lint_old_root_ca_rsa_mod_less_than_2048_bits_test.go index 3209369b8..a001874f3 100644 --- a/v3/lints/cabf_br/lint_old_root_ca_rsa_mod_less_than_2048_bits_test.go +++ b/v3/lints/cabf_br/lint_old_root_ca_rsa_mod_less_than_2048_bits_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_old_sub_ca_rsa_mod_less_than_1024_bits.go b/v3/lints/cabf_br/lint_old_sub_ca_rsa_mod_less_than_1024_bits.go index 0895100f6..dfe5c41de 100644 --- a/v3/lints/cabf_br/lint_old_sub_ca_rsa_mod_less_than_1024_bits.go +++ b/v3/lints/cabf_br/lint_old_sub_ca_rsa_mod_less_than_1024_bits.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_old_sub_ca_rsa_mod_less_than_1024_bits_test.go b/v3/lints/cabf_br/lint_old_sub_ca_rsa_mod_less_than_1024_bits_test.go index 42a9cfeeb..a6b1a9657 100644 --- a/v3/lints/cabf_br/lint_old_sub_ca_rsa_mod_less_than_1024_bits_test.go +++ b/v3/lints/cabf_br/lint_old_sub_ca_rsa_mod_less_than_1024_bits_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_old_sub_cert_rsa_mod_less_than_1024_bits.go b/v3/lints/cabf_br/lint_old_sub_cert_rsa_mod_less_than_1024_bits.go index e0fc1d586..3d742fe19 100644 --- a/v3/lints/cabf_br/lint_old_sub_cert_rsa_mod_less_than_1024_bits.go +++ b/v3/lints/cabf_br/lint_old_sub_cert_rsa_mod_less_than_1024_bits.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_old_sub_cert_rsa_mod_less_than_1024_bits_test.go b/v3/lints/cabf_br/lint_old_sub_cert_rsa_mod_less_than_1024_bits_test.go index 39504a1e9..3b977dbed 100644 --- a/v3/lints/cabf_br/lint_old_sub_cert_rsa_mod_less_than_1024_bits_test.go +++ b/v3/lints/cabf_br/lint_old_sub_cert_rsa_mod_less_than_1024_bits_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_organizational_unit_name_prohibited.go b/v3/lints/cabf_br/lint_organizational_unit_name_prohibited.go index 610ea156a..e485adea5 100644 --- a/v3/lints/cabf_br/lint_organizational_unit_name_prohibited.go +++ b/v3/lints/cabf_br/lint_organizational_unit_name_prohibited.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_organizational_unit_name_prohibited_test.go b/v3/lints/cabf_br/lint_organizational_unit_name_prohibited_test.go index 9083c99b6..58bede9be 100644 --- a/v3/lints/cabf_br/lint_organizational_unit_name_prohibited_test.go +++ b/v3/lints/cabf_br/lint_organizational_unit_name_prohibited_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_prohibit_dsa_usage.go b/v3/lints/cabf_br/lint_prohibit_dsa_usage.go index 0a9e9a2c0..95c06d3ea 100644 --- a/v3/lints/cabf_br/lint_prohibit_dsa_usage.go +++ b/v3/lints/cabf_br/lint_prohibit_dsa_usage.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_prohibit_dsa_usage_test.go b/v3/lints/cabf_br/lint_prohibit_dsa_usage_test.go index 7f539cdfc..882cf95cf 100644 --- a/v3/lints/cabf_br/lint_prohibit_dsa_usage_test.go +++ b/v3/lints/cabf_br/lint_prohibit_dsa_usage_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_public_key_type_not_allowed.go b/v3/lints/cabf_br/lint_public_key_type_not_allowed.go index 026f51f2c..83146b83f 100644 --- a/v3/lints/cabf_br/lint_public_key_type_not_allowed.go +++ b/v3/lints/cabf_br/lint_public_key_type_not_allowed.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_public_key_type_not_allowed_test.go b/v3/lints/cabf_br/lint_public_key_type_not_allowed_test.go index a3ea4dba5..d0acefbab 100644 --- a/v3/lints/cabf_br/lint_public_key_type_not_allowed_test.go +++ b/v3/lints/cabf_br/lint_public_key_type_not_allowed_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_root_ca_basic_constraints_path_len_constraint_field_present.go b/v3/lints/cabf_br/lint_root_ca_basic_constraints_path_len_constraint_field_present.go index 91efa0ce5..6360e6f0f 100644 --- a/v3/lints/cabf_br/lint_root_ca_basic_constraints_path_len_constraint_field_present.go +++ b/v3/lints/cabf_br/lint_root_ca_basic_constraints_path_len_constraint_field_present.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_root_ca_basic_constraints_path_len_constraint_field_present_test.go b/v3/lints/cabf_br/lint_root_ca_basic_constraints_path_len_constraint_field_present_test.go index 090455e8c..953f442f2 100644 --- a/v3/lints/cabf_br/lint_root_ca_basic_constraints_path_len_constraint_field_present_test.go +++ b/v3/lints/cabf_br/lint_root_ca_basic_constraints_path_len_constraint_field_present_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_root_ca_contains_cert_policy.go b/v3/lints/cabf_br/lint_root_ca_contains_cert_policy.go index 078455a6b..655a190fa 100644 --- a/v3/lints/cabf_br/lint_root_ca_contains_cert_policy.go +++ b/v3/lints/cabf_br/lint_root_ca_contains_cert_policy.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_root_ca_contains_cert_policy_test.go b/v3/lints/cabf_br/lint_root_ca_contains_cert_policy_test.go index c9193c6c8..873dd34b9 100644 --- a/v3/lints/cabf_br/lint_root_ca_contains_cert_policy_test.go +++ b/v3/lints/cabf_br/lint_root_ca_contains_cert_policy_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_root_ca_extended_key_usage_present.go b/v3/lints/cabf_br/lint_root_ca_extended_key_usage_present.go index 1d54b8a5c..adf06b02f 100644 --- a/v3/lints/cabf_br/lint_root_ca_extended_key_usage_present.go +++ b/v3/lints/cabf_br/lint_root_ca_extended_key_usage_present.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_root_ca_extended_key_usage_present_test.go b/v3/lints/cabf_br/lint_root_ca_extended_key_usage_present_test.go index b2a87d5c5..fa0ccb5e5 100644 --- a/v3/lints/cabf_br/lint_root_ca_extended_key_usage_present_test.go +++ b/v3/lints/cabf_br/lint_root_ca_extended_key_usage_present_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_root_ca_key_usage_must_be_critical.go b/v3/lints/cabf_br/lint_root_ca_key_usage_must_be_critical.go index 023405150..89e181a3a 100644 --- a/v3/lints/cabf_br/lint_root_ca_key_usage_must_be_critical.go +++ b/v3/lints/cabf_br/lint_root_ca_key_usage_must_be_critical.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_root_ca_key_usage_must_be_critical_test.go b/v3/lints/cabf_br/lint_root_ca_key_usage_must_be_critical_test.go index 127696d1e..9bcf5186a 100644 --- a/v3/lints/cabf_br/lint_root_ca_key_usage_must_be_critical_test.go +++ b/v3/lints/cabf_br/lint_root_ca_key_usage_must_be_critical_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_root_ca_key_usage_present.go b/v3/lints/cabf_br/lint_root_ca_key_usage_present.go index 7dccd4ff4..7fdf2468d 100644 --- a/v3/lints/cabf_br/lint_root_ca_key_usage_present.go +++ b/v3/lints/cabf_br/lint_root_ca_key_usage_present.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_root_ca_key_usage_present_test.go b/v3/lints/cabf_br/lint_root_ca_key_usage_present_test.go index e77a6eb12..3aa9a7508 100644 --- a/v3/lints/cabf_br/lint_root_ca_key_usage_present_test.go +++ b/v3/lints/cabf_br/lint_root_ca_key_usage_present_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_mod_factors_smaller_than_752_bits.go b/v3/lints/cabf_br/lint_rsa_mod_factors_smaller_than_752_bits.go index 89954519f..7b6700839 100644 --- a/v3/lints/cabf_br/lint_rsa_mod_factors_smaller_than_752_bits.go +++ b/v3/lints/cabf_br/lint_rsa_mod_factors_smaller_than_752_bits.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_mod_factors_smaller_than_752_bits_test.go b/v3/lints/cabf_br/lint_rsa_mod_factors_smaller_than_752_bits_test.go index 771f585e6..54898cb07 100644 --- a/v3/lints/cabf_br/lint_rsa_mod_factors_smaller_than_752_bits_test.go +++ b/v3/lints/cabf_br/lint_rsa_mod_factors_smaller_than_752_bits_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_mod_less_than_2048_bits.go b/v3/lints/cabf_br/lint_rsa_mod_less_than_2048_bits.go index 3769f998c..9431e7a16 100644 --- a/v3/lints/cabf_br/lint_rsa_mod_less_than_2048_bits.go +++ b/v3/lints/cabf_br/lint_rsa_mod_less_than_2048_bits.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_mod_less_than_2048_bits_test.go b/v3/lints/cabf_br/lint_rsa_mod_less_than_2048_bits_test.go index 87fa911de..375e15271 100644 --- a/v3/lints/cabf_br/lint_rsa_mod_less_than_2048_bits_test.go +++ b/v3/lints/cabf_br/lint_rsa_mod_less_than_2048_bits_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_mod_not_odd.go b/v3/lints/cabf_br/lint_rsa_mod_not_odd.go index 8ebbae7b6..6f71c19fc 100644 --- a/v3/lints/cabf_br/lint_rsa_mod_not_odd.go +++ b/v3/lints/cabf_br/lint_rsa_mod_not_odd.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_mod_not_odd_test.go b/v3/lints/cabf_br/lint_rsa_mod_not_odd_test.go index d018582b3..2be1d40e0 100644 --- a/v3/lints/cabf_br/lint_rsa_mod_not_odd_test.go +++ b/v3/lints/cabf_br/lint_rsa_mod_not_odd_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_public_exponent_not_in_range.go b/v3/lints/cabf_br/lint_rsa_public_exponent_not_in_range.go index 375718875..79e1d3a3c 100644 --- a/v3/lints/cabf_br/lint_rsa_public_exponent_not_in_range.go +++ b/v3/lints/cabf_br/lint_rsa_public_exponent_not_in_range.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_public_exponent_not_in_range_test.go b/v3/lints/cabf_br/lint_rsa_public_exponent_not_in_range_test.go index 2bdfc6595..e6e920f39 100644 --- a/v3/lints/cabf_br/lint_rsa_public_exponent_not_in_range_test.go +++ b/v3/lints/cabf_br/lint_rsa_public_exponent_not_in_range_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_public_exponent_not_odd.go b/v3/lints/cabf_br/lint_rsa_public_exponent_not_odd.go index fd669fec5..597a3efd6 100644 --- a/v3/lints/cabf_br/lint_rsa_public_exponent_not_odd.go +++ b/v3/lints/cabf_br/lint_rsa_public_exponent_not_odd.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_public_exponent_not_odd_test.go b/v3/lints/cabf_br/lint_rsa_public_exponent_not_odd_test.go index 9fff82648..d62484df7 100644 --- a/v3/lints/cabf_br/lint_rsa_public_exponent_not_odd_test.go +++ b/v3/lints/cabf_br/lint_rsa_public_exponent_not_odd_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_public_exponent_too_small.go b/v3/lints/cabf_br/lint_rsa_public_exponent_too_small.go index 5735c9b96..7750879d5 100644 --- a/v3/lints/cabf_br/lint_rsa_public_exponent_too_small.go +++ b/v3/lints/cabf_br/lint_rsa_public_exponent_too_small.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_rsa_public_exponent_too_small_test.go b/v3/lints/cabf_br/lint_rsa_public_exponent_too_small_test.go index 8ad092f00..2eb126da7 100644 --- a/v3/lints/cabf_br/lint_rsa_public_exponent_too_small_test.go +++ b/v3/lints/cabf_br/lint_rsa_public_exponent_too_small_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_san_dns_name_onion_invalid.go b/v3/lints/cabf_br/lint_san_dns_name_onion_invalid.go index 59c89556c..c169e55a8 100644 --- a/v3/lints/cabf_br/lint_san_dns_name_onion_invalid.go +++ b/v3/lints/cabf_br/lint_san_dns_name_onion_invalid.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -103,9 +103,9 @@ func (l *onionNotValid) CheckApplies(c *x509.Certificate) bool { // Execute will lint the provided certificate. A lint.Error lint.LintResult will // be returned if: // -// 1) The certificate contains a Tor Rendezvous Spec v2 address and is not an +// 1. The certificate contains a Tor Rendezvous Spec v2 address and is not an // EV certificate (BRs: Appendix C). -// 2) The certificate contains a `.onion` subject name/SAN that is neither a +// 2. The certificate contains a `.onion` subject name/SAN that is neither a // Rendezvous Spec v2 or v3 address. func (l *onionNotValid) Execute(c *x509.Certificate) *lint.LintResult { for _, subj := range append(c.DNSNames, c.Subject.CommonName) { diff --git a/v3/lints/cabf_br/lint_san_dns_name_onion_not_ev_cert.go b/v3/lints/cabf_br/lint_san_dns_name_onion_not_ev_cert.go index ae6fbb7e0..806496396 100644 --- a/v3/lints/cabf_br/lint_san_dns_name_onion_not_ev_cert.go +++ b/v3/lints/cabf_br/lint_san_dns_name_onion_not_ev_cert.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_signature_algorithm_not_supported.go b/v3/lints/cabf_br/lint_signature_algorithm_not_supported.go index fee64fc1c..045f6a06f 100644 --- a/v3/lints/cabf_br/lint_signature_algorithm_not_supported.go +++ b/v3/lints/cabf_br/lint_signature_algorithm_not_supported.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_signature_algorithm_not_supported_test.go b/v3/lints/cabf_br/lint_signature_algorithm_not_supported_test.go index 6dca89829..807fac83a 100644 --- a/v3/lints/cabf_br/lint_signature_algorithm_not_supported_test.go +++ b/v3/lints/cabf_br/lint_signature_algorithm_not_supported_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_aia_does_not_contain_issuing_ca_url.go b/v3/lints/cabf_br/lint_sub_ca_aia_does_not_contain_issuing_ca_url.go index 4b30db332..44a5569ed 100644 --- a/v3/lints/cabf_br/lint_sub_ca_aia_does_not_contain_issuing_ca_url.go +++ b/v3/lints/cabf_br/lint_sub_ca_aia_does_not_contain_issuing_ca_url.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_aia_does_not_contain_issuing_ca_url_test.go b/v3/lints/cabf_br/lint_sub_ca_aia_does_not_contain_issuing_ca_url_test.go index 3097b3654..32210912e 100644 --- a/v3/lints/cabf_br/lint_sub_ca_aia_does_not_contain_issuing_ca_url_test.go +++ b/v3/lints/cabf_br/lint_sub_ca_aia_does_not_contain_issuing_ca_url_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_aia_marked_critical.go b/v3/lints/cabf_br/lint_sub_ca_aia_marked_critical.go index 15379bf3f..7cc7f0342 100644 --- a/v3/lints/cabf_br/lint_sub_ca_aia_marked_critical.go +++ b/v3/lints/cabf_br/lint_sub_ca_aia_marked_critical.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_aia_marked_critical_test.go b/v3/lints/cabf_br/lint_sub_ca_aia_marked_critical_test.go index e5580ece9..f623c2279 100644 --- a/v3/lints/cabf_br/lint_sub_ca_aia_marked_critical_test.go +++ b/v3/lints/cabf_br/lint_sub_ca_aia_marked_critical_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_certificate_policies_marked_critical.go b/v3/lints/cabf_br/lint_sub_ca_certificate_policies_marked_critical.go index 0358ccff4..fab68b54a 100644 --- a/v3/lints/cabf_br/lint_sub_ca_certificate_policies_marked_critical.go +++ b/v3/lints/cabf_br/lint_sub_ca_certificate_policies_marked_critical.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_certificate_policies_marked_critical_test.go b/v3/lints/cabf_br/lint_sub_ca_certificate_policies_marked_critical_test.go index 8f0c48a2e..a7f368f1f 100644 --- a/v3/lints/cabf_br/lint_sub_ca_certificate_policies_marked_critical_test.go +++ b/v3/lints/cabf_br/lint_sub_ca_certificate_policies_marked_critical_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_certificate_policies_missing.go b/v3/lints/cabf_br/lint_sub_ca_certificate_policies_missing.go index e025c01e2..74829dc41 100644 --- a/v3/lints/cabf_br/lint_sub_ca_certificate_policies_missing.go +++ b/v3/lints/cabf_br/lint_sub_ca_certificate_policies_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_certificate_policies_missing_test.go b/v3/lints/cabf_br/lint_sub_ca_certificate_policies_missing_test.go index 80b25b120..1dd7bb744 100644 --- a/v3/lints/cabf_br/lint_sub_ca_certificate_policies_missing_test.go +++ b/v3/lints/cabf_br/lint_sub_ca_certificate_policies_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_does_not_contain_url.go b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_does_not_contain_url.go index 5544a966b..78a4e4ac7 100644 --- a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_does_not_contain_url.go +++ b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_does_not_contain_url.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_does_not_contain_url_test.go b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_does_not_contain_url_test.go index 6bac1482e..2e03f48b9 100644 --- a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_does_not_contain_url_test.go +++ b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_does_not_contain_url_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_marked_critical.go b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_marked_critical.go index 884f791d9..5c7314565 100644 --- a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_marked_critical.go +++ b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_marked_critical.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_marked_critical_test.go b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_marked_critical_test.go index af06a1931..5a3152d0a 100644 --- a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_marked_critical_test.go +++ b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_marked_critical_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_missing.go b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_missing.go index 91244962d..f6d58a77f 100644 --- a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_missing.go +++ b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_missing_test.go b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_missing_test.go index f523cff00..106e45f9e 100644 --- a/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_missing_test.go +++ b/v3/lints/cabf_br/lint_sub_ca_crl_distribution_points_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_eku_critical.go b/v3/lints/cabf_br/lint_sub_ca_eku_critical.go index 9cae37883..8210ee8be 100644 --- a/v3/lints/cabf_br/lint_sub_ca_eku_critical.go +++ b/v3/lints/cabf_br/lint_sub_ca_eku_critical.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_eku_critical_test.go b/v3/lints/cabf_br/lint_sub_ca_eku_critical_test.go index 67a458ed9..f3ccedd7e 100644 --- a/v3/lints/cabf_br/lint_sub_ca_eku_critical_test.go +++ b/v3/lints/cabf_br/lint_sub_ca_eku_critical_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_eku_missing.go b/v3/lints/cabf_br/lint_sub_ca_eku_missing.go index 93c2f7385..913005eda 100644 --- a/v3/lints/cabf_br/lint_sub_ca_eku_missing.go +++ b/v3/lints/cabf_br/lint_sub_ca_eku_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_eku_missing_test.go b/v3/lints/cabf_br/lint_sub_ca_eku_missing_test.go index 0a93ddb48..33818a22a 100644 --- a/v3/lints/cabf_br/lint_sub_ca_eku_missing_test.go +++ b/v3/lints/cabf_br/lint_sub_ca_eku_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_eku_valid_fields.go b/v3/lints/cabf_br/lint_sub_ca_eku_valid_fields.go index 875fd22c7..6cecabb37 100644 --- a/v3/lints/cabf_br/lint_sub_ca_eku_valid_fields.go +++ b/v3/lints/cabf_br/lint_sub_ca_eku_valid_fields.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_eku_valid_fields_test.go b/v3/lints/cabf_br/lint_sub_ca_eku_valid_fields_test.go index 16738bde6..128f957da 100644 --- a/v3/lints/cabf_br/lint_sub_ca_eku_valid_fields_test.go +++ b/v3/lints/cabf_br/lint_sub_ca_eku_valid_fields_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_name_constraints_not_critical.go b/v3/lints/cabf_br/lint_sub_ca_name_constraints_not_critical.go index fe6479e4b..9df044f06 100644 --- a/v3/lints/cabf_br/lint_sub_ca_name_constraints_not_critical.go +++ b/v3/lints/cabf_br/lint_sub_ca_name_constraints_not_critical.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_ca_name_constraints_not_critical_test.go b/v3/lints/cabf_br/lint_sub_ca_name_constraints_not_critical_test.go index ee8579b1c..e7b0b938d 100644 --- a/v3/lints/cabf_br/lint_sub_ca_name_constraints_not_critical_test.go +++ b/v3/lints/cabf_br/lint_sub_ca_name_constraints_not_critical_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_issuing_ca_url.go b/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_issuing_ca_url.go index c43a467e7..3c1b6de60 100644 --- a/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_issuing_ca_url.go +++ b/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_issuing_ca_url.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_issuing_ca_url_test.go b/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_issuing_ca_url_test.go index 0a1a70727..37d7f3fad 100644 --- a/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_issuing_ca_url_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_issuing_ca_url_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_ocsp_url.go b/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_ocsp_url.go index ad0bf1f42..6c7812c8e 100644 --- a/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_ocsp_url.go +++ b/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_ocsp_url.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_ocsp_url_test.go b/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_ocsp_url_test.go index 1bf02e67d..81be1f674 100644 --- a/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_ocsp_url_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_aia_does_not_contain_ocsp_url_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_aia_marked_critical.go b/v3/lints/cabf_br/lint_sub_cert_aia_marked_critical.go index aff407d1b..2b626eb7f 100644 --- a/v3/lints/cabf_br/lint_sub_cert_aia_marked_critical.go +++ b/v3/lints/cabf_br/lint_sub_cert_aia_marked_critical.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_aia_marked_critical_test.go b/v3/lints/cabf_br/lint_sub_cert_aia_marked_critical_test.go index 08ca014ee..e01379bbb 100644 --- a/v3/lints/cabf_br/lint_sub_cert_aia_marked_critical_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_aia_marked_critical_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_aia_missing.go b/v3/lints/cabf_br/lint_sub_cert_aia_missing.go index 2d4fb3d1f..86303f65a 100644 --- a/v3/lints/cabf_br/lint_sub_cert_aia_missing.go +++ b/v3/lints/cabf_br/lint_sub_cert_aia_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_aia_missing_test.go b/v3/lints/cabf_br/lint_sub_cert_aia_missing_test.go index c08d356e6..a92761af5 100644 --- a/v3/lints/cabf_br/lint_sub_cert_aia_missing_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_aia_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_cert_policy_empty.go b/v3/lints/cabf_br/lint_sub_cert_cert_policy_empty.go index aad92ba16..740d96b16 100644 --- a/v3/lints/cabf_br/lint_sub_cert_cert_policy_empty.go +++ b/v3/lints/cabf_br/lint_sub_cert_cert_policy_empty.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_cert_policy_empty_test.go b/v3/lints/cabf_br/lint_sub_cert_cert_policy_empty_test.go index af6e83328..8746b4823 100644 --- a/v3/lints/cabf_br/lint_sub_cert_cert_policy_empty_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_cert_policy_empty_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_certificate_policies_marked_critical.go b/v3/lints/cabf_br/lint_sub_cert_certificate_policies_marked_critical.go index 4169b0f8d..b89fb0c60 100644 --- a/v3/lints/cabf_br/lint_sub_cert_certificate_policies_marked_critical.go +++ b/v3/lints/cabf_br/lint_sub_cert_certificate_policies_marked_critical.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_certificate_policies_marked_critical_test.go b/v3/lints/cabf_br/lint_sub_cert_certificate_policies_marked_critical_test.go index 93a3d9bea..99836f25d 100644 --- a/v3/lints/cabf_br/lint_sub_cert_certificate_policies_marked_critical_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_certificate_policies_marked_critical_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_certificate_policies_missing.go b/v3/lints/cabf_br/lint_sub_cert_certificate_policies_missing.go index ad1966447..012a32d57 100644 --- a/v3/lints/cabf_br/lint_sub_cert_certificate_policies_missing.go +++ b/v3/lints/cabf_br/lint_sub_cert_certificate_policies_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_certificate_policies_missing_test.go b/v3/lints/cabf_br/lint_sub_cert_certificate_policies_missing_test.go index 3dae0fb86..63f7f198d 100644 --- a/v3/lints/cabf_br/lint_sub_cert_certificate_policies_missing_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_certificate_policies_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_country_name_must_appear.go b/v3/lints/cabf_br/lint_sub_cert_country_name_must_appear.go index 04dae16ce..1b6a6499d 100644 --- a/v3/lints/cabf_br/lint_sub_cert_country_name_must_appear.go +++ b/v3/lints/cabf_br/lint_sub_cert_country_name_must_appear.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_country_name_must_appear_test.go b/v3/lints/cabf_br/lint_sub_cert_country_name_must_appear_test.go index b0272df43..6527293fb 100644 --- a/v3/lints/cabf_br/lint_sub_cert_country_name_must_appear_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_country_name_must_appear_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_does_not_contain_url.go b/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_does_not_contain_url.go index 1daf79dce..d81ae5fb6 100644 --- a/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_does_not_contain_url.go +++ b/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_does_not_contain_url.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_does_not_contain_url_test.go b/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_does_not_contain_url_test.go index 6d2e4b598..12707b953 100644 --- a/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_does_not_contain_url_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_does_not_contain_url_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_marked_critical.go b/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_marked_critical.go index e97969276..074472a94 100644 --- a/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_marked_critical.go +++ b/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_marked_critical.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_marked_critical_test.go b/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_marked_critical_test.go index 40724d1ae..6ad9aa0be 100644 --- a/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_marked_critical_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_crl_distribution_points_marked_critical_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_eku_extra_values.go b/v3/lints/cabf_br/lint_sub_cert_eku_extra_values.go index 197809a56..5c13ca7ff 100644 --- a/v3/lints/cabf_br/lint_sub_cert_eku_extra_values.go +++ b/v3/lints/cabf_br/lint_sub_cert_eku_extra_values.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_eku_extra_values_test.go b/v3/lints/cabf_br/lint_sub_cert_eku_extra_values_test.go index 286be3079..669f059d3 100644 --- a/v3/lints/cabf_br/lint_sub_cert_eku_extra_values_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_eku_extra_values_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_eku_missing.go b/v3/lints/cabf_br/lint_sub_cert_eku_missing.go index e769230fe..b3ac8a7e9 100644 --- a/v3/lints/cabf_br/lint_sub_cert_eku_missing.go +++ b/v3/lints/cabf_br/lint_sub_cert_eku_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_eku_missing_test.go b/v3/lints/cabf_br/lint_sub_cert_eku_missing_test.go index 6f49eee30..afc624599 100644 --- a/v3/lints/cabf_br/lint_sub_cert_eku_missing_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_eku_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_eku_server_auth_client_auth_missing.go b/v3/lints/cabf_br/lint_sub_cert_eku_server_auth_client_auth_missing.go index 112824728..1173e594a 100644 --- a/v3/lints/cabf_br/lint_sub_cert_eku_server_auth_client_auth_missing.go +++ b/v3/lints/cabf_br/lint_sub_cert_eku_server_auth_client_auth_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -34,7 +34,7 @@ present. func init() { lint.RegisterLint(&lint.Lint{ Name: "e_sub_cert_eku_server_auth_client_auth_missing", - Description: "Subscriber certificates MUST have have either id-kp-serverAuth or id-kp-clientAuth or both present in extKeyUsage", + Description: "Subscriber certificates MUST have either id-kp-serverAuth or id-kp-clientAuth or both present in extKeyUsage", Citation: "BRs: 7.1.2.3", Source: lint.CABFBaselineRequirements, EffectiveDate: util.CABEffectiveDate, diff --git a/v3/lints/cabf_br/lint_sub_cert_eku_server_auth_client_auth_missing_test.go b/v3/lints/cabf_br/lint_sub_cert_eku_server_auth_client_auth_missing_test.go index 1cab2a7de..e45915dde 100644 --- a/v3/lints/cabf_br/lint_sub_cert_eku_server_auth_client_auth_missing_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_eku_server_auth_client_auth_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_gn_sn_contains_policy.go b/v3/lints/cabf_br/lint_sub_cert_gn_sn_contains_policy.go index 04625aca4..2bb02bcc8 100644 --- a/v3/lints/cabf_br/lint_sub_cert_gn_sn_contains_policy.go +++ b/v3/lints/cabf_br/lint_sub_cert_gn_sn_contains_policy.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_gn_sn_contains_policy_test.go b/v3/lints/cabf_br/lint_sub_cert_gn_sn_contains_policy_test.go index 188811ebb..ea15543d5 100644 --- a/v3/lints/cabf_br/lint_sub_cert_gn_sn_contains_policy_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_gn_sn_contains_policy_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_is_ca.go b/v3/lints/cabf_br/lint_sub_cert_is_ca.go index c92d6522b..67359e5a0 100644 --- a/v3/lints/cabf_br/lint_sub_cert_is_ca.go +++ b/v3/lints/cabf_br/lint_sub_cert_is_ca.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_is_ca_test.go b/v3/lints/cabf_br/lint_sub_cert_is_ca_test.go index ccd462250..dbcdadc4e 100644 --- a/v3/lints/cabf_br/lint_sub_cert_is_ca_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_is_ca_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_key_usage_cert_sign_bit_set.go b/v3/lints/cabf_br/lint_sub_cert_key_usage_cert_sign_bit_set.go index 5ba2ea32c..499c7b084 100644 --- a/v3/lints/cabf_br/lint_sub_cert_key_usage_cert_sign_bit_set.go +++ b/v3/lints/cabf_br/lint_sub_cert_key_usage_cert_sign_bit_set.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_key_usage_cert_sign_bit_set_test.go b/v3/lints/cabf_br/lint_sub_cert_key_usage_cert_sign_bit_set_test.go index 0a8266dcc..1c1a96da3 100644 --- a/v3/lints/cabf_br/lint_sub_cert_key_usage_cert_sign_bit_set_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_key_usage_cert_sign_bit_set_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_key_usage_crl_sign_bit_set.go b/v3/lints/cabf_br/lint_sub_cert_key_usage_crl_sign_bit_set.go index e802927d4..dc67297b8 100644 --- a/v3/lints/cabf_br/lint_sub_cert_key_usage_crl_sign_bit_set.go +++ b/v3/lints/cabf_br/lint_sub_cert_key_usage_crl_sign_bit_set.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_key_usage_crl_sign_bit_set_test.go b/v3/lints/cabf_br/lint_sub_cert_key_usage_crl_sign_bit_set_test.go index 56002f9a0..56c22b549 100644 --- a/v3/lints/cabf_br/lint_sub_cert_key_usage_crl_sign_bit_set_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_key_usage_crl_sign_bit_set_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_locality_name_must_appear.go b/v3/lints/cabf_br/lint_sub_cert_locality_name_must_appear.go index 179bd3c3b..8744f1855 100644 --- a/v3/lints/cabf_br/lint_sub_cert_locality_name_must_appear.go +++ b/v3/lints/cabf_br/lint_sub_cert_locality_name_must_appear.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_locality_name_must_appear_test.go b/v3/lints/cabf_br/lint_sub_cert_locality_name_must_appear_test.go index 2bd62d425..1954e87ff 100644 --- a/v3/lints/cabf_br/lint_sub_cert_locality_name_must_appear_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_locality_name_must_appear_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_locality_name_must_not_appear.go b/v3/lints/cabf_br/lint_sub_cert_locality_name_must_not_appear.go index a55098115..ea2f96f57 100644 --- a/v3/lints/cabf_br/lint_sub_cert_locality_name_must_not_appear.go +++ b/v3/lints/cabf_br/lint_sub_cert_locality_name_must_not_appear.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_locality_name_must_not_appear_test.go b/v3/lints/cabf_br/lint_sub_cert_locality_name_must_not_appear_test.go index a5ae05495..6aac8f575 100644 --- a/v3/lints/cabf_br/lint_sub_cert_locality_name_must_not_appear_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_locality_name_must_not_appear_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_or_sub_ca_using_sha1.go b/v3/lints/cabf_br/lint_sub_cert_or_sub_ca_using_sha1.go index dcecee34c..df6e4774a 100644 --- a/v3/lints/cabf_br/lint_sub_cert_or_sub_ca_using_sha1.go +++ b/v3/lints/cabf_br/lint_sub_cert_or_sub_ca_using_sha1.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_or_sub_ca_using_sha1_test.go b/v3/lints/cabf_br/lint_sub_cert_or_sub_ca_using_sha1_test.go index 3702ed4cb..e81ab9e7e 100644 --- a/v3/lints/cabf_br/lint_sub_cert_or_sub_ca_using_sha1_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_or_sub_ca_using_sha1_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_postal_code_prohibited.go b/v3/lints/cabf_br/lint_sub_cert_postal_code_prohibited.go index 16f5c3d81..aae8d28e7 100644 --- a/v3/lints/cabf_br/lint_sub_cert_postal_code_prohibited.go +++ b/v3/lints/cabf_br/lint_sub_cert_postal_code_prohibited.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_postal_code_prohibited_test.go b/v3/lints/cabf_br/lint_sub_cert_postal_code_prohibited_test.go index 8cc072e99..0e1323b16 100644 --- a/v3/lints/cabf_br/lint_sub_cert_postal_code_prohibited_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_postal_code_prohibited_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_province_must_appear.go b/v3/lints/cabf_br/lint_sub_cert_province_must_appear.go index 81ba9aabf..0dd5a7076 100644 --- a/v3/lints/cabf_br/lint_sub_cert_province_must_appear.go +++ b/v3/lints/cabf_br/lint_sub_cert_province_must_appear.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_province_must_appear_test.go b/v3/lints/cabf_br/lint_sub_cert_province_must_appear_test.go index 5a35fa371..150de813f 100644 --- a/v3/lints/cabf_br/lint_sub_cert_province_must_appear_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_province_must_appear_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_province_must_not_appear.go b/v3/lints/cabf_br/lint_sub_cert_province_must_not_appear.go index c0bd32dd4..d33d85644 100644 --- a/v3/lints/cabf_br/lint_sub_cert_province_must_not_appear.go +++ b/v3/lints/cabf_br/lint_sub_cert_province_must_not_appear.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_province_must_not_appear_test.go b/v3/lints/cabf_br/lint_sub_cert_province_must_not_appear_test.go index 4768756f9..83f97831a 100644 --- a/v3/lints/cabf_br/lint_sub_cert_province_must_not_appear_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_province_must_not_appear_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_sha1_expiration_too_long.go b/v3/lints/cabf_br/lint_sub_cert_sha1_expiration_too_long.go index 69efa499d..5f4a59f2a 100644 --- a/v3/lints/cabf_br/lint_sub_cert_sha1_expiration_too_long.go +++ b/v3/lints/cabf_br/lint_sub_cert_sha1_expiration_too_long.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_sha1_expiration_too_long_test.go b/v3/lints/cabf_br/lint_sub_cert_sha1_expiration_too_long_test.go index fa59f9240..e948caf5b 100644 --- a/v3/lints/cabf_br/lint_sub_cert_sha1_expiration_too_long_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_sha1_expiration_too_long_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_street_address_should_not_exist.go b/v3/lints/cabf_br/lint_sub_cert_street_address_should_not_exist.go index 3ce211338..4c09cd1a6 100644 --- a/v3/lints/cabf_br/lint_sub_cert_street_address_should_not_exist.go +++ b/v3/lints/cabf_br/lint_sub_cert_street_address_should_not_exist.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_street_address_should_not_exist_test.go b/v3/lints/cabf_br/lint_sub_cert_street_address_should_not_exist_test.go index 935a155fc..c8a94f57a 100644 --- a/v3/lints/cabf_br/lint_sub_cert_street_address_should_not_exist_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_street_address_should_not_exist_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_39_months.go b/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_39_months.go index 00d8a76d5..fbba31e95 100644 --- a/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_39_months.go +++ b/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_39_months.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_39_months_test.go b/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_39_months_test.go index 1d7c1cec3..1e8c34a0c 100644 --- a/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_39_months_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_39_months_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_825_days.go b/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_825_days.go index 4c1644071..eb8ae16a3 100644 --- a/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_825_days.go +++ b/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_825_days.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_825_days_test.go b/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_825_days_test.go index ba30ddd93..207956b6f 100644 --- a/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_825_days_test.go +++ b/v3/lints/cabf_br/lint_sub_cert_valid_time_longer_than_825_days_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_common_name_included.go b/v3/lints/cabf_br/lint_subject_common_name_included.go index 03f194e02..bf7f1d04d 100644 --- a/v3/lints/cabf_br/lint_subject_common_name_included.go +++ b/v3/lints/cabf_br/lint_subject_common_name_included.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_common_name_included_test.go b/v3/lints/cabf_br/lint_subject_common_name_included_test.go index bf587b139..861c17c3a 100644 --- a/v3/lints/cabf_br/lint_subject_common_name_included_test.go +++ b/v3/lints/cabf_br/lint_subject_common_name_included_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_common_name_not_exactly_from_san.go b/v3/lints/cabf_br/lint_subject_common_name_not_exactly_from_san.go index 0c6acfdee..ceb77fe71 100644 --- a/v3/lints/cabf_br/lint_subject_common_name_not_exactly_from_san.go +++ b/v3/lints/cabf_br/lint_subject_common_name_not_exactly_from_san.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_common_name_not_exactly_from_san_test.go b/v3/lints/cabf_br/lint_subject_common_name_not_exactly_from_san_test.go index 7d2cf5a98..2382620a3 100644 --- a/v3/lints/cabf_br/lint_subject_common_name_not_exactly_from_san_test.go +++ b/v3/lints/cabf_br/lint_subject_common_name_not_exactly_from_san_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_common_name_not_from_san.go b/v3/lints/cabf_br/lint_subject_common_name_not_from_san.go index 305f17189..4f6fe3fde 100644 --- a/v3/lints/cabf_br/lint_subject_common_name_not_from_san.go +++ b/v3/lints/cabf_br/lint_subject_common_name_not_from_san.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_common_name_not_from_san_test.go b/v3/lints/cabf_br/lint_subject_common_name_not_from_san_test.go index 6df657b05..9873e8aed 100644 --- a/v3/lints/cabf_br/lint_subject_common_name_not_from_san_test.go +++ b/v3/lints/cabf_br/lint_subject_common_name_not_from_san_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_contains_malformed_arpa_ip.go b/v3/lints/cabf_br/lint_subject_contains_malformed_arpa_ip.go index fac5422d6..d2f6a2752 100644 --- a/v3/lints/cabf_br/lint_subject_contains_malformed_arpa_ip.go +++ b/v3/lints/cabf_br/lint_subject_contains_malformed_arpa_ip.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_contains_noninformational_value.go b/v3/lints/cabf_br/lint_subject_contains_noninformational_value.go index f622e5312..00ae9daa7 100644 --- a/v3/lints/cabf_br/lint_subject_contains_noninformational_value.go +++ b/v3/lints/cabf_br/lint_subject_contains_noninformational_value.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_contains_noninformational_value_test.go b/v3/lints/cabf_br/lint_subject_contains_noninformational_value_test.go index f7ef7779a..b9b9bdbf2 100644 --- a/v3/lints/cabf_br/lint_subject_contains_noninformational_value_test.go +++ b/v3/lints/cabf_br/lint_subject_contains_noninformational_value_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_contains_organizational_unit_name_and_no_organization_name.go b/v3/lints/cabf_br/lint_subject_contains_organizational_unit_name_and_no_organization_name.go index 9f49f8e10..b5aced626 100644 --- a/v3/lints/cabf_br/lint_subject_contains_organizational_unit_name_and_no_organization_name.go +++ b/v3/lints/cabf_br/lint_subject_contains_organizational_unit_name_and_no_organization_name.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_contains_organizational_unit_name_and_no_organization_name_test.go b/v3/lints/cabf_br/lint_subject_contains_organizational_unit_name_and_no_organization_name_test.go index 241b6ceef..ffb7e8f3e 100644 --- a/v3/lints/cabf_br/lint_subject_contains_organizational_unit_name_and_no_organization_name_test.go +++ b/v3/lints/cabf_br/lint_subject_contains_organizational_unit_name_and_no_organization_name_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_contains_reserved_arpa_ip.go b/v3/lints/cabf_br/lint_subject_contains_reserved_arpa_ip.go index 3410cec12..df93f9c26 100644 --- a/v3/lints/cabf_br/lint_subject_contains_reserved_arpa_ip.go +++ b/v3/lints/cabf_br/lint_subject_contains_reserved_arpa_ip.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -170,9 +170,9 @@ func reversedLabelsToIPv6(labels []string) net.IP { // address under the respective ARPA zone based on the address class. An error // is returned if: // -// 1. The IP address labels parse as an IP of the wrong address class for the -// arpa suffix the name is using. -// 2. The IP address is within an IANA reserved range. +// 1. The IP address labels parse as an IP of the wrong address class for the +// arpa suffix the name is using. +// 2. The IP address is within an IANA reserved range. func lintReversedIPAddress(name string, ipv6 bool) error { numRequiredLabels := rdnsIPv4Labels zoneSuffix := rdnsIPv4Suffix diff --git a/v3/lints/cabf_br/lint_subject_contains_reserved_ip.go b/v3/lints/cabf_br/lint_subject_contains_reserved_ip.go index e35c9d849..39cba99e7 100644 --- a/v3/lints/cabf_br/lint_subject_contains_reserved_ip.go +++ b/v3/lints/cabf_br/lint_subject_contains_reserved_ip.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_contains_reserved_ip_test.go b/v3/lints/cabf_br/lint_subject_contains_reserved_ip_test.go index 16b406261..f2251402e 100644 --- a/v3/lints/cabf_br/lint_subject_contains_reserved_ip_test.go +++ b/v3/lints/cabf_br/lint_subject_contains_reserved_ip_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_country_not_iso.go b/v3/lints/cabf_br/lint_subject_country_not_iso.go index 306193dad..8d1aff75f 100644 --- a/v3/lints/cabf_br/lint_subject_country_not_iso.go +++ b/v3/lints/cabf_br/lint_subject_country_not_iso.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_country_not_iso_test.go b/v3/lints/cabf_br/lint_subject_country_not_iso_test.go index 4aa033966..1b5890682 100644 --- a/v3/lints/cabf_br/lint_subject_country_not_iso_test.go +++ b/v3/lints/cabf_br/lint_subject_country_not_iso_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_subject_public_key_info_improper_algorithm_object_identifier_encoding.go b/v3/lints/cabf_br/lint_subject_public_key_info_improper_algorithm_object_identifier_encoding.go index 315580135..a8c017581 100644 --- a/v3/lints/cabf_br/lint_subject_public_key_info_improper_algorithm_object_identifier_encoding.go +++ b/v3/lints/cabf_br/lint_subject_public_key_info_improper_algorithm_object_identifier_encoding.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -26,7 +26,8 @@ import ( type algorithmObjectIdentifierEncoding struct{} -/************************************************ +/* +*********************************************** This lint refers to CAB Baseline Requirements (Version 1.7.4) chapter 7.1.3.1, which defines the required encodings of AlgorithmObjectIdentifiers inside a SubjectPublicKeyInfo field. @@ -38,7 +39,8 @@ byte‐for‐byte identical with the following hex‐encoded bytes: For P‐256 keys: 301306072a8648ce3d020106082a8648ce3d030107 For P‐384 keys: 301006072a8648ce3d020106052b81040022 For P‐521 keys: 301006072a8648ce3d020106052b81040023 -************************************************/ +*********************************************** +*/ func init() { lint.RegisterLint(&lint.Lint{ Name: "e_algorithm_identifier_improper_encoding", diff --git a/v3/lints/cabf_br/lint_subject_public_key_info_improper_algorithm_object_identifier_encoding_test.go b/v3/lints/cabf_br/lint_subject_public_key_info_improper_algorithm_object_identifier_encoding_test.go index f26e74828..552d7aabf 100644 --- a/v3/lints/cabf_br/lint_subject_public_key_info_improper_algorithm_object_identifier_encoding_test.go +++ b/v3/lints/cabf_br/lint_subject_public_key_info_improper_algorithm_object_identifier_encoding_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_underscore_not_permissible_in_dnsname.go b/v3/lints/cabf_br/lint_underscore_not_permissible_in_dnsname.go index a81b1ba3a..525fff4a6 100644 --- a/v3/lints/cabf_br/lint_underscore_not_permissible_in_dnsname.go +++ b/v3/lints/cabf_br/lint_underscore_not_permissible_in_dnsname.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_underscore_not_permissible_in_dnsname_test.go b/v3/lints/cabf_br/lint_underscore_not_permissible_in_dnsname_test.go index f5ed8a200..45a0fb37d 100644 --- a/v3/lints/cabf_br/lint_underscore_not_permissible_in_dnsname_test.go +++ b/v3/lints/cabf_br/lint_underscore_not_permissible_in_dnsname_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_w_sub_ca_aia_missing.go b/v3/lints/cabf_br/lint_w_sub_ca_aia_missing.go index 6b09cb6e4..c366a815e 100644 --- a/v3/lints/cabf_br/lint_w_sub_ca_aia_missing.go +++ b/v3/lints/cabf_br/lint_w_sub_ca_aia_missing.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_br/lint_w_sub_ca_aia_missing_test.go b/v3/lints/cabf_br/lint_w_sub_ca_aia_missing_test.go index 825467c87..9a5e01ced 100644 --- a/v3/lints/cabf_br/lint_w_sub_ca_aia_missing_test.go +++ b/v3/lints/cabf_br/lint_w_sub_ca_aia_missing_test.go @@ -1,7 +1,7 @@ package cabf_br /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_business_category_missing.go b/v3/lints/cabf_ev/lint_ev_business_category_missing.go index 1e16216a2..ece50bfac 100644 --- a/v3/lints/cabf_ev/lint_ev_business_category_missing.go +++ b/v3/lints/cabf_ev/lint_ev_business_category_missing.go @@ -1,7 +1,7 @@ package cabf_ev /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_business_category_missing_test.go b/v3/lints/cabf_ev/lint_ev_business_category_missing_test.go index 824d17cd5..245cac8d4 100644 --- a/v3/lints/cabf_ev/lint_ev_business_category_missing_test.go +++ b/v3/lints/cabf_ev/lint_ev_business_category_missing_test.go @@ -1,7 +1,7 @@ package cabf_ev /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_country_name_missing.go b/v3/lints/cabf_ev/lint_ev_country_name_missing.go index 6763501f7..869089954 100644 --- a/v3/lints/cabf_ev/lint_ev_country_name_missing.go +++ b/v3/lints/cabf_ev/lint_ev_country_name_missing.go @@ -1,7 +1,7 @@ package cabf_ev /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_country_name_missing_test.go b/v3/lints/cabf_ev/lint_ev_country_name_missing_test.go index 74b8edc6a..2b51d68b5 100644 --- a/v3/lints/cabf_ev/lint_ev_country_name_missing_test.go +++ b/v3/lints/cabf_ev/lint_ev_country_name_missing_test.go @@ -1,7 +1,7 @@ package cabf_ev /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_not_wildcard.go b/v3/lints/cabf_ev/lint_ev_not_wildcard.go index 12c55ec6d..da1e8c845 100644 --- a/v3/lints/cabf_ev/lint_ev_not_wildcard.go +++ b/v3/lints/cabf_ev/lint_ev_not_wildcard.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_not_wildcard_test.go b/v3/lints/cabf_ev/lint_ev_not_wildcard_test.go index 6f55ff6de..6635ac3a4 100644 --- a/v3/lints/cabf_ev/lint_ev_not_wildcard_test.go +++ b/v3/lints/cabf_ev/lint_ev_not_wildcard_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -28,11 +28,13 @@ func TestSmoke(t *testing.T) { "evSubscriberWildcardOnion.pem": lint.Pass, } for file, want := range tests { - t.Run(file, func(t *testing.T) { + f := file + w := want + t.Run(f, func(t *testing.T) { t.Parallel() - got := test.TestLint("e_ev_not_wildcard", file).Status - if got != want { - t.Errorf("want %s, got %s", want, got) + got := test.TestLint("e_ev_not_wildcard", f).Status + if got != w { + t.Errorf("want %s, got %s", w, got) } }) } diff --git a/v3/lints/cabf_ev/lint_ev_organization_id_missing.go b/v3/lints/cabf_ev/lint_ev_organization_id_missing.go index 26cacc80f..50ed6dab8 100644 --- a/v3/lints/cabf_ev/lint_ev_organization_id_missing.go +++ b/v3/lints/cabf_ev/lint_ev_organization_id_missing.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_organization_id_missing_test.go b/v3/lints/cabf_ev/lint_ev_organization_id_missing_test.go index 4ba44197e..9b5e587b5 100644 --- a/v3/lints/cabf_ev/lint_ev_organization_id_missing_test.go +++ b/v3/lints/cabf_ev/lint_ev_organization_id_missing_test.go @@ -1,7 +1,7 @@ package cabf_ev /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -30,11 +30,13 @@ func TestOrganizationIDMissing(t *testing.T) { "evOrgIdExtMissing_Valid.pem": lint.Pass, } for file, want := range tests { - t.Run(file, func(t *testing.T) { + f := file + w := want + t.Run(f, func(t *testing.T) { t.Parallel() - got := test.TestLint("e_ev_organization_id_missing", file).Status - if got != want { - t.Errorf("want %s, got %s", want, got) + got := test.TestLint("e_ev_organization_id_missing", f).Status + if got != w { + t.Errorf("want %s, got %s", w, got) } }) } diff --git a/v3/lints/cabf_ev/lint_ev_organization_name_missing.go b/v3/lints/cabf_ev/lint_ev_organization_name_missing.go index ecd64eac8..c3d877acc 100644 --- a/v3/lints/cabf_ev/lint_ev_organization_name_missing.go +++ b/v3/lints/cabf_ev/lint_ev_organization_name_missing.go @@ -1,7 +1,7 @@ package cabf_ev /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_organization_name_missing_test.go b/v3/lints/cabf_ev/lint_ev_organization_name_missing_test.go index 65ae58a99..170504dd2 100644 --- a/v3/lints/cabf_ev/lint_ev_organization_name_missing_test.go +++ b/v3/lints/cabf_ev/lint_ev_organization_name_missing_test.go @@ -1,7 +1,7 @@ package cabf_ev /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_san_ip_address_present.go b/v3/lints/cabf_ev/lint_ev_san_ip_address_present.go index 7e9deafe8..591715f15 100644 --- a/v3/lints/cabf_ev/lint_ev_san_ip_address_present.go +++ b/v3/lints/cabf_ev/lint_ev_san_ip_address_present.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_san_ip_address_present_test.go b/v3/lints/cabf_ev/lint_ev_san_ip_address_present_test.go index c5301949f..12718989d 100644 --- a/v3/lints/cabf_ev/lint_ev_san_ip_address_present_test.go +++ b/v3/lints/cabf_ev/lint_ev_san_ip_address_present_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_serial_number_missing.go b/v3/lints/cabf_ev/lint_ev_serial_number_missing.go index bb0a5bca4..f9938da7d 100644 --- a/v3/lints/cabf_ev/lint_ev_serial_number_missing.go +++ b/v3/lints/cabf_ev/lint_ev_serial_number_missing.go @@ -1,7 +1,7 @@ package cabf_ev /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_serial_number_missing_test.go b/v3/lints/cabf_ev/lint_ev_serial_number_missing_test.go index 27351a797..153e39957 100644 --- a/v3/lints/cabf_ev/lint_ev_serial_number_missing_test.go +++ b/v3/lints/cabf_ev/lint_ev_serial_number_missing_test.go @@ -1,7 +1,7 @@ package cabf_ev /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_valid_time_too_long.go b/v3/lints/cabf_ev/lint_ev_valid_time_too_long.go index 67b4cded4..b207d027c 100644 --- a/v3/lints/cabf_ev/lint_ev_valid_time_too_long.go +++ b/v3/lints/cabf_ev/lint_ev_valid_time_too_long.go @@ -1,7 +1,7 @@ package cabf_ev /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_ev_valid_time_too_long_test.go b/v3/lints/cabf_ev/lint_ev_valid_time_too_long_test.go index aad6c078a..19abc053e 100644 --- a/v3/lints/cabf_ev/lint_ev_valid_time_too_long_test.go +++ b/v3/lints/cabf_ev/lint_ev_valid_time_too_long_test.go @@ -1,7 +1,7 @@ package cabf_ev /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/cabf_ev/lint_onion_subject_validity_time_too_large.go b/v3/lints/cabf_ev/lint_onion_subject_validity_time_too_large.go index 83672ee42..40f619616 100644 --- a/v3/lints/cabf_ev/lint_onion_subject_validity_time_too_large.go +++ b/v3/lints/cabf_ev/lint_onion_subject_validity_time_too_large.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_ian_bare_wildcard.go b/v3/lints/community/lint_ian_bare_wildcard.go index 29870e50b..5a25d8d9a 100644 --- a/v3/lints/community/lint_ian_bare_wildcard.go +++ b/v3/lints/community/lint_ian_bare_wildcard.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_ian_bare_wildcard_test.go b/v3/lints/community/lint_ian_bare_wildcard_test.go index c1c945f8a..9ec2237e0 100644 --- a/v3/lints/community/lint_ian_bare_wildcard_test.go +++ b/v3/lints/community/lint_ian_bare_wildcard_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_ian_dns_name_includes_null_char.go b/v3/lints/community/lint_ian_dns_name_includes_null_char.go index 5b21e7dfc..d6f10fca3 100644 --- a/v3/lints/community/lint_ian_dns_name_includes_null_char.go +++ b/v3/lints/community/lint_ian_dns_name_includes_null_char.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_ian_dns_name_includes_null_char_test.go b/v3/lints/community/lint_ian_dns_name_includes_null_char_test.go index fb0a91ba9..0484de98d 100644 --- a/v3/lints/community/lint_ian_dns_name_includes_null_char_test.go +++ b/v3/lints/community/lint_ian_dns_name_includes_null_char_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_ian_dns_name_starts_with_period.go b/v3/lints/community/lint_ian_dns_name_starts_with_period.go index d81e57c10..afa9085de 100644 --- a/v3/lints/community/lint_ian_dns_name_starts_with_period.go +++ b/v3/lints/community/lint_ian_dns_name_starts_with_period.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_ian_dns_name_starts_with_period_test.go b/v3/lints/community/lint_ian_dns_name_starts_with_period_test.go index 04253c037..4ac600bdd 100644 --- a/v3/lints/community/lint_ian_dns_name_starts_with_period_test.go +++ b/v3/lints/community/lint_ian_dns_name_starts_with_period_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_ian_iana_pub_suffix_empty.go b/v3/lints/community/lint_ian_iana_pub_suffix_empty.go index e733445c5..cfbcd04d4 100644 --- a/v3/lints/community/lint_ian_iana_pub_suffix_empty.go +++ b/v3/lints/community/lint_ian_iana_pub_suffix_empty.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_ian_iana_pub_suffix_empty_test.go b/v3/lints/community/lint_ian_iana_pub_suffix_empty_test.go index 23a294ad4..a24ee9f54 100644 --- a/v3/lints/community/lint_ian_iana_pub_suffix_empty_test.go +++ b/v3/lints/community/lint_ian_iana_pub_suffix_empty_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_ian_wildcard_not_first.go b/v3/lints/community/lint_ian_wildcard_not_first.go index b93f9de1c..807c20ef5 100644 --- a/v3/lints/community/lint_ian_wildcard_not_first.go +++ b/v3/lints/community/lint_ian_wildcard_not_first.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_ian_wildcard_not_first_test.go b/v3/lints/community/lint_ian_wildcard_not_first_test.go index bff786403..de38d4c88 100644 --- a/v3/lints/community/lint_ian_wildcard_not_first_test.go +++ b/v3/lints/community/lint_ian_wildcard_not_first_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_is_redacted_cert.go b/v3/lints/community/lint_is_redacted_cert.go index 0612a3bec..686f08a62 100644 --- a/v3/lints/community/lint_is_redacted_cert.go +++ b/v3/lints/community/lint_is_redacted_cert.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_is_redacted_cert_test.go b/v3/lints/community/lint_is_redacted_cert_test.go index dfa15b59a..365115086 100644 --- a/v3/lints/community/lint_is_redacted_cert_test.go +++ b/v3/lints/community/lint_is_redacted_cert_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_issuer_dn_leading_whitespace.go b/v3/lints/community/lint_issuer_dn_leading_whitespace.go index 6fe3646ed..aa99a67a2 100644 --- a/v3/lints/community/lint_issuer_dn_leading_whitespace.go +++ b/v3/lints/community/lint_issuer_dn_leading_whitespace.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_issuer_dn_leading_whitespace_test.go b/v3/lints/community/lint_issuer_dn_leading_whitespace_test.go index 213f8697b..ea353c097 100644 --- a/v3/lints/community/lint_issuer_dn_leading_whitespace_test.go +++ b/v3/lints/community/lint_issuer_dn_leading_whitespace_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_issuer_dn_trailing_whitespace.go b/v3/lints/community/lint_issuer_dn_trailing_whitespace.go index 3f24a3bfc..39122541f 100644 --- a/v3/lints/community/lint_issuer_dn_trailing_whitespace.go +++ b/v3/lints/community/lint_issuer_dn_trailing_whitespace.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_issuer_dn_trailing_whitespace_test.go b/v3/lints/community/lint_issuer_dn_trailing_whitespace_test.go index 4b320ff5d..1601cc278 100644 --- a/v3/lints/community/lint_issuer_dn_trailing_whitespace_test.go +++ b/v3/lints/community/lint_issuer_dn_trailing_whitespace_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_issuer_multiple_rdn.go b/v3/lints/community/lint_issuer_multiple_rdn.go index 56b20cc08..9affa1473 100644 --- a/v3/lints/community/lint_issuer_multiple_rdn.go +++ b/v3/lints/community/lint_issuer_multiple_rdn.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_issuer_multiple_rdn_test.go b/v3/lints/community/lint_issuer_multiple_rdn_test.go index 115736a46..fbe26f11a 100644 --- a/v3/lints/community/lint_issuer_multiple_rdn_test.go +++ b/v3/lints/community/lint_issuer_multiple_rdn_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_rsa_exp_negative.go b/v3/lints/community/lint_rsa_exp_negative.go index 870fad637..f4ff1f236 100644 --- a/v3/lints/community/lint_rsa_exp_negative.go +++ b/v3/lints/community/lint_rsa_exp_negative.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_rsa_exp_negative_test.go b/v3/lints/community/lint_rsa_exp_negative_test.go index 80659c909..62926ff21 100644 --- a/v3/lints/community/lint_rsa_exp_negative_test.go +++ b/v3/lints/community/lint_rsa_exp_negative_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_rsa_fermat_factorization.go b/v3/lints/community/lint_rsa_fermat_factorization.go index 76ed8c526..3a9be265b 100644 --- a/v3/lints/community/lint_rsa_fermat_factorization.go +++ b/v3/lints/community/lint_rsa_fermat_factorization.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_rsa_no_public_key.go b/v3/lints/community/lint_rsa_no_public_key.go index c53256719..255114773 100644 --- a/v3/lints/community/lint_rsa_no_public_key.go +++ b/v3/lints/community/lint_rsa_no_public_key.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_bare_wildcard.go b/v3/lints/community/lint_san_bare_wildcard.go index 083495f57..5bc95ff57 100644 --- a/v3/lints/community/lint_san_bare_wildcard.go +++ b/v3/lints/community/lint_san_bare_wildcard.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_bare_wildcard_test.go b/v3/lints/community/lint_san_bare_wildcard_test.go index 739835d5a..48657cd1e 100644 --- a/v3/lints/community/lint_san_bare_wildcard_test.go +++ b/v3/lints/community/lint_san_bare_wildcard_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_dns_name_duplicate.go b/v3/lints/community/lint_san_dns_name_duplicate.go index 2d3476712..bc3205e91 100644 --- a/v3/lints/community/lint_san_dns_name_duplicate.go +++ b/v3/lints/community/lint_san_dns_name_duplicate.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_dns_name_duplicate_test.go b/v3/lints/community/lint_san_dns_name_duplicate_test.go index 2b0f585b2..d70de0b68 100644 --- a/v3/lints/community/lint_san_dns_name_duplicate_test.go +++ b/v3/lints/community/lint_san_dns_name_duplicate_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_dns_name_includes_null_char.go b/v3/lints/community/lint_san_dns_name_includes_null_char.go index 6e023d036..a1a35a11f 100644 --- a/v3/lints/community/lint_san_dns_name_includes_null_char.go +++ b/v3/lints/community/lint_san_dns_name_includes_null_char.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_dns_name_includes_null_char_test.go b/v3/lints/community/lint_san_dns_name_includes_null_char_test.go index 260b94bd2..f69a7c261 100644 --- a/v3/lints/community/lint_san_dns_name_includes_null_char_test.go +++ b/v3/lints/community/lint_san_dns_name_includes_null_char_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_dns_name_starts_with_period.go b/v3/lints/community/lint_san_dns_name_starts_with_period.go index 54e1ba870..9e0388804 100644 --- a/v3/lints/community/lint_san_dns_name_starts_with_period.go +++ b/v3/lints/community/lint_san_dns_name_starts_with_period.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_dns_name_starts_with_period_test.go b/v3/lints/community/lint_san_dns_name_starts_with_period_test.go index d7e1e5a2e..b08661d44 100644 --- a/v3/lints/community/lint_san_dns_name_starts_with_period_test.go +++ b/v3/lints/community/lint_san_dns_name_starts_with_period_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_iana_pub_suffix_empty.go b/v3/lints/community/lint_san_iana_pub_suffix_empty.go index ee91b6f50..5749c4987 100644 --- a/v3/lints/community/lint_san_iana_pub_suffix_empty.go +++ b/v3/lints/community/lint_san_iana_pub_suffix_empty.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_iana_pub_suffix_empty_test.go b/v3/lints/community/lint_san_iana_pub_suffix_empty_test.go index 832f342cb..d960ad433 100644 --- a/v3/lints/community/lint_san_iana_pub_suffix_empty_test.go +++ b/v3/lints/community/lint_san_iana_pub_suffix_empty_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_wildcard_not_first.go b/v3/lints/community/lint_san_wildcard_not_first.go index 2d5526fbe..49a2c6f0a 100644 --- a/v3/lints/community/lint_san_wildcard_not_first.go +++ b/v3/lints/community/lint_san_wildcard_not_first.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_san_wildcard_not_first_test.go b/v3/lints/community/lint_san_wildcard_not_first_test.go index f873b95e6..eb17d0e50 100644 --- a/v3/lints/community/lint_san_wildcard_not_first_test.go +++ b/v3/lints/community/lint_san_wildcard_not_first_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_subject_dn_leading_whitespace.go b/v3/lints/community/lint_subject_dn_leading_whitespace.go index 354b25732..57683e517 100644 --- a/v3/lints/community/lint_subject_dn_leading_whitespace.go +++ b/v3/lints/community/lint_subject_dn_leading_whitespace.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_subject_dn_leading_whitespace_test.go b/v3/lints/community/lint_subject_dn_leading_whitespace_test.go index d309510d2..01a6e8230 100644 --- a/v3/lints/community/lint_subject_dn_leading_whitespace_test.go +++ b/v3/lints/community/lint_subject_dn_leading_whitespace_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_subject_dn_trailing_whitespace.go b/v3/lints/community/lint_subject_dn_trailing_whitespace.go index 7cd411d4f..1aadefe28 100644 --- a/v3/lints/community/lint_subject_dn_trailing_whitespace.go +++ b/v3/lints/community/lint_subject_dn_trailing_whitespace.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_subject_dn_trailing_whitespace_test.go b/v3/lints/community/lint_subject_dn_trailing_whitespace_test.go index 1fd6ec384..cdb1937ff 100644 --- a/v3/lints/community/lint_subject_dn_trailing_whitespace_test.go +++ b/v3/lints/community/lint_subject_dn_trailing_whitespace_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_subject_multiple_rdn.go b/v3/lints/community/lint_subject_multiple_rdn.go index 2e3336637..32b255042 100644 --- a/v3/lints/community/lint_subject_multiple_rdn.go +++ b/v3/lints/community/lint_subject_multiple_rdn.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -27,7 +27,7 @@ type SubjectRDNHasMultipleAttribute struct{} func init() { lint.RegisterLint(&lint.Lint{ Name: "n_multiple_subject_rdn", - Description: "Certificates typically do not have have multiple attributes in a single RDN (subject). This may be an error.", + Description: "Certificates typically do not have multiple attributes in a single RDN (subject). This may be an error.", Citation: "lint.AWSLabs certlint", Source: lint.Community, EffectiveDate: util.ZeroDate, diff --git a/v3/lints/community/lint_subject_multiple_rdn_test.go b/v3/lints/community/lint_subject_multiple_rdn_test.go index 2d7d9da2a..c266824b1 100644 --- a/v3/lints/community/lint_subject_multiple_rdn_test.go +++ b/v3/lints/community/lint_subject_multiple_rdn_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_validity_time_not_positive.go b/v3/lints/community/lint_validity_time_not_positive.go index e9f420ed3..02c61ff7d 100644 --- a/v3/lints/community/lint_validity_time_not_positive.go +++ b/v3/lints/community/lint_validity_time_not_positive.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/community/lint_validity_time_not_positive_test.go b/v3/lints/community/lint_validity_time_not_positive_test.go index 76b4b47fc..261d84f50 100644 --- a/v3/lints/community/lint_validity_time_not_positive_test.go +++ b/v3/lints/community/lint_validity_time_not_positive_test.go @@ -1,7 +1,7 @@ package community /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_etsi_present_qcs_critical.go b/v3/lints/etsi/lint_qcstatem_etsi_present_qcs_critical.go index a568f976e..1e465a8a9 100644 --- a/v3/lints/etsi/lint_qcstatem_etsi_present_qcs_critical.go +++ b/v3/lints/etsi/lint_qcstatem_etsi_present_qcs_critical.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_etsi_present_qcs_critical_test.go b/v3/lints/etsi/lint_qcstatem_etsi_present_qcs_critical_test.go index 74ccc8416..2a3cbe598 100644 --- a/v3/lints/etsi/lint_qcstatem_etsi_present_qcs_critical_test.go +++ b/v3/lints/etsi/lint_qcstatem_etsi_present_qcs_critical_test.go @@ -1,7 +1,7 @@ package etsi /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_etsi_type_as_statem.go b/v3/lints/etsi/lint_qcstatem_etsi_type_as_statem.go index b2ca72336..2952aa72b 100644 --- a/v3/lints/etsi/lint_qcstatem_etsi_type_as_statem.go +++ b/v3/lints/etsi/lint_qcstatem_etsi_type_as_statem.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_etsi_type_as_statem_test.go b/v3/lints/etsi/lint_qcstatem_etsi_type_as_statem_test.go index 293698735..a94805656 100644 --- a/v3/lints/etsi/lint_qcstatem_etsi_type_as_statem_test.go +++ b/v3/lints/etsi/lint_qcstatem_etsi_type_as_statem_test.go @@ -1,7 +1,7 @@ package etsi /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_mandatory_etsi_statems.go b/v3/lints/etsi/lint_qcstatem_mandatory_etsi_statems.go index ec67f7a27..099f244d6 100644 --- a/v3/lints/etsi/lint_qcstatem_mandatory_etsi_statems.go +++ b/v3/lints/etsi/lint_qcstatem_mandatory_etsi_statems.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_mandatory_etsi_statems_test.go b/v3/lints/etsi/lint_qcstatem_mandatory_etsi_statems_test.go index c6b6fab16..f5e806686 100644 --- a/v3/lints/etsi/lint_qcstatem_mandatory_etsi_statems_test.go +++ b/v3/lints/etsi/lint_qcstatem_mandatory_etsi_statems_test.go @@ -1,7 +1,7 @@ package etsi /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qccompliance_valid.go b/v3/lints/etsi/lint_qcstatem_qccompliance_valid.go index 31d3ce835..61a3fae1a 100644 --- a/v3/lints/etsi/lint_qcstatem_qccompliance_valid.go +++ b/v3/lints/etsi/lint_qcstatem_qccompliance_valid.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qccompliance_valid_test.go b/v3/lints/etsi/lint_qcstatem_qccompliance_valid_test.go index ab75b182d..22e47700a 100644 --- a/v3/lints/etsi/lint_qcstatem_qccompliance_valid_test.go +++ b/v3/lints/etsi/lint_qcstatem_qccompliance_valid_test.go @@ -1,7 +1,7 @@ package etsi /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qclimitvalue_valid.go b/v3/lints/etsi/lint_qcstatem_qclimitvalue_valid.go index bc31e6431..a589ed6bf 100644 --- a/v3/lints/etsi/lint_qcstatem_qclimitvalue_valid.go +++ b/v3/lints/etsi/lint_qcstatem_qclimitvalue_valid.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qclimitvalue_valid_test.go b/v3/lints/etsi/lint_qcstatem_qclimitvalue_valid_test.go index a853b58ee..8e227fa73 100644 --- a/v3/lints/etsi/lint_qcstatem_qclimitvalue_valid_test.go +++ b/v3/lints/etsi/lint_qcstatem_qclimitvalue_valid_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qcpds_lang_case.go b/v3/lints/etsi/lint_qcstatem_qcpds_lang_case.go index 82f87772e..63111891e 100644 --- a/v3/lints/etsi/lint_qcstatem_qcpds_lang_case.go +++ b/v3/lints/etsi/lint_qcstatem_qcpds_lang_case.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qcpds_lang_case_test.go b/v3/lints/etsi/lint_qcstatem_qcpds_lang_case_test.go index afd9fae97..62d747cc5 100644 --- a/v3/lints/etsi/lint_qcstatem_qcpds_lang_case_test.go +++ b/v3/lints/etsi/lint_qcstatem_qcpds_lang_case_test.go @@ -1,7 +1,7 @@ package etsi /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qcpds_valid.go b/v3/lints/etsi/lint_qcstatem_qcpds_valid.go index 2df626891..b10d75e2d 100644 --- a/v3/lints/etsi/lint_qcstatem_qcpds_valid.go +++ b/v3/lints/etsi/lint_qcstatem_qcpds_valid.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qcpds_valid_test.go b/v3/lints/etsi/lint_qcstatem_qcpds_valid_test.go index 6d18a5bd6..4b4d9b532 100644 --- a/v3/lints/etsi/lint_qcstatem_qcpds_valid_test.go +++ b/v3/lints/etsi/lint_qcstatem_qcpds_valid_test.go @@ -1,7 +1,7 @@ package etsi /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qcretentionperiod_valid.go b/v3/lints/etsi/lint_qcstatem_qcretentionperiod_valid.go index 7ae39557f..27700805a 100644 --- a/v3/lints/etsi/lint_qcstatem_qcretentionperiod_valid.go +++ b/v3/lints/etsi/lint_qcstatem_qcretentionperiod_valid.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qcsscd_valid.go b/v3/lints/etsi/lint_qcstatem_qcsscd_valid.go index cc08b6839..70efac551 100644 --- a/v3/lints/etsi/lint_qcstatem_qcsscd_valid.go +++ b/v3/lints/etsi/lint_qcstatem_qcsscd_valid.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qctype_valid.go b/v3/lints/etsi/lint_qcstatem_qctype_valid.go index cf957bde2..5e63b86c4 100644 --- a/v3/lints/etsi/lint_qcstatem_qctype_valid.go +++ b/v3/lints/etsi/lint_qcstatem_qctype_valid.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qctype_valid_test.go b/v3/lints/etsi/lint_qcstatem_qctype_valid_test.go index 7be76c1ab..ae0769e0f 100644 --- a/v3/lints/etsi/lint_qcstatem_qctype_valid_test.go +++ b/v3/lints/etsi/lint_qcstatem_qctype_valid_test.go @@ -1,7 +1,7 @@ package etsi /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/etsi/lint_qcstatem_qctype_web.go b/v3/lints/etsi/lint_qcstatem_qctype_web.go index a2b152239..d6969a5fd 100644 --- a/v3/lints/etsi/lint_qcstatem_qctype_web.go +++ b/v3/lints/etsi/lint_qcstatem_qctype_web.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -28,7 +28,7 @@ type qcStatemQctypeWeb struct{} func init() { lint.RegisterLint(&lint.Lint{ Name: "w_qcstatem_qctype_web", - Description: "Checks that a QC Statement of the type Id-etsi-qcs-QcType features features at least the type IdEtsiQcsQctWeb", + Description: "Checks that a QC Statement of the type Id-etsi-qcs-QcType features at least the type IdEtsiQcsQctWeb", Citation: "ETSI EN 319 412 - 5 V2.2.1 (2017 - 11) / Section 4.2.3", Source: lint.EtsiEsi, EffectiveDate: util.EtsiEn319_412_5_V2_2_1_Date, diff --git a/v3/lints/etsi/lint_qcstatem_qctype_web_test.go b/v3/lints/etsi/lint_qcstatem_qctype_web_test.go index aa666bbcd..b26202c4b 100644 --- a/v3/lints/etsi/lint_qcstatem_qctype_web_test.go +++ b/v3/lints/etsi/lint_qcstatem_qctype_web_test.go @@ -1,7 +1,7 @@ package etsi /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_e_prohibit_dsa_usage.go b/v3/lints/mozilla/lint_e_prohibit_dsa_usage.go index bfe87f0a6..3382f92b7 100644 --- a/v3/lints/mozilla/lint_e_prohibit_dsa_usage.go +++ b/v3/lints/mozilla/lint_e_prohibit_dsa_usage.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_e_prohibit_dsa_usage_test.go b/v3/lints/mozilla/lint_e_prohibit_dsa_usage_test.go index 67f5576a7..622c69b2a 100644 --- a/v3/lints/mozilla/lint_e_prohibit_dsa_usage_test.go +++ b/v3/lints/mozilla/lint_e_prohibit_dsa_usage_test.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_allowed_eku.go b/v3/lints/mozilla/lint_mp_allowed_eku.go index 7fd70ed94..fe586cb02 100644 --- a/v3/lints/mozilla/lint_mp_allowed_eku.go +++ b/v3/lints/mozilla/lint_mp_allowed_eku.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_allowed_eku_test.go b/v3/lints/mozilla/lint_mp_allowed_eku_test.go index acd71ceae..d727aa103 100644 --- a/v3/lints/mozilla/lint_mp_allowed_eku_test.go +++ b/v3/lints/mozilla/lint_mp_allowed_eku_test.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_authority_key_identifier_correct.go b/v3/lints/mozilla/lint_mp_authority_key_identifier_correct.go index 017ded94b..1e2ae7eb6 100644 --- a/v3/lints/mozilla/lint_mp_authority_key_identifier_correct.go +++ b/v3/lints/mozilla/lint_mp_authority_key_identifier_correct.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_authority_key_identifier_correct_test.go b/v3/lints/mozilla/lint_mp_authority_key_identifier_correct_test.go index 124e3b3b3..85de886ab 100644 --- a/v3/lints/mozilla/lint_mp_authority_key_identifier_correct_test.go +++ b/v3/lints/mozilla/lint_mp_authority_key_identifier_correct_test.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_ecdsa_pub_key_encoding_correct.go b/v3/lints/mozilla/lint_mp_ecdsa_pub_key_encoding_correct.go index 9a13db7ce..9dc5f2505 100644 --- a/v3/lints/mozilla/lint_mp_ecdsa_pub_key_encoding_correct.go +++ b/v3/lints/mozilla/lint_mp_ecdsa_pub_key_encoding_correct.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_ecdsa_pub_key_encoding_correct_test.go b/v3/lints/mozilla/lint_mp_ecdsa_pub_key_encoding_correct_test.go index 740b82718..1f442ab56 100644 --- a/v3/lints/mozilla/lint_mp_ecdsa_pub_key_encoding_correct_test.go +++ b/v3/lints/mozilla/lint_mp_ecdsa_pub_key_encoding_correct_test.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_ecdsa_signature_encoding_correct.go b/v3/lints/mozilla/lint_mp_ecdsa_signature_encoding_correct.go index 2339d05a0..9c97622b7 100644 --- a/v3/lints/mozilla/lint_mp_ecdsa_signature_encoding_correct.go +++ b/v3/lints/mozilla/lint_mp_ecdsa_signature_encoding_correct.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_ecdsa_signature_encoding_correct_test.go b/v3/lints/mozilla/lint_mp_ecdsa_signature_encoding_correct_test.go index cec0eb715..7677e7867 100644 --- a/v3/lints/mozilla/lint_mp_ecdsa_signature_encoding_correct_test.go +++ b/v3/lints/mozilla/lint_mp_ecdsa_signature_encoding_correct_test.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_exponent_cannot_be_one.go b/v3/lints/mozilla/lint_mp_exponent_cannot_be_one.go index 9e51d9e41..010741499 100644 --- a/v3/lints/mozilla/lint_mp_exponent_cannot_be_one.go +++ b/v3/lints/mozilla/lint_mp_exponent_cannot_be_one.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_exponent_cannot_be_one_test.go b/v3/lints/mozilla/lint_mp_exponent_cannot_be_one_test.go index ceb7baaea..f2cc6aca7 100644 --- a/v3/lints/mozilla/lint_mp_exponent_cannot_be_one_test.go +++ b/v3/lints/mozilla/lint_mp_exponent_cannot_be_one_test.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_modulus_must_be_2048_bits_or_more.go b/v3/lints/mozilla/lint_mp_modulus_must_be_2048_bits_or_more.go index 4dd21ffef..bd0da2470 100644 --- a/v3/lints/mozilla/lint_mp_modulus_must_be_2048_bits_or_more.go +++ b/v3/lints/mozilla/lint_mp_modulus_must_be_2048_bits_or_more.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_modulus_must_be_2048_bits_or_more_test.go b/v3/lints/mozilla/lint_mp_modulus_must_be_2048_bits_or_more_test.go index 13b036c6e..9fe5e5b4c 100644 --- a/v3/lints/mozilla/lint_mp_modulus_must_be_2048_bits_or_more_test.go +++ b/v3/lints/mozilla/lint_mp_modulus_must_be_2048_bits_or_more_test.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_modulus_must_be_divisible_by_8.go b/v3/lints/mozilla/lint_mp_modulus_must_be_divisible_by_8.go index 96f129f49..aed4a8d50 100644 --- a/v3/lints/mozilla/lint_mp_modulus_must_be_divisible_by_8.go +++ b/v3/lints/mozilla/lint_mp_modulus_must_be_divisible_by_8.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_modulus_must_be_divisible_by_8_test.go b/v3/lints/mozilla/lint_mp_modulus_must_be_divisible_by_8_test.go index a3daba9a7..a7a5434f0 100644 --- a/v3/lints/mozilla/lint_mp_modulus_must_be_divisible_by_8_test.go +++ b/v3/lints/mozilla/lint_mp_modulus_must_be_divisible_by_8_test.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_pss_parameters_encoding_correct.go b/v3/lints/mozilla/lint_mp_pss_parameters_encoding_correct.go index cdf56a429..03ba32b00 100644 --- a/v3/lints/mozilla/lint_mp_pss_parameters_encoding_correct.go +++ b/v3/lints/mozilla/lint_mp_pss_parameters_encoding_correct.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_pss_parameters_encoding_correct_test.go b/v3/lints/mozilla/lint_mp_pss_parameters_encoding_correct_test.go index 06427af1f..53e36c8f7 100644 --- a/v3/lints/mozilla/lint_mp_pss_parameters_encoding_correct_test.go +++ b/v3/lints/mozilla/lint_mp_pss_parameters_encoding_correct_test.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_rsassa-pss_in_spki.go b/v3/lints/mozilla/lint_mp_rsassa-pss_in_spki.go index f7fdfd03d..9a4e842c6 100644 --- a/v3/lints/mozilla/lint_mp_rsassa-pss_in_spki.go +++ b/v3/lints/mozilla/lint_mp_rsassa-pss_in_spki.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/mozilla/lint_mp_rsassa-pss_in_spki_test.go b/v3/lints/mozilla/lint_mp_rsassa-pss_in_spki_test.go index cfe20d278..96968964a 100644 --- a/v3/lints/mozilla/lint_mp_rsassa-pss_in_spki_test.go +++ b/v3/lints/mozilla/lint_mp_rsassa-pss_in_spki_test.go @@ -1,7 +1,7 @@ package mozilla /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_basic_constraints_not_critical.go b/v3/lints/rfc/lint_basic_constraints_not_critical.go index 3e0b70933..4d6b8dabf 100644 --- a/v3/lints/rfc/lint_basic_constraints_not_critical.go +++ b/v3/lints/rfc/lint_basic_constraints_not_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_basic_constraints_not_critical_test.go b/v3/lints/rfc/lint_basic_constraints_not_critical_test.go index 6ae0f13e9..6dd3929de 100644 --- a/v3/lints/rfc/lint_basic_constraints_not_critical_test.go +++ b/v3/lints/rfc/lint_basic_constraints_not_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ca_subject_field_empty.go b/v3/lints/rfc/lint_ca_subject_field_empty.go index 3d5478221..55ddd8833 100644 --- a/v3/lints/rfc/lint_ca_subject_field_empty.go +++ b/v3/lints/rfc/lint_ca_subject_field_empty.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ca_subject_field_empty_test.go b/v3/lints/rfc/lint_ca_subject_field_empty_test.go index 7f79dbe2d..ad0a292b4 100644 --- a/v3/lints/rfc/lint_ca_subject_field_empty_test.go +++ b/v3/lints/rfc/lint_ca_subject_field_empty_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_cert_contains_unique_identifier.go b/v3/lints/rfc/lint_cert_contains_unique_identifier.go index dbb51c5b7..0184d4496 100644 --- a/v3/lints/rfc/lint_cert_contains_unique_identifier.go +++ b/v3/lints/rfc/lint_cert_contains_unique_identifier.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_cert_contains_unique_identifier_test.go b/v3/lints/rfc/lint_cert_contains_unique_identifier_test.go index 870da1e45..60577c949 100644 --- a/v3/lints/rfc/lint_cert_contains_unique_identifier_test.go +++ b/v3/lints/rfc/lint_cert_contains_unique_identifier_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_cert_extensions_version_not_3.go b/v3/lints/rfc/lint_cert_extensions_version_not_3.go index 73b5d5658..48ada489a 100644 --- a/v3/lints/rfc/lint_cert_extensions_version_not_3.go +++ b/v3/lints/rfc/lint_cert_extensions_version_not_3.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_cert_extensions_version_not_3_test.go b/v3/lints/rfc/lint_cert_extensions_version_not_3_test.go index bd35f3feb..17bdc4393 100644 --- a/v3/lints/rfc/lint_cert_extensions_version_not_3_test.go +++ b/v3/lints/rfc/lint_cert_extensions_version_not_3_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_cert_unique_identifier_version_not_2_or_3.go b/v3/lints/rfc/lint_cert_unique_identifier_version_not_2_or_3.go index f6c982b7c..01bbef59b 100644 --- a/v3/lints/rfc/lint_cert_unique_identifier_version_not_2_or_3.go +++ b/v3/lints/rfc/lint_cert_unique_identifier_version_not_2_or_3.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -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} diff --git a/v3/lints/rfc/lint_cert_unique_identifier_version_not_2_or_3_test.go b/v3/lints/rfc/lint_cert_unique_identifier_version_not_2_or_3_test.go index 868b256b6..79ce89f56 100644 --- a/v3/lints/rfc/lint_cert_unique_identifier_version_not_2_or_3_test.go +++ b/v3/lints/rfc/lint_cert_unique_identifier_version_not_2_or_3_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_crl_has_next_update.go b/v3/lints/rfc/lint_crl_has_next_update.go new file mode 100644 index 000000000..70dd461dd --- /dev/null +++ b/v3/lints/rfc/lint_crl_has_next_update.go @@ -0,0 +1,56 @@ +package rfc + +/* + * ZLint Copyright 2023 Regents of the University of Michigan + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +import ( + "github.com/zmap/zcrypto/x509" + "github.com/zmap/zlint/v3/lint" + "github.com/zmap/zlint/v3/util" +) + +type crlHasNextUpdate struct{} + +/************************************************ +RFC 5280: 5.1.2.5 +Conforming CRL issuers MUST include the nextUpdate field in all CRLs. +************************************************/ + +func init() { + lint.RegisterRevocationListLint(&lint.RevocationListLint{ + LintMetadata: lint.LintMetadata{ + Name: "e_crl_has_next_update", + Description: "Conforming CRL issuers MUST include the nextUpdate field in all CRLs.", + Citation: "RFC 5280: 5.1.2.5", + Source: lint.RFC5280, + EffectiveDate: util.RFC5280Date, + }, + Lint: NewCrlHasNextUpdate, + }) +} + +func NewCrlHasNextUpdate() lint.RevocationListLintInterface { + return &crlHasNextUpdate{} +} + +func (l *crlHasNextUpdate) CheckApplies(c *x509.RevocationList) bool { + return true +} + +func (l *crlHasNextUpdate) Execute(c *x509.RevocationList) *lint.LintResult { + if c.NextUpdate.IsZero() { + return &lint.LintResult{Status: lint.Error, Details: "Confoming CRL issuers MUST include the nextUpdate field in all CRLs."} + } + return &lint.LintResult{Status: lint.Pass} +} diff --git a/v3/lints/rfc/lint_crl_has_next_update_test.go b/v3/lints/rfc/lint_crl_has_next_update_test.go new file mode 100644 index 000000000..774e7dda5 --- /dev/null +++ b/v3/lints/rfc/lint_crl_has_next_update_test.go @@ -0,0 +1,42 @@ +package rfc + +import ( + "testing" + + "github.com/zmap/zlint/v3/lint" + "github.com/zmap/zlint/v3/test" +) + +/* + * ZLint Copyright 2023 Regents of the University of Michigan + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +func TestCrlHasNextUpdate(t *testing.T) { + inputPath := "crlHasNextUpdate.pem" + want := lint.Pass + got := test.TestRevocationListLint(t, "e_crl_has_next_update", inputPath).Status + + if want != got { + t.Errorf("%s: expected %s, got %s", inputPath, want, got) + } +} + +func TestCrlNotHaveNextUpdate(t *testing.T) { + inputPath := "crlNotHaveNextUpdate.pem" + want := lint.Error + got := test.TestRevocationListLint(t, "e_crl_has_next_update", inputPath).Status + + if want != got { + t.Errorf("%s: expected %s, got %s", inputPath, want, got) + } +} diff --git a/v3/lints/rfc/lint_distribution_point_incomplete.go b/v3/lints/rfc/lint_distribution_point_incomplete.go index 75766eb9d..5a7324919 100644 --- a/v3/lints/rfc/lint_distribution_point_incomplete.go +++ b/v3/lints/rfc/lint_distribution_point_incomplete.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_distribution_point_incomplete_test.go b/v3/lints/rfc/lint_distribution_point_incomplete_test.go index a505d6592..1d7dc507d 100644 --- a/v3/lints/rfc/lint_distribution_point_incomplete_test.go +++ b/v3/lints/rfc/lint_distribution_point_incomplete_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_distribution_point_missing_ldap_or_uri.go b/v3/lints/rfc/lint_distribution_point_missing_ldap_or_uri.go index 8a15bd9ee..f381a1fe9 100644 --- a/v3/lints/rfc/lint_distribution_point_missing_ldap_or_uri.go +++ b/v3/lints/rfc/lint_distribution_point_missing_ldap_or_uri.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_distribution_point_missing_ldap_or_uri_test.go b/v3/lints/rfc/lint_distribution_point_missing_ldap_or_uri_test.go index 167ea9fd3..912bd9511 100644 --- a/v3/lints/rfc/lint_distribution_point_missing_ldap_or_uri_test.go +++ b/v3/lints/rfc/lint_distribution_point_missing_ldap_or_uri_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_dnsname_contains_empty_label.go b/v3/lints/rfc/lint_dnsname_contains_empty_label.go index 88eb1fb19..4e094e45f 100644 --- a/v3/lints/rfc/lint_dnsname_contains_empty_label.go +++ b/v3/lints/rfc/lint_dnsname_contains_empty_label.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_dnsname_contains_empty_label_test.go b/v3/lints/rfc/lint_dnsname_contains_empty_label_test.go index 0357684b9..bd8a0bab8 100644 --- a/v3/lints/rfc/lint_dnsname_contains_empty_label_test.go +++ b/v3/lints/rfc/lint_dnsname_contains_empty_label_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_dnsname_hyphen_in_sld.go b/v3/lints/rfc/lint_dnsname_hyphen_in_sld.go index a92ccda7e..11e8db068 100644 --- a/v3/lints/rfc/lint_dnsname_hyphen_in_sld.go +++ b/v3/lints/rfc/lint_dnsname_hyphen_in_sld.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_dnsname_hyphen_in_sld_test.go b/v3/lints/rfc/lint_dnsname_hyphen_in_sld_test.go index ccb4ba576..f3c7f0332 100644 --- a/v3/lints/rfc/lint_dnsname_hyphen_in_sld_test.go +++ b/v3/lints/rfc/lint_dnsname_hyphen_in_sld_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_dnsname_label_too_long.go b/v3/lints/rfc/lint_dnsname_label_too_long.go index 25782be04..23d33441b 100644 --- a/v3/lints/rfc/lint_dnsname_label_too_long.go +++ b/v3/lints/rfc/lint_dnsname_label_too_long.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_dnsname_label_too_long_test.go b/v3/lints/rfc/lint_dnsname_label_too_long_test.go index 47b6de1b5..366a3d546 100644 --- a/v3/lints/rfc/lint_dnsname_label_too_long_test.go +++ b/v3/lints/rfc/lint_dnsname_label_too_long_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_dnsname_underscore_in_sld.go b/v3/lints/rfc/lint_dnsname_underscore_in_sld.go index 3efa8d264..1c2686167 100644 --- a/v3/lints/rfc/lint_dnsname_underscore_in_sld.go +++ b/v3/lints/rfc/lint_dnsname_underscore_in_sld.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_dnsname_underscore_in_sld_test.go b/v3/lints/rfc/lint_dnsname_underscore_in_sld_test.go index 8e9cd63f8..488f05699 100644 --- a/v3/lints/rfc/lint_dnsname_underscore_in_sld_test.go +++ b/v3/lints/rfc/lint_dnsname_underscore_in_sld_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_dnsname_underscore_in_trd.go b/v3/lints/rfc/lint_dnsname_underscore_in_trd.go index 3e07d6b86..c5e404206 100644 --- a/v3/lints/rfc/lint_dnsname_underscore_in_trd.go +++ b/v3/lints/rfc/lint_dnsname_underscore_in_trd.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_dnsname_underscore_in_trd_test.go b/v3/lints/rfc/lint_dnsname_underscore_in_trd_test.go index 90f5d73ae..0f0c74fbe 100644 --- a/v3/lints/rfc/lint_dnsname_underscore_in_trd_test.go +++ b/v3/lints/rfc/lint_dnsname_underscore_in_trd_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ecdsa_allowed_ku.go b/v3/lints/rfc/lint_ecdsa_allowed_ku.go index 14e15605d..46e5f5c9d 100644 --- a/v3/lints/rfc/lint_ecdsa_allowed_ku.go +++ b/v3/lints/rfc/lint_ecdsa_allowed_ku.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -26,15 +26,19 @@ import ( type ecdsaAllowedKU struct{} -/************************************************ +/* +*********************************************** RFC 8813: 3. Updates to Section 3 If the keyUsage extension is present in a certificate that indicates - id-ecPublicKey in SubjectPublicKeyInfo, then the following values - MUST NOT be present: - keyEncipherment; and - dataEncipherment. -************************************************/ + id-ecPublicKey in SubjectPublicKeyInfo, then the following values + MUST NOT be present: + + keyEncipherment; and + dataEncipherment. + +*********************************************** +*/ func init() { lint.RegisterLint(&lint.Lint{ Name: "e_ecdsa_allowed_ku", diff --git a/v3/lints/rfc/lint_ecdsa_allowed_ku_test.go b/v3/lints/rfc/lint_ecdsa_allowed_ku_test.go index c8873b878..a1ad7456c 100644 --- a/v3/lints/rfc/lint_ecdsa_allowed_ku_test.go +++ b/v3/lints/rfc/lint_ecdsa_allowed_ku_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ecdsa_ee_invalid_ku.go b/v3/lints/rfc/lint_ecdsa_ee_invalid_ku.go index 600d02da9..05811eb28 100644 --- a/v3/lints/rfc/lint_ecdsa_ee_invalid_ku.go +++ b/v3/lints/rfc/lint_ecdsa_ee_invalid_ku.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_eku_critical_improperly.go b/v3/lints/rfc/lint_eku_critical_improperly.go index f23e934f6..4d4536092 100644 --- a/v3/lints/rfc/lint_eku_critical_improperly.go +++ b/v3/lints/rfc/lint_eku_critical_improperly.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_eku_critical_improperly_test.go b/v3/lints/rfc/lint_eku_critical_improperly_test.go index 4a95997ac..5dc410c42 100644 --- a/v3/lints/rfc/lint_eku_critical_improperly_test.go +++ b/v3/lints/rfc/lint_eku_critical_improperly_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_aia_access_location_missing.go b/v3/lints/rfc/lint_ext_aia_access_location_missing.go index 784b36e46..fd39686cd 100644 --- a/v3/lints/rfc/lint_ext_aia_access_location_missing.go +++ b/v3/lints/rfc/lint_ext_aia_access_location_missing.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_aia_access_location_missing_test.go b/v3/lints/rfc/lint_ext_aia_access_location_missing_test.go index b47b50705..8832caa59 100644 --- a/v3/lints/rfc/lint_ext_aia_access_location_missing_test.go +++ b/v3/lints/rfc/lint_ext_aia_access_location_missing_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_aia_marked_critical.go b/v3/lints/rfc/lint_ext_aia_marked_critical.go index 8c236821d..df491a346 100644 --- a/v3/lints/rfc/lint_ext_aia_marked_critical.go +++ b/v3/lints/rfc/lint_ext_aia_marked_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_aia_marked_critical_test.go b/v3/lints/rfc/lint_ext_aia_marked_critical_test.go index 81b84324f..7945d5586 100644 --- a/v3/lints/rfc/lint_ext_aia_marked_critical_test.go +++ b/v3/lints/rfc/lint_ext_aia_marked_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_authority_key_identifier_critical.go b/v3/lints/rfc/lint_ext_authority_key_identifier_critical.go index e0856d8db..a15092077 100644 --- a/v3/lints/rfc/lint_ext_authority_key_identifier_critical.go +++ b/v3/lints/rfc/lint_ext_authority_key_identifier_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_authority_key_identifier_critical_test.go b/v3/lints/rfc/lint_ext_authority_key_identifier_critical_test.go index 7eab5f3ca..4d5b869a0 100644 --- a/v3/lints/rfc/lint_ext_authority_key_identifier_critical_test.go +++ b/v3/lints/rfc/lint_ext_authority_key_identifier_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_authority_key_identifier_missing.go b/v3/lints/rfc/lint_ext_authority_key_identifier_missing.go index 711b2b960..663c23b15 100644 --- a/v3/lints/rfc/lint_ext_authority_key_identifier_missing.go +++ b/v3/lints/rfc/lint_ext_authority_key_identifier_missing.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_authority_key_identifier_missing_test.go b/v3/lints/rfc/lint_ext_authority_key_identifier_missing_test.go index 5690106f7..0b011da96 100644 --- a/v3/lints/rfc/lint_ext_authority_key_identifier_missing_test.go +++ b/v3/lints/rfc/lint_ext_authority_key_identifier_missing_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_authority_key_identifier_no_key_identifier.go b/v3/lints/rfc/lint_ext_authority_key_identifier_no_key_identifier.go index 82c62f928..115287660 100644 --- a/v3/lints/rfc/lint_ext_authority_key_identifier_no_key_identifier.go +++ b/v3/lints/rfc/lint_ext_authority_key_identifier_no_key_identifier.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_authority_key_identifier_no_key_identifier_test.go b/v3/lints/rfc/lint_ext_authority_key_identifier_no_key_identifier_test.go index 0566ef557..cd7c5a474 100644 --- a/v3/lints/rfc/lint_ext_authority_key_identifier_no_key_identifier_test.go +++ b/v3/lints/rfc/lint_ext_authority_key_identifier_no_key_identifier_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_contains_noticeref.go b/v3/lints/rfc/lint_ext_cert_policy_contains_noticeref.go index 17313d29c..79e4b468b 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_contains_noticeref.go +++ b/v3/lints/rfc/lint_ext_cert_policy_contains_noticeref.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_contains_noticeref_test.go b/v3/lints/rfc/lint_ext_cert_policy_contains_noticeref_test.go index 6ddde3c5f..4b940111f 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_contains_noticeref_test.go +++ b/v3/lints/rfc/lint_ext_cert_policy_contains_noticeref_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_disallowed_any_policy_qualifier.go b/v3/lints/rfc/lint_ext_cert_policy_disallowed_any_policy_qualifier.go index d050929ea..d67cd3ebd 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_disallowed_any_policy_qualifier.go +++ b/v3/lints/rfc/lint_ext_cert_policy_disallowed_any_policy_qualifier.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_disallowed_any_policy_qualifier_test.go b/v3/lints/rfc/lint_ext_cert_policy_disallowed_any_policy_qualifier_test.go index 6080966ca..74081add5 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_disallowed_any_policy_qualifier_test.go +++ b/v3/lints/rfc/lint_ext_cert_policy_disallowed_any_policy_qualifier_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_duplicate.go b/v3/lints/rfc/lint_ext_cert_policy_duplicate.go index 3cd736dca..e1da6d26a 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_duplicate.go +++ b/v3/lints/rfc/lint_ext_cert_policy_duplicate.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_duplicate_test.go b/v3/lints/rfc/lint_ext_cert_policy_duplicate_test.go index 153e82efb..171975793 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_duplicate_test.go +++ b/v3/lints/rfc/lint_ext_cert_policy_duplicate_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_ia5_string.go b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_ia5_string.go index 57dd2c2ca..08e28247d 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_ia5_string.go +++ b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_ia5_string.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_ia5_string_test.go b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_ia5_string_test.go index 706d4d2da..f203db695 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_ia5_string_test.go +++ b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_ia5_string_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_includes_control.go b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_includes_control.go index 360b43220..89316938c 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_includes_control.go +++ b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_includes_control.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_includes_control_test.go b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_includes_control_test.go index 5bb89e20e..5feb02250 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_includes_control_test.go +++ b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_includes_control_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_nfc.go b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_nfc.go index 0ad63817f..9b22a8fc7 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_nfc.go +++ b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_nfc.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_nfc_test.go b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_nfc_test.go index 78b2228d1..26d377993 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_nfc_test.go +++ b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_nfc_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_utf8.go b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_utf8.go index 3c0201b98..e7334c520 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_utf8.go +++ b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_utf8.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_utf8_test.go b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_utf8_test.go index 3d4835272..54b1830aa 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_utf8_test.go +++ b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_not_utf8_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_too_long.go b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_too_long.go index 2e044c854..bbea96b3d 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_too_long.go +++ b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_too_long.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_too_long_test.go b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_too_long_test.go index 9f32d83aa..ce2555342 100644 --- a/v3/lints/rfc/lint_ext_cert_policy_explicit_text_too_long_test.go +++ b/v3/lints/rfc/lint_ext_cert_policy_explicit_text_too_long_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_crl_distribution_marked_critical.go b/v3/lints/rfc/lint_ext_crl_distribution_marked_critical.go index 0a4e9b7a6..7b56a22a5 100644 --- a/v3/lints/rfc/lint_ext_crl_distribution_marked_critical.go +++ b/v3/lints/rfc/lint_ext_crl_distribution_marked_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_crl_distribution_marked_critical_test.go b/v3/lints/rfc/lint_ext_crl_distribution_marked_critical_test.go index 2f1bd24af..82917a3a9 100644 --- a/v3/lints/rfc/lint_ext_crl_distribution_marked_critical_test.go +++ b/v3/lints/rfc/lint_ext_crl_distribution_marked_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_duplicate_extension.go b/v3/lints/rfc/lint_ext_duplicate_extension.go index fcbfa77a9..8f036eec8 100644 --- a/v3/lints/rfc/lint_ext_duplicate_extension.go +++ b/v3/lints/rfc/lint_ext_duplicate_extension.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_duplicate_extension_test.go b/v3/lints/rfc/lint_ext_duplicate_extension_test.go index 4251d8bfd..985e4d2a4 100644 --- a/v3/lints/rfc/lint_ext_duplicate_extension_test.go +++ b/v3/lints/rfc/lint_ext_duplicate_extension_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -23,22 +23,19 @@ import ( func TestDuplicateExtensions(t *testing.T) { testCases := []struct { - name string - path string - expectedStatus lint.LintStatus - expectedDetails string + name string + path string + expectedStatus lint.LintStatus }{ { - name: "duplicate SAN extension", - path: "extSANDuplicated.pem", - expectedStatus: lint.Error, - expectedDetails: "The following extensions are duplicated: 2.5.29.17", + name: "duplicate SAN extension", + path: "extSANDuplicated.pem", + expectedStatus: lint.Error, }, { - name: "multiple duplicate extensions", - path: "multDupeExts.pem", - expectedStatus: lint.Error, - expectedDetails: "The following extensions are duplicated: 2.5.29.14, 2.5.29.35", + name: "multiple duplicate extensions", + path: "multDupeExts.pem", + expectedStatus: lint.Error, }, { name: "no duplicate extensions", @@ -47,7 +44,8 @@ func TestDuplicateExtensions(t *testing.T) { }, } - for _, tc := range testCases { + for _, testCase := range testCases { + tc := testCase t.Run(tc.name, func(t *testing.T) { t.Parallel() actual := test.TestLint("e_ext_duplicate_extension", tc.path) @@ -55,10 +53,6 @@ func TestDuplicateExtensions(t *testing.T) { t.Errorf("%s: expected status %q got %q", tc.path, tc.expectedStatus, actual.Status) } - if actual.Details != tc.expectedDetails { - t.Errorf("%s: expected detail %q got %q", - tc.path, tc.expectedDetails, actual.Details) - } }) } } diff --git a/v3/lints/rfc/lint_ext_freshest_crl_marked_critical.go b/v3/lints/rfc/lint_ext_freshest_crl_marked_critical.go index 71d8e9d52..a6d34ae68 100644 --- a/v3/lints/rfc/lint_ext_freshest_crl_marked_critical.go +++ b/v3/lints/rfc/lint_ext_freshest_crl_marked_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_freshest_crl_marked_critical_test.go b/v3/lints/rfc/lint_ext_freshest_crl_marked_critical_test.go index f2d33d7ba..7c83919f6 100644 --- a/v3/lints/rfc/lint_ext_freshest_crl_marked_critical_test.go +++ b/v3/lints/rfc/lint_ext_freshest_crl_marked_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_critical.go b/v3/lints/rfc/lint_ext_ian_critical.go index f32665806..6479d5722 100644 --- a/v3/lints/rfc/lint_ext_ian_critical.go +++ b/v3/lints/rfc/lint_ext_ian_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_critical_test.go b/v3/lints/rfc/lint_ext_ian_critical_test.go index e74ddfc18..15ba1c3f6 100644 --- a/v3/lints/rfc/lint_ext_ian_critical_test.go +++ b/v3/lints/rfc/lint_ext_ian_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_dns_not_ia5_string.go b/v3/lints/rfc/lint_ext_ian_dns_not_ia5_string.go index 15c45ccf5..f1d31d876 100644 --- a/v3/lints/rfc/lint_ext_ian_dns_not_ia5_string.go +++ b/v3/lints/rfc/lint_ext_ian_dns_not_ia5_string.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_dns_not_ia5_string_test.go b/v3/lints/rfc/lint_ext_ian_dns_not_ia5_string_test.go index 10b33f747..21061d703 100644 --- a/v3/lints/rfc/lint_ext_ian_dns_not_ia5_string_test.go +++ b/v3/lints/rfc/lint_ext_ian_dns_not_ia5_string_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_empty_name.go b/v3/lints/rfc/lint_ext_ian_empty_name.go index 757984aa2..2d812a843 100644 --- a/v3/lints/rfc/lint_ext_ian_empty_name.go +++ b/v3/lints/rfc/lint_ext_ian_empty_name.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_empty_name_test.go b/v3/lints/rfc/lint_ext_ian_empty_name_test.go index a47c7d4c6..3b9b991b8 100644 --- a/v3/lints/rfc/lint_ext_ian_empty_name_test.go +++ b/v3/lints/rfc/lint_ext_ian_empty_name_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_no_entries.go b/v3/lints/rfc/lint_ext_ian_no_entries.go index eadb3b9fa..63995b387 100644 --- a/v3/lints/rfc/lint_ext_ian_no_entries.go +++ b/v3/lints/rfc/lint_ext_ian_no_entries.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_no_entries_test.go b/v3/lints/rfc/lint_ext_ian_no_entries_test.go index 334475602..64c9bc2d7 100644 --- a/v3/lints/rfc/lint_ext_ian_no_entries_test.go +++ b/v3/lints/rfc/lint_ext_ian_no_entries_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_rfc822_format_invalid.go b/v3/lints/rfc/lint_ext_ian_rfc822_format_invalid.go index 46165145d..7266a8ac1 100644 --- a/v3/lints/rfc/lint_ext_ian_rfc822_format_invalid.go +++ b/v3/lints/rfc/lint_ext_ian_rfc822_format_invalid.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_rfc822_format_invalid_test.go b/v3/lints/rfc/lint_ext_ian_rfc822_format_invalid_test.go index 06fef282f..5bd9de4af 100644 --- a/v3/lints/rfc/lint_ext_ian_rfc822_format_invalid_test.go +++ b/v3/lints/rfc/lint_ext_ian_rfc822_format_invalid_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_space_dns_name.go b/v3/lints/rfc/lint_ext_ian_space_dns_name.go index 495b82c7d..3f7f88a1f 100644 --- a/v3/lints/rfc/lint_ext_ian_space_dns_name.go +++ b/v3/lints/rfc/lint_ext_ian_space_dns_name.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_space_dns_name_test.go b/v3/lints/rfc/lint_ext_ian_space_dns_name_test.go index cf9d1e284..6f54f0abf 100644 --- a/v3/lints/rfc/lint_ext_ian_space_dns_name_test.go +++ b/v3/lints/rfc/lint_ext_ian_space_dns_name_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_uri_format_invalid.go b/v3/lints/rfc/lint_ext_ian_uri_format_invalid.go index 31b20a0dd..c5afd3745 100644 --- a/v3/lints/rfc/lint_ext_ian_uri_format_invalid.go +++ b/v3/lints/rfc/lint_ext_ian_uri_format_invalid.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_uri_format_invalid_test.go b/v3/lints/rfc/lint_ext_ian_uri_format_invalid_test.go index 1b972bf93..a61211d4d 100644 --- a/v3/lints/rfc/lint_ext_ian_uri_format_invalid_test.go +++ b/v3/lints/rfc/lint_ext_ian_uri_format_invalid_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_uri_host_not_fqdn_or_ip.go b/v3/lints/rfc/lint_ext_ian_uri_host_not_fqdn_or_ip.go index 23afb908c..2ee7450ca 100644 --- a/v3/lints/rfc/lint_ext_ian_uri_host_not_fqdn_or_ip.go +++ b/v3/lints/rfc/lint_ext_ian_uri_host_not_fqdn_or_ip.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_uri_host_not_fqdn_or_ip_test.go b/v3/lints/rfc/lint_ext_ian_uri_host_not_fqdn_or_ip_test.go index 327763f77..d8552c4a5 100644 --- a/v3/lints/rfc/lint_ext_ian_uri_host_not_fqdn_or_ip_test.go +++ b/v3/lints/rfc/lint_ext_ian_uri_host_not_fqdn_or_ip_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_uri_not_ia5.go b/v3/lints/rfc/lint_ext_ian_uri_not_ia5.go index 41004ea36..4d4602b8e 100644 --- a/v3/lints/rfc/lint_ext_ian_uri_not_ia5.go +++ b/v3/lints/rfc/lint_ext_ian_uri_not_ia5.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_uri_not_ia5_test.go b/v3/lints/rfc/lint_ext_ian_uri_not_ia5_test.go index 49edd5025..ec0914ce2 100644 --- a/v3/lints/rfc/lint_ext_ian_uri_not_ia5_test.go +++ b/v3/lints/rfc/lint_ext_ian_uri_not_ia5_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_uri_relative.go b/v3/lints/rfc/lint_ext_ian_uri_relative.go index 7d1112d71..bf5e2d7c7 100644 --- a/v3/lints/rfc/lint_ext_ian_uri_relative.go +++ b/v3/lints/rfc/lint_ext_ian_uri_relative.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_ian_uri_relative_test.go b/v3/lints/rfc/lint_ext_ian_uri_relative_test.go index f6316139e..d2ff44046 100644 --- a/v3/lints/rfc/lint_ext_ian_uri_relative_test.go +++ b/v3/lints/rfc/lint_ext_ian_uri_relative_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_key_usage_cert_sign_without_ca.go b/v3/lints/rfc/lint_ext_key_usage_cert_sign_without_ca.go index 655b46ffc..226da4f46 100644 --- a/v3/lints/rfc/lint_ext_key_usage_cert_sign_without_ca.go +++ b/v3/lints/rfc/lint_ext_key_usage_cert_sign_without_ca.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_key_usage_cert_sign_without_ca_test.go b/v3/lints/rfc/lint_ext_key_usage_cert_sign_without_ca_test.go index 6c700e73b..d0549715c 100644 --- a/v3/lints/rfc/lint_ext_key_usage_cert_sign_without_ca_test.go +++ b/v3/lints/rfc/lint_ext_key_usage_cert_sign_without_ca_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_key_usage_not_critical.go b/v3/lints/rfc/lint_ext_key_usage_not_critical.go index 3a48341fe..0b11d39d5 100644 --- a/v3/lints/rfc/lint_ext_key_usage_not_critical.go +++ b/v3/lints/rfc/lint_ext_key_usage_not_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_key_usage_not_critical_test.go b/v3/lints/rfc/lint_ext_key_usage_not_critical_test.go index 3bbaae974..cb7208837 100644 --- a/v3/lints/rfc/lint_ext_key_usage_not_critical_test.go +++ b/v3/lints/rfc/lint_ext_key_usage_not_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_key_usage_without_bits.go b/v3/lints/rfc/lint_ext_key_usage_without_bits.go index fe5a918c1..dc93976a7 100644 --- a/v3/lints/rfc/lint_ext_key_usage_without_bits.go +++ b/v3/lints/rfc/lint_ext_key_usage_without_bits.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_key_usage_without_bits_test.go b/v3/lints/rfc/lint_ext_key_usage_without_bits_test.go index ac2e11488..5c9986a2e 100644 --- a/v3/lints/rfc/lint_ext_key_usage_without_bits_test.go +++ b/v3/lints/rfc/lint_ext_key_usage_without_bits_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_name_constraints_not_critical.go b/v3/lints/rfc/lint_ext_name_constraints_not_critical.go index 81da91dd9..ea5e456a7 100644 --- a/v3/lints/rfc/lint_ext_name_constraints_not_critical.go +++ b/v3/lints/rfc/lint_ext_name_constraints_not_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_name_constraints_not_critical_test.go b/v3/lints/rfc/lint_ext_name_constraints_not_critical_test.go index 36cb396c2..26a38e80d 100644 --- a/v3/lints/rfc/lint_ext_name_constraints_not_critical_test.go +++ b/v3/lints/rfc/lint_ext_name_constraints_not_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_name_constraints_not_in_ca.go b/v3/lints/rfc/lint_ext_name_constraints_not_in_ca.go index eaedbf6f5..1f1ba618d 100644 --- a/v3/lints/rfc/lint_ext_name_constraints_not_in_ca.go +++ b/v3/lints/rfc/lint_ext_name_constraints_not_in_ca.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_name_constraints_not_in_ca_test.go b/v3/lints/rfc/lint_ext_name_constraints_not_in_ca_test.go index 3147fe3c7..7093e016d 100644 --- a/v3/lints/rfc/lint_ext_name_constraints_not_in_ca_test.go +++ b/v3/lints/rfc/lint_ext_name_constraints_not_in_ca_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_policy_constraints_empty.go b/v3/lints/rfc/lint_ext_policy_constraints_empty.go index d7bed987a..e9d0d2096 100644 --- a/v3/lints/rfc/lint_ext_policy_constraints_empty.go +++ b/v3/lints/rfc/lint_ext_policy_constraints_empty.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_policy_constraints_empty_test.go b/v3/lints/rfc/lint_ext_policy_constraints_empty_test.go index a79999e83..2365004a7 100644 --- a/v3/lints/rfc/lint_ext_policy_constraints_empty_test.go +++ b/v3/lints/rfc/lint_ext_policy_constraints_empty_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_policy_constraints_not_critical.go b/v3/lints/rfc/lint_ext_policy_constraints_not_critical.go index 6c2f2c40e..df3a03508 100644 --- a/v3/lints/rfc/lint_ext_policy_constraints_not_critical.go +++ b/v3/lints/rfc/lint_ext_policy_constraints_not_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_policy_constraints_not_critical_test.go b/v3/lints/rfc/lint_ext_policy_constraints_not_critical_test.go index 822912b35..3deeed6a5 100644 --- a/v3/lints/rfc/lint_ext_policy_constraints_not_critical_test.go +++ b/v3/lints/rfc/lint_ext_policy_constraints_not_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_policy_map_any_policy.go b/v3/lints/rfc/lint_ext_policy_map_any_policy.go index a25e66d7b..9d009bbb7 100644 --- a/v3/lints/rfc/lint_ext_policy_map_any_policy.go +++ b/v3/lints/rfc/lint_ext_policy_map_any_policy.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_policy_map_any_policy_test.go b/v3/lints/rfc/lint_ext_policy_map_any_policy_test.go index 2d1e5c16a..b19066ae4 100644 --- a/v3/lints/rfc/lint_ext_policy_map_any_policy_test.go +++ b/v3/lints/rfc/lint_ext_policy_map_any_policy_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_policy_map_not_critical.go b/v3/lints/rfc/lint_ext_policy_map_not_critical.go index 49a4efbb5..ce9e87e2e 100644 --- a/v3/lints/rfc/lint_ext_policy_map_not_critical.go +++ b/v3/lints/rfc/lint_ext_policy_map_not_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_policy_map_not_critical_test.go b/v3/lints/rfc/lint_ext_policy_map_not_critical_test.go index 92e33a085..3839f6220 100644 --- a/v3/lints/rfc/lint_ext_policy_map_not_critical_test.go +++ b/v3/lints/rfc/lint_ext_policy_map_not_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_policy_map_not_in_cert_policy.go b/v3/lints/rfc/lint_ext_policy_map_not_in_cert_policy.go index 1555eec75..c9efdc466 100644 --- a/v3/lints/rfc/lint_ext_policy_map_not_in_cert_policy.go +++ b/v3/lints/rfc/lint_ext_policy_map_not_in_cert_policy.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_policy_map_not_in_cert_policy_test.go b/v3/lints/rfc/lint_ext_policy_map_not_in_cert_policy_test.go index 1c8f71bf5..e0d764ad5 100644 --- a/v3/lints/rfc/lint_ext_policy_map_not_in_cert_policy_test.go +++ b/v3/lints/rfc/lint_ext_policy_map_not_in_cert_policy_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_dns_name_too_long.go b/v3/lints/rfc/lint_ext_san_dns_name_too_long.go index f55b0bff3..612c3de33 100644 --- a/v3/lints/rfc/lint_ext_san_dns_name_too_long.go +++ b/v3/lints/rfc/lint_ext_san_dns_name_too_long.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_dns_name_too_long_test.go b/v3/lints/rfc/lint_ext_san_dns_name_too_long_test.go index b8363708d..b1b4ee08e 100644 --- a/v3/lints/rfc/lint_ext_san_dns_name_too_long_test.go +++ b/v3/lints/rfc/lint_ext_san_dns_name_too_long_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_dns_not_ia5_string.go b/v3/lints/rfc/lint_ext_san_dns_not_ia5_string.go index 8dc456bc8..31fa30470 100644 --- a/v3/lints/rfc/lint_ext_san_dns_not_ia5_string.go +++ b/v3/lints/rfc/lint_ext_san_dns_not_ia5_string.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_dns_not_ia5_string_test.go b/v3/lints/rfc/lint_ext_san_dns_not_ia5_string_test.go index c69f7e707..f119bf46d 100644 --- a/v3/lints/rfc/lint_ext_san_dns_not_ia5_string_test.go +++ b/v3/lints/rfc/lint_ext_san_dns_not_ia5_string_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_empty_name.go b/v3/lints/rfc/lint_ext_san_empty_name.go index 47256b9b6..0c4911466 100644 --- a/v3/lints/rfc/lint_ext_san_empty_name.go +++ b/v3/lints/rfc/lint_ext_san_empty_name.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_empty_name_test.go b/v3/lints/rfc/lint_ext_san_empty_name_test.go index dfa8bd573..a83fdee20 100644 --- a/v3/lints/rfc/lint_ext_san_empty_name_test.go +++ b/v3/lints/rfc/lint_ext_san_empty_name_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_no_entries.go b/v3/lints/rfc/lint_ext_san_no_entries.go index fef7d8fde..25495715b 100644 --- a/v3/lints/rfc/lint_ext_san_no_entries.go +++ b/v3/lints/rfc/lint_ext_san_no_entries.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_no_entries_test.go b/v3/lints/rfc/lint_ext_san_no_entries_test.go index 25f96f878..90072cf3b 100644 --- a/v3/lints/rfc/lint_ext_san_no_entries_test.go +++ b/v3/lints/rfc/lint_ext_san_no_entries_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_not_critical_without_subject.go b/v3/lints/rfc/lint_ext_san_not_critical_without_subject.go index 91e729a94..cd2686727 100644 --- a/v3/lints/rfc/lint_ext_san_not_critical_without_subject.go +++ b/v3/lints/rfc/lint_ext_san_not_critical_without_subject.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_not_critical_without_subject_test.go b/v3/lints/rfc/lint_ext_san_not_critical_without_subject_test.go index d64e4c582..b211c1c62 100644 --- a/v3/lints/rfc/lint_ext_san_not_critical_without_subject_test.go +++ b/v3/lints/rfc/lint_ext_san_not_critical_without_subject_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_rfc822_format_invalid.go b/v3/lints/rfc/lint_ext_san_rfc822_format_invalid.go index 9364a496d..0a09cd560 100644 --- a/v3/lints/rfc/lint_ext_san_rfc822_format_invalid.go +++ b/v3/lints/rfc/lint_ext_san_rfc822_format_invalid.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_rfc822_format_invalid_test.go b/v3/lints/rfc/lint_ext_san_rfc822_format_invalid_test.go index 77ec302f0..e585c8076 100644 --- a/v3/lints/rfc/lint_ext_san_rfc822_format_invalid_test.go +++ b/v3/lints/rfc/lint_ext_san_rfc822_format_invalid_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_space_dns_name.go b/v3/lints/rfc/lint_ext_san_space_dns_name.go index 4b59e987d..b58d5c835 100644 --- a/v3/lints/rfc/lint_ext_san_space_dns_name.go +++ b/v3/lints/rfc/lint_ext_san_space_dns_name.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_space_dns_name_test.go b/v3/lints/rfc/lint_ext_san_space_dns_name_test.go index a18bd8ee8..a1648c21a 100644 --- a/v3/lints/rfc/lint_ext_san_space_dns_name_test.go +++ b/v3/lints/rfc/lint_ext_san_space_dns_name_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_uri_format_invalid.go b/v3/lints/rfc/lint_ext_san_uri_format_invalid.go index 6b727d457..dac113af8 100644 --- a/v3/lints/rfc/lint_ext_san_uri_format_invalid.go +++ b/v3/lints/rfc/lint_ext_san_uri_format_invalid.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_uri_format_invalid_test.go b/v3/lints/rfc/lint_ext_san_uri_format_invalid_test.go index 7ec23c910..df564536e 100644 --- a/v3/lints/rfc/lint_ext_san_uri_format_invalid_test.go +++ b/v3/lints/rfc/lint_ext_san_uri_format_invalid_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_uri_host_not_fqdn_or_ip.go b/v3/lints/rfc/lint_ext_san_uri_host_not_fqdn_or_ip.go index 94d9bd2a1..b1a72bab9 100644 --- a/v3/lints/rfc/lint_ext_san_uri_host_not_fqdn_or_ip.go +++ b/v3/lints/rfc/lint_ext_san_uri_host_not_fqdn_or_ip.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_uri_host_not_fqdn_or_ip_test.go b/v3/lints/rfc/lint_ext_san_uri_host_not_fqdn_or_ip_test.go index 12c385f8b..aa2cd2c62 100644 --- a/v3/lints/rfc/lint_ext_san_uri_host_not_fqdn_or_ip_test.go +++ b/v3/lints/rfc/lint_ext_san_uri_host_not_fqdn_or_ip_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_uri_not_ia5.go b/v3/lints/rfc/lint_ext_san_uri_not_ia5.go index 5e6183655..d91812421 100644 --- a/v3/lints/rfc/lint_ext_san_uri_not_ia5.go +++ b/v3/lints/rfc/lint_ext_san_uri_not_ia5.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_uri_not_ia5_test.go b/v3/lints/rfc/lint_ext_san_uri_not_ia5_test.go index d1ccf00fd..d572e0954 100644 --- a/v3/lints/rfc/lint_ext_san_uri_not_ia5_test.go +++ b/v3/lints/rfc/lint_ext_san_uri_not_ia5_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_uri_relative.go b/v3/lints/rfc/lint_ext_san_uri_relative.go index 901cd0a17..0e9db95f6 100644 --- a/v3/lints/rfc/lint_ext_san_uri_relative.go +++ b/v3/lints/rfc/lint_ext_san_uri_relative.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_san_uri_relative_test.go b/v3/lints/rfc/lint_ext_san_uri_relative_test.go index 4e64dc1c3..66af1c836 100644 --- a/v3/lints/rfc/lint_ext_san_uri_relative_test.go +++ b/v3/lints/rfc/lint_ext_san_uri_relative_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_subject_directory_attr_critical.go b/v3/lints/rfc/lint_ext_subject_directory_attr_critical.go index f1dbf9f53..82925fde0 100644 --- a/v3/lints/rfc/lint_ext_subject_directory_attr_critical.go +++ b/v3/lints/rfc/lint_ext_subject_directory_attr_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_subject_directory_attr_critical_test.go b/v3/lints/rfc/lint_ext_subject_directory_attr_critical_test.go index 6c01739c4..f2f7bc604 100644 --- a/v3/lints/rfc/lint_ext_subject_directory_attr_critical_test.go +++ b/v3/lints/rfc/lint_ext_subject_directory_attr_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_subject_key_identifier_critical.go b/v3/lints/rfc/lint_ext_subject_key_identifier_critical.go index 9351893ba..15cd21839 100644 --- a/v3/lints/rfc/lint_ext_subject_key_identifier_critical.go +++ b/v3/lints/rfc/lint_ext_subject_key_identifier_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_subject_key_identifier_critical_test.go b/v3/lints/rfc/lint_ext_subject_key_identifier_critical_test.go index ce89249a6..9e2558264 100644 --- a/v3/lints/rfc/lint_ext_subject_key_identifier_critical_test.go +++ b/v3/lints/rfc/lint_ext_subject_key_identifier_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_subject_key_identifier_missing_ca.go b/v3/lints/rfc/lint_ext_subject_key_identifier_missing_ca.go index dc7754cca..7adae089e 100644 --- a/v3/lints/rfc/lint_ext_subject_key_identifier_missing_ca.go +++ b/v3/lints/rfc/lint_ext_subject_key_identifier_missing_ca.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_subject_key_identifier_missing_ca_test.go b/v3/lints/rfc/lint_ext_subject_key_identifier_missing_ca_test.go index a5150f058..dd4eae18d 100644 --- a/v3/lints/rfc/lint_ext_subject_key_identifier_missing_ca_test.go +++ b/v3/lints/rfc/lint_ext_subject_key_identifier_missing_ca_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_subject_key_identifier_missing_sub_cert.go b/v3/lints/rfc/lint_ext_subject_key_identifier_missing_sub_cert.go index 791460619..c8ba38a12 100644 --- a/v3/lints/rfc/lint_ext_subject_key_identifier_missing_sub_cert.go +++ b/v3/lints/rfc/lint_ext_subject_key_identifier_missing_sub_cert.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_ext_subject_key_identifier_missing_sub_cert_test.go b/v3/lints/rfc/lint_ext_subject_key_identifier_missing_sub_cert_test.go index 60c3d2c6f..ec4b8ebea 100644 --- a/v3/lints/rfc/lint_ext_subject_key_identifier_missing_sub_cert_test.go +++ b/v3/lints/rfc/lint_ext_subject_key_identifier_missing_sub_cert_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_generalized_time_does_not_include_seconds.go b/v3/lints/rfc/lint_generalized_time_does_not_include_seconds.go index b6839f8ec..c3496008a 100644 --- a/v3/lints/rfc/lint_generalized_time_does_not_include_seconds.go +++ b/v3/lints/rfc/lint_generalized_time_does_not_include_seconds.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_generalized_time_includes_fraction_seconds.go b/v3/lints/rfc/lint_generalized_time_includes_fraction_seconds.go index eb0590ce8..57221f928 100644 --- a/v3/lints/rfc/lint_generalized_time_includes_fraction_seconds.go +++ b/v3/lints/rfc/lint_generalized_time_includes_fraction_seconds.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_generalized_time_not_in_zulu.go b/v3/lints/rfc/lint_generalized_time_not_in_zulu.go index efdb79519..289ee4ae0 100644 --- a/v3/lints/rfc/lint_generalized_time_not_in_zulu.go +++ b/v3/lints/rfc/lint_generalized_time_not_in_zulu.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_generalized_time_not_in_zulu_test.go b/v3/lints/rfc/lint_generalized_time_not_in_zulu_test.go index 7cfa9eb38..cbfda10bf 100644 --- a/v3/lints/rfc/lint_generalized_time_not_in_zulu_test.go +++ b/v3/lints/rfc/lint_generalized_time_not_in_zulu_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_idn_dnsname_malformed_unicode.go b/v3/lints/rfc/lint_idn_dnsname_malformed_unicode.go index 347d5900d..daaf1e473 100644 --- a/v3/lints/rfc/lint_idn_dnsname_malformed_unicode.go +++ b/v3/lints/rfc/lint_idn_dnsname_malformed_unicode.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_idn_dnsname_malformed_unicode_test.go b/v3/lints/rfc/lint_idn_dnsname_malformed_unicode_test.go index ac4b7918e..c3584add6 100644 --- a/v3/lints/rfc/lint_idn_dnsname_malformed_unicode_test.go +++ b/v3/lints/rfc/lint_idn_dnsname_malformed_unicode_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_idn_dnsname_must_be_nfc.go b/v3/lints/rfc/lint_idn_dnsname_must_be_nfc.go index 09b7b5e5b..74c64f33c 100644 --- a/v3/lints/rfc/lint_idn_dnsname_must_be_nfc.go +++ b/v3/lints/rfc/lint_idn_dnsname_must_be_nfc.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_idn_dnsname_must_be_nfc_test.go b/v3/lints/rfc/lint_idn_dnsname_must_be_nfc_test.go index 4fa091067..8fcc32564 100644 --- a/v3/lints/rfc/lint_idn_dnsname_must_be_nfc_test.go +++ b/v3/lints/rfc/lint_idn_dnsname_must_be_nfc_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_incorrect_ku_encoding.go b/v3/lints/rfc/lint_incorrect_ku_encoding.go index 877792556..6c0342261 100644 --- a/v3/lints/rfc/lint_incorrect_ku_encoding.go +++ b/v3/lints/rfc/lint_incorrect_ku_encoding.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_incorrect_ku_encoding_test.go b/v3/lints/rfc/lint_incorrect_ku_encoding_test.go index 4981f0040..a3837f46d 100644 --- a/v3/lints/rfc/lint_incorrect_ku_encoding_test.go +++ b/v3/lints/rfc/lint_incorrect_ku_encoding_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_inhibit_any_policy_not_critical.go b/v3/lints/rfc/lint_inhibit_any_policy_not_critical.go index 4473eeae1..4bd5a23e0 100644 --- a/v3/lints/rfc/lint_inhibit_any_policy_not_critical.go +++ b/v3/lints/rfc/lint_inhibit_any_policy_not_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_inhibit_any_policy_not_critical_test.go b/v3/lints/rfc/lint_inhibit_any_policy_not_critical_test.go index 244745fba..66b5041cf 100644 --- a/v3/lints/rfc/lint_inhibit_any_policy_not_critical_test.go +++ b/v3/lints/rfc/lint_inhibit_any_policy_not_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_issuer_dn_country_not_printable_string.go b/v3/lints/rfc/lint_issuer_dn_country_not_printable_string.go index 09895f94f..5a85d5923 100644 --- a/v3/lints/rfc/lint_issuer_dn_country_not_printable_string.go +++ b/v3/lints/rfc/lint_issuer_dn_country_not_printable_string.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_issuer_dn_country_not_printable_string_test.go b/v3/lints/rfc/lint_issuer_dn_country_not_printable_string_test.go index a88c9ff36..2e36fc868 100644 --- a/v3/lints/rfc/lint_issuer_dn_country_not_printable_string_test.go +++ b/v3/lints/rfc/lint_issuer_dn_country_not_printable_string_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_issuer_field_empty.go b/v3/lints/rfc/lint_issuer_field_empty.go index 312cf4c5b..9429101ac 100644 --- a/v3/lints/rfc/lint_issuer_field_empty.go +++ b/v3/lints/rfc/lint_issuer_field_empty.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_issuer_field_empty_test.go b/v3/lints/rfc/lint_issuer_field_empty_test.go index 94b45d656..19fe57fa2 100644 --- a/v3/lints/rfc/lint_issuer_field_empty_test.go +++ b/v3/lints/rfc/lint_issuer_field_empty_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_key_usage_incorrect_length.go b/v3/lints/rfc/lint_key_usage_incorrect_length.go index 47bd9041c..1f85c1a82 100644 --- a/v3/lints/rfc/lint_key_usage_incorrect_length.go +++ b/v3/lints/rfc/lint_key_usage_incorrect_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_key_usage_incorrect_length_test.go b/v3/lints/rfc/lint_key_usage_incorrect_length_test.go index 81065d7a2..fbf74efe0 100644 --- a/v3/lints/rfc/lint_key_usage_incorrect_length_test.go +++ b/v3/lints/rfc/lint_key_usage_incorrect_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_empty.go b/v3/lints/rfc/lint_name_constraint_empty.go index 7815ee099..a82cce491 100644 --- a/v3/lints/rfc/lint_name_constraint_empty.go +++ b/v3/lints/rfc/lint_name_constraint_empty.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_empty_test.go b/v3/lints/rfc/lint_name_constraint_empty_test.go index 25412d9e9..a7083713c 100644 --- a/v3/lints/rfc/lint_name_constraint_empty_test.go +++ b/v3/lints/rfc/lint_name_constraint_empty_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_maximum_not_absent.go b/v3/lints/rfc/lint_name_constraint_maximum_not_absent.go index c8a25c9ec..b24ec5f9f 100644 --- a/v3/lints/rfc/lint_name_constraint_maximum_not_absent.go +++ b/v3/lints/rfc/lint_name_constraint_maximum_not_absent.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_maximum_not_absent_test.go b/v3/lints/rfc/lint_name_constraint_maximum_not_absent_test.go index 16d9031ff..2e2bbd200 100644 --- a/v3/lints/rfc/lint_name_constraint_maximum_not_absent_test.go +++ b/v3/lints/rfc/lint_name_constraint_maximum_not_absent_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_minimum_non_zero.go b/v3/lints/rfc/lint_name_constraint_minimum_non_zero.go index 1393ac743..c52467411 100644 --- a/v3/lints/rfc/lint_name_constraint_minimum_non_zero.go +++ b/v3/lints/rfc/lint_name_constraint_minimum_non_zero.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_minimum_non_zero_test.go b/v3/lints/rfc/lint_name_constraint_minimum_non_zero_test.go index 340b90321..61a263bd4 100644 --- a/v3/lints/rfc/lint_name_constraint_minimum_non_zero_test.go +++ b/v3/lints/rfc/lint_name_constraint_minimum_non_zero_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_not_fqdn.go b/v3/lints/rfc/lint_name_constraint_not_fqdn.go index 1775472af..d9ca2cd71 100644 --- a/v3/lints/rfc/lint_name_constraint_not_fqdn.go +++ b/v3/lints/rfc/lint_name_constraint_not_fqdn.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_not_fqdn_test.go b/v3/lints/rfc/lint_name_constraint_not_fqdn_test.go index 92b2c55e1..e5a238263 100644 --- a/v3/lints/rfc/lint_name_constraint_not_fqdn_test.go +++ b/v3/lints/rfc/lint_name_constraint_not_fqdn_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_on_edi_party_name.go b/v3/lints/rfc/lint_name_constraint_on_edi_party_name.go index 7aee6c9d1..b1111aae4 100644 --- a/v3/lints/rfc/lint_name_constraint_on_edi_party_name.go +++ b/v3/lints/rfc/lint_name_constraint_on_edi_party_name.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_on_edi_party_name_test.go b/v3/lints/rfc/lint_name_constraint_on_edi_party_name_test.go index e6018a3fd..61131a778 100644 --- a/v3/lints/rfc/lint_name_constraint_on_edi_party_name_test.go +++ b/v3/lints/rfc/lint_name_constraint_on_edi_party_name_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_on_registered_id.go b/v3/lints/rfc/lint_name_constraint_on_registered_id.go index e626d55c3..0e2912a80 100644 --- a/v3/lints/rfc/lint_name_constraint_on_registered_id.go +++ b/v3/lints/rfc/lint_name_constraint_on_registered_id.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_on_registered_id_test.go b/v3/lints/rfc/lint_name_constraint_on_registered_id_test.go index 9c89a56b3..bfafcd897 100644 --- a/v3/lints/rfc/lint_name_constraint_on_registered_id_test.go +++ b/v3/lints/rfc/lint_name_constraint_on_registered_id_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_on_x400.go b/v3/lints/rfc/lint_name_constraint_on_x400.go index 42fb5c67c..b9d2dae56 100644 --- a/v3/lints/rfc/lint_name_constraint_on_x400.go +++ b/v3/lints/rfc/lint_name_constraint_on_x400.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_name_constraint_on_x400_test.go b/v3/lints/rfc/lint_name_constraint_on_x400_test.go index e22d86061..d26d5c427 100644 --- a/v3/lints/rfc/lint_name_constraint_on_x400_test.go +++ b/v3/lints/rfc/lint_name_constraint_on_x400_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_path_len_constraint_improperly_included.go b/v3/lints/rfc/lint_path_len_constraint_improperly_included.go index 7d08aff28..465c967ca 100644 --- a/v3/lints/rfc/lint_path_len_constraint_improperly_included.go +++ b/v3/lints/rfc/lint_path_len_constraint_improperly_included.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_path_len_constraint_improperly_included_test.go b/v3/lints/rfc/lint_path_len_constraint_improperly_included_test.go index 0e193f0a0..e1cb755a2 100644 --- a/v3/lints/rfc/lint_path_len_constraint_improperly_included_test.go +++ b/v3/lints/rfc/lint_path_len_constraint_improperly_included_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_path_len_constraint_zero_or_less.go b/v3/lints/rfc/lint_path_len_constraint_zero_or_less.go index 44f20bde2..51a613890 100644 --- a/v3/lints/rfc/lint_path_len_constraint_zero_or_less.go +++ b/v3/lints/rfc/lint_path_len_constraint_zero_or_less.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_path_len_constraint_zero_or_less_test.go b/v3/lints/rfc/lint_path_len_constraint_zero_or_less_test.go index f3aae7084..651e28dd0 100644 --- a/v3/lints/rfc/lint_path_len_constraint_zero_or_less_test.go +++ b/v3/lints/rfc/lint_path_len_constraint_zero_or_less_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_rsa_allowed_ku_ca.go b/v3/lints/rfc/lint_rsa_allowed_ku_ca.go index 158c055ab..931620bfc 100644 --- a/v3/lints/rfc/lint_rsa_allowed_ku_ca.go +++ b/v3/lints/rfc/lint_rsa_allowed_ku_ca.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_rsa_allowed_ku_ca_test.go b/v3/lints/rfc/lint_rsa_allowed_ku_ca_test.go index cbcc775ba..20d0ada4f 100644 --- a/v3/lints/rfc/lint_rsa_allowed_ku_ca_test.go +++ b/v3/lints/rfc/lint_rsa_allowed_ku_ca_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_rsa_allowed_ku_ee.go b/v3/lints/rfc/lint_rsa_allowed_ku_ee.go index 4902a758a..85e9e3269 100644 --- a/v3/lints/rfc/lint_rsa_allowed_ku_ee.go +++ b/v3/lints/rfc/lint_rsa_allowed_ku_ee.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_rsa_allowed_ku_ee_test.go b/v3/lints/rfc/lint_rsa_allowed_ku_ee_test.go index 886afabd6..01ec3b4ea 100644 --- a/v3/lints/rfc/lint_rsa_allowed_ku_ee_test.go +++ b/v3/lints/rfc/lint_rsa_allowed_ku_ee_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_rsa_allowed_ku_no_encipherment_ca.go b/v3/lints/rfc/lint_rsa_allowed_ku_no_encipherment_ca.go index a8d74bf57..7df5b2020 100644 --- a/v3/lints/rfc/lint_rsa_allowed_ku_no_encipherment_ca.go +++ b/v3/lints/rfc/lint_rsa_allowed_ku_no_encipherment_ca.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_rsa_allowed_ku_no_encipherment_ca_test.go b/v3/lints/rfc/lint_rsa_allowed_ku_no_encipherment_ca_test.go index 58757d775..da30db28e 100644 --- a/v3/lints/rfc/lint_rsa_allowed_ku_no_encipherment_ca_test.go +++ b/v3/lints/rfc/lint_rsa_allowed_ku_no_encipherment_ca_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_serial_number_longer_than_20_octets.go b/v3/lints/rfc/lint_serial_number_longer_than_20_octets.go index 0e490c60a..2c86528fa 100644 --- a/v3/lints/rfc/lint_serial_number_longer_than_20_octets.go +++ b/v3/lints/rfc/lint_serial_number_longer_than_20_octets.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_serial_number_longer_than_20_octets_test.go b/v3/lints/rfc/lint_serial_number_longer_than_20_octets_test.go index c048cf020..72e068a48 100644 --- a/v3/lints/rfc/lint_serial_number_longer_than_20_octets_test.go +++ b/v3/lints/rfc/lint_serial_number_longer_than_20_octets_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_serial_number_not_positive.go b/v3/lints/rfc/lint_serial_number_not_positive.go index de3d2848f..4493b4bd5 100644 --- a/v3/lints/rfc/lint_serial_number_not_positive.go +++ b/v3/lints/rfc/lint_serial_number_not_positive.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_serial_number_not_positive_test.go b/v3/lints/rfc/lint_serial_number_not_positive_test.go index b51599884..ce429d044 100644 --- a/v3/lints/rfc/lint_serial_number_not_positive_test.go +++ b/v3/lints/rfc/lint_serial_number_not_positive_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_spki_rsa_encryption_parameter_not_null.go b/v3/lints/rfc/lint_spki_rsa_encryption_parameter_not_null.go index af73101ab..0aff82047 100644 --- a/v3/lints/rfc/lint_spki_rsa_encryption_parameter_not_null.go +++ b/v3/lints/rfc/lint_spki_rsa_encryption_parameter_not_null.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_common_name_max_length.go b/v3/lints/rfc/lint_subject_common_name_max_length.go index 1fdf5f2ec..49cc4eded 100644 --- a/v3/lints/rfc/lint_subject_common_name_max_length.go +++ b/v3/lints/rfc/lint_subject_common_name_max_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_common_name_max_length_test.go b/v3/lints/rfc/lint_subject_common_name_max_length_test.go index 4cda10822..06413a1d5 100644 --- a/v3/lints/rfc/lint_subject_common_name_max_length_test.go +++ b/v3/lints/rfc/lint_subject_common_name_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_dn_country_not_printable_string.go b/v3/lints/rfc/lint_subject_dn_country_not_printable_string.go index 22efb3d4a..bf7b2e3bd 100644 --- a/v3/lints/rfc/lint_subject_dn_country_not_printable_string.go +++ b/v3/lints/rfc/lint_subject_dn_country_not_printable_string.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_dn_country_not_printable_string_test.go b/v3/lints/rfc/lint_subject_dn_country_not_printable_string_test.go index eb5f43f8a..94947e484 100644 --- a/v3/lints/rfc/lint_subject_dn_country_not_printable_string_test.go +++ b/v3/lints/rfc/lint_subject_dn_country_not_printable_string_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_dn_not_printable_characters.go b/v3/lints/rfc/lint_subject_dn_not_printable_characters.go index 2a6b710da..5e75ae9e0 100644 --- a/v3/lints/rfc/lint_subject_dn_not_printable_characters.go +++ b/v3/lints/rfc/lint_subject_dn_not_printable_characters.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_dn_not_printable_characters_test.go b/v3/lints/rfc/lint_subject_dn_not_printable_characters_test.go index 086695379..96d329e6f 100644 --- a/v3/lints/rfc/lint_subject_dn_not_printable_characters_test.go +++ b/v3/lints/rfc/lint_subject_dn_not_printable_characters_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_dn_serial_number_max_length.go b/v3/lints/rfc/lint_subject_dn_serial_number_max_length.go index 66bf32635..0095cdbc3 100644 --- a/v3/lints/rfc/lint_subject_dn_serial_number_max_length.go +++ b/v3/lints/rfc/lint_subject_dn_serial_number_max_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_dn_serial_number_max_length_test.go b/v3/lints/rfc/lint_subject_dn_serial_number_max_length_test.go index 048527509..1cd091ce5 100644 --- a/v3/lints/rfc/lint_subject_dn_serial_number_max_length_test.go +++ b/v3/lints/rfc/lint_subject_dn_serial_number_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_dn_serial_number_not_printable_string.go b/v3/lints/rfc/lint_subject_dn_serial_number_not_printable_string.go index ee904cb92..4f1bf6e42 100644 --- a/v3/lints/rfc/lint_subject_dn_serial_number_not_printable_string.go +++ b/v3/lints/rfc/lint_subject_dn_serial_number_not_printable_string.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_email_max_length.go b/v3/lints/rfc/lint_subject_email_max_length.go index 1e2721f8d..351951782 100644 --- a/v3/lints/rfc/lint_subject_email_max_length.go +++ b/v3/lints/rfc/lint_subject_email_max_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_email_max_length_test.go b/v3/lints/rfc/lint_subject_email_max_length_test.go index ab587dca7..9f3132c1d 100644 --- a/v3/lints/rfc/lint_subject_email_max_length_test.go +++ b/v3/lints/rfc/lint_subject_email_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_empty_without_san.go b/v3/lints/rfc/lint_subject_empty_without_san.go index ff830bf49..c8b92ef20 100644 --- a/v3/lints/rfc/lint_subject_empty_without_san.go +++ b/v3/lints/rfc/lint_subject_empty_without_san.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_empty_without_san_test.go b/v3/lints/rfc/lint_subject_empty_without_san_test.go index 5c0e40c10..59625dd82 100644 --- a/v3/lints/rfc/lint_subject_empty_without_san_test.go +++ b/v3/lints/rfc/lint_subject_empty_without_san_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_given_name_max_length.go b/v3/lints/rfc/lint_subject_given_name_max_length.go index 1c06daf54..96f21dd00 100644 --- a/v3/lints/rfc/lint_subject_given_name_max_length.go +++ b/v3/lints/rfc/lint_subject_given_name_max_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_given_name_max_length_test.go b/v3/lints/rfc/lint_subject_given_name_max_length_test.go index 4ddcc9d41..e9d8c6125 100644 --- a/v3/lints/rfc/lint_subject_given_name_max_length_test.go +++ b/v3/lints/rfc/lint_subject_given_name_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_given_name_recommended_max_length.go b/v3/lints/rfc/lint_subject_given_name_recommended_max_length.go index 1c6cb2c08..8fa32c78e 100644 --- a/v3/lints/rfc/lint_subject_given_name_recommended_max_length.go +++ b/v3/lints/rfc/lint_subject_given_name_recommended_max_length.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_given_name_recommended_max_length_test.go b/v3/lints/rfc/lint_subject_given_name_recommended_max_length_test.go index c078e2548..33b086c77 100644 --- a/v3/lints/rfc/lint_subject_given_name_recommended_max_length_test.go +++ b/v3/lints/rfc/lint_subject_given_name_recommended_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_info_access_marked_critical.go b/v3/lints/rfc/lint_subject_info_access_marked_critical.go index 8e5ef2e04..52d3b5ccb 100644 --- a/v3/lints/rfc/lint_subject_info_access_marked_critical.go +++ b/v3/lints/rfc/lint_subject_info_access_marked_critical.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_info_access_marked_critical_test.go b/v3/lints/rfc/lint_subject_info_access_marked_critical_test.go index 4a819e1ee..774a1a570 100644 --- a/v3/lints/rfc/lint_subject_info_access_marked_critical_test.go +++ b/v3/lints/rfc/lint_subject_info_access_marked_critical_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_locality_name_max_length.go b/v3/lints/rfc/lint_subject_locality_name_max_length.go index d9a95bd2b..a317fc4ec 100644 --- a/v3/lints/rfc/lint_subject_locality_name_max_length.go +++ b/v3/lints/rfc/lint_subject_locality_name_max_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_locality_name_max_length_test.go b/v3/lints/rfc/lint_subject_locality_name_max_length_test.go index d81f4afe5..6f29a29b0 100644 --- a/v3/lints/rfc/lint_subject_locality_name_max_length_test.go +++ b/v3/lints/rfc/lint_subject_locality_name_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_not_dn.go b/v3/lints/rfc/lint_subject_not_dn.go index 53b8cae94..43be8a466 100644 --- a/v3/lints/rfc/lint_subject_not_dn.go +++ b/v3/lints/rfc/lint_subject_not_dn.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_organization_name_max_length.go b/v3/lints/rfc/lint_subject_organization_name_max_length.go index 32bef29b9..9e77e3cfd 100644 --- a/v3/lints/rfc/lint_subject_organization_name_max_length.go +++ b/v3/lints/rfc/lint_subject_organization_name_max_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_organization_name_max_length_test.go b/v3/lints/rfc/lint_subject_organization_name_max_length_test.go index 36e05b020..92ff45a62 100644 --- a/v3/lints/rfc/lint_subject_organization_name_max_length_test.go +++ b/v3/lints/rfc/lint_subject_organization_name_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_organizational_unit_name_max_length.go b/v3/lints/rfc/lint_subject_organizational_unit_name_max_length.go index 33704853d..ef3a9e428 100644 --- a/v3/lints/rfc/lint_subject_organizational_unit_name_max_length.go +++ b/v3/lints/rfc/lint_subject_organizational_unit_name_max_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_organizational_unit_name_max_length_test.go b/v3/lints/rfc/lint_subject_organizational_unit_name_max_length_test.go index c38d3278c..921c0ae15 100644 --- a/v3/lints/rfc/lint_subject_organizational_unit_name_max_length_test.go +++ b/v3/lints/rfc/lint_subject_organizational_unit_name_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_postal_code_max_length.go b/v3/lints/rfc/lint_subject_postal_code_max_length.go index 62837d2b4..26ee9e910 100644 --- a/v3/lints/rfc/lint_subject_postal_code_max_length.go +++ b/v3/lints/rfc/lint_subject_postal_code_max_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_postal_code_max_length_test.go b/v3/lints/rfc/lint_subject_postal_code_max_length_test.go index 456212820..5aa98f2e2 100644 --- a/v3/lints/rfc/lint_subject_postal_code_max_length_test.go +++ b/v3/lints/rfc/lint_subject_postal_code_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_printable_string_badalpha.go b/v3/lints/rfc/lint_subject_printable_string_badalpha.go index b54b5b7a5..b52a9ef5f 100644 --- a/v3/lints/rfc/lint_subject_printable_string_badalpha.go +++ b/v3/lints/rfc/lint_subject_printable_string_badalpha.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_state_name_max_length.go b/v3/lints/rfc/lint_subject_state_name_max_length.go index 479e0d0e5..616ee8b92 100644 --- a/v3/lints/rfc/lint_subject_state_name_max_length.go +++ b/v3/lints/rfc/lint_subject_state_name_max_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_state_name_max_length_test.go b/v3/lints/rfc/lint_subject_state_name_max_length_test.go index 5ee8a90c5..d34105213 100644 --- a/v3/lints/rfc/lint_subject_state_name_max_length_test.go +++ b/v3/lints/rfc/lint_subject_state_name_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_street_address_max_length.go b/v3/lints/rfc/lint_subject_street_address_max_length.go index 8b003fd56..a65340699 100644 --- a/v3/lints/rfc/lint_subject_street_address_max_length.go +++ b/v3/lints/rfc/lint_subject_street_address_max_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_street_address_max_length_test.go b/v3/lints/rfc/lint_subject_street_address_max_length_test.go index e7c378cb0..9a055cd91 100644 --- a/v3/lints/rfc/lint_subject_street_address_max_length_test.go +++ b/v3/lints/rfc/lint_subject_street_address_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_surname_max_length.go b/v3/lints/rfc/lint_subject_surname_max_length.go index 4dfa67a82..a27fd9b37 100644 --- a/v3/lints/rfc/lint_subject_surname_max_length.go +++ b/v3/lints/rfc/lint_subject_surname_max_length.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_surname_max_length_test.go b/v3/lints/rfc/lint_subject_surname_max_length_test.go index a1a6918bc..5dba3a91a 100644 --- a/v3/lints/rfc/lint_subject_surname_max_length_test.go +++ b/v3/lints/rfc/lint_subject_surname_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_surname_recommended_max_length.go b/v3/lints/rfc/lint_subject_surname_recommended_max_length.go index 8d40faed3..537cd3f0a 100644 --- a/v3/lints/rfc/lint_subject_surname_recommended_max_length.go +++ b/v3/lints/rfc/lint_subject_surname_recommended_max_length.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_subject_surname_recommended_max_length_test.go b/v3/lints/rfc/lint_subject_surname_recommended_max_length_test.go index 2180b32e0..77beeb7ec 100644 --- a/v3/lints/rfc/lint_subject_surname_recommended_max_length_test.go +++ b/v3/lints/rfc/lint_subject_surname_recommended_max_length_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_superfluous_ku_encoding.go b/v3/lints/rfc/lint_superfluous_ku_encoding.go index 72ef76df7..e8f9f50ff 100644 --- a/v3/lints/rfc/lint_superfluous_ku_encoding.go +++ b/v3/lints/rfc/lint_superfluous_ku_encoding.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_superfluous_ku_encoding_test.go b/v3/lints/rfc/lint_superfluous_ku_encoding_test.go index 2404f3f6a..9920efea1 100644 --- a/v3/lints/rfc/lint_superfluous_ku_encoding_test.go +++ b/v3/lints/rfc/lint_superfluous_ku_encoding_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg.go b/v3/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg.go index e0e9b857e..2bbd0b2a8 100644 --- a/v3/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg.go +++ b/v3/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg_test.go b/v3/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg_test.go index f905aaf35..c967ed701 100644 --- a/v3/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg_test.go +++ b/v3/lints/rfc/lint_tbs_signature_alg_matches_cert_signature_alg_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_tbs_signature_rsa_encryption_parameter_not_null.go b/v3/lints/rfc/lint_tbs_signature_rsa_encryption_parameter_not_null.go index 58c5359f5..0d79731f5 100644 --- a/v3/lints/rfc/lint_tbs_signature_rsa_encryption_parameter_not_null.go +++ b/v3/lints/rfc/lint_tbs_signature_rsa_encryption_parameter_not_null.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_utc_time_does_not_include_seconds.go b/v3/lints/rfc/lint_utc_time_does_not_include_seconds.go index c8cd431d1..913c329b6 100644 --- a/v3/lints/rfc/lint_utc_time_does_not_include_seconds.go +++ b/v3/lints/rfc/lint_utc_time_does_not_include_seconds.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_utc_time_does_not_include_seconds_test.go b/v3/lints/rfc/lint_utc_time_does_not_include_seconds_test.go index 75501fd6c..db3a0fd5e 100644 --- a/v3/lints/rfc/lint_utc_time_does_not_include_seconds_test.go +++ b/v3/lints/rfc/lint_utc_time_does_not_include_seconds_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_utc_time_not_in_zulu.go b/v3/lints/rfc/lint_utc_time_not_in_zulu.go index bc39becb2..4db76b0da 100644 --- a/v3/lints/rfc/lint_utc_time_not_in_zulu.go +++ b/v3/lints/rfc/lint_utc_time_not_in_zulu.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_utc_time_not_in_zulu_test.go b/v3/lints/rfc/lint_utc_time_not_in_zulu_test.go index f03e8e77d..254a860c6 100644 --- a/v3/lints/rfc/lint_utc_time_not_in_zulu_test.go +++ b/v3/lints/rfc/lint_utc_time_not_in_zulu_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_wrong_time_format_pre2050.go b/v3/lints/rfc/lint_wrong_time_format_pre2050.go index 5bd27fa39..7ecc63158 100644 --- a/v3/lints/rfc/lint_wrong_time_format_pre2050.go +++ b/v3/lints/rfc/lint_wrong_time_format_pre2050.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/lints/rfc/lint_wrong_time_format_pre2050_test.go b/v3/lints/rfc/lint_wrong_time_format_pre2050_test.go index 3af6acef7..e263ea2e8 100644 --- a/v3/lints/rfc/lint_wrong_time_format_pre2050_test.go +++ b/v3/lints/rfc/lint_wrong_time_format_pre2050_test.go @@ -1,7 +1,7 @@ package rfc /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/newProfile.sh b/v3/newProfile.sh new file mode 100755 index 000000000..086744188 --- /dev/null +++ b/v3/newProfile.sh @@ -0,0 +1,30 @@ +# Script to create new profile from template + +USAGE="Usage: $0 + +ARG1: file_name" + +if [ $# -eq 0 ]; then + echo "No arguments provided..." + echo "$USAGE" + exit 1 +fi + +if [ ! -d profiles ] +then + echo "Directory 'profiles' does not exist. Can't make new file." + exit 1 +fi + + +if [ -e profiles/profile_$1.go ] +then + echo "File already exists. Can't make new file." + exit 1 +fi + +PROFILE=$1 + +sed -e "s/PROFILE/${PROFILE}/" profileTemplate > profiles/profile_${PROFILE}.go + +echo "Created file profiles/lint_${PROFILE}.go" diff --git a/v3/profileTemplate b/v3/profileTemplate new file mode 100644 index 000000000..109dc7d25 --- /dev/null +++ b/v3/profileTemplate @@ -0,0 +1,27 @@ +/* + * ZLint Copyright 2023 Regents of the University of Michigan + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package profiles + +import "github.com/zmap/zlint/v3/lint" + +func init() { + lint.RegisterProfile(lint.Profile{ + Name: "PROFILE", + Description: "Fill this in...", + Citation: "Fill this in...", + Source: lint.UnknownLintSource, + LintNames: []string{}, + }) +} diff --git a/v3/profiles/profiles_test.go b/v3/profiles/profiles_test.go new file mode 100644 index 000000000..dc28d2bfb --- /dev/null +++ b/v3/profiles/profiles_test.go @@ -0,0 +1,72 @@ +/* + * ZLint Copyright 2023 Regents of the University of Michigan + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package profiles + +import ( + "io/ioutil" + "testing" + + "github.com/zmap/zlint/v3/lint" + _ "github.com/zmap/zlint/v3/lints/apple" + _ "github.com/zmap/zlint/v3/lints/cabf_br" + _ "github.com/zmap/zlint/v3/lints/cabf_ev" + _ "github.com/zmap/zlint/v3/lints/community" + _ "github.com/zmap/zlint/v3/lints/etsi" + _ "github.com/zmap/zlint/v3/lints/mozilla" + _ "github.com/zmap/zlint/v3/lints/rfc" +) + +// We would like to make sure that there is a generic test that makes sure +// that all profiles actually refer to registered lints. +func TestLintsInAllProfilesExist(t *testing.T) { + for _, profile := range lint.AllProfiles() { + for _, l := range profile.LintNames { + if lint.GlobalRegistry().ByName(l) == nil { + t.Errorf("Profile '%s' declares lint '%s' which does not exist", profile.Name, l) + } + } + } +} + +// In order to run TestLintsInAllProfilesExist we need to import all lint source packages in order +// to run their init functions. This test makes sure that if anyone adds a new +// lint source in the future that we don't miss importing it into this test file. +func TestNotMissingAnyLintSources(t *testing.T) { + expected := map[string]bool{ + "apple": true, + "cabf_br": true, + "cabf_ev": true, + "community": true, + "etsi": true, + "mozilla": true, + "rfc": true, + } + dir, err := ioutil.ReadDir("../lints") + if err != nil { + t.Fatal(err) + } + for _, info := range dir { + if !info.IsDir() { + continue + } + if _, ok := expected[info.Name()]; !ok { + t.Errorf("We need to import each lint source in order to ensure that all lint names referred to by "+ + "declared profiles actually exist. However, we found the directory lints/%s which is not a lint "+ + "source that this test is aware of. Please add the following import to the top if this test file: "+ + "_ \"github.com/zmap/zlint/v3/lints/%s\"", info.Name(), info.Name()) + } + } + +} diff --git a/v3/profiles/todo.go b/v3/profiles/todo.go new file mode 100644 index 000000000..b853f0188 --- /dev/null +++ b/v3/profiles/todo.go @@ -0,0 +1,5 @@ +package profiles + +// This file exists purely to avoid the following error until we have at least one profile +// +// no non-test Go files in /home/runner/work/zlint/zlint/v3/profiles diff --git a/v3/resultset.go b/v3/resultset.go index 0fb3c7594..9701e146c 100644 --- a/v3/resultset.go +++ b/v3/resultset.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -31,15 +31,28 @@ type ResultSet struct { FatalsPresent bool `json:"fatals_present"` } -// Execute lints the given certificate with all of the lints in the provided +// Execute lints on the given certificate with all of the lints in the provided // registry. The ResultSet is mutated to trace the lint results obtained from // linting the certificate. -func (z *ResultSet) execute(cert *x509.Certificate, registry lint.Registry) { +func (z *ResultSet) executeCertificate(o *x509.Certificate, registry lint.Registry) { + z.Results = make(map[string]*lint.LintResult, len(registry.Names())) + // Run each lint from the registry. + for _, lint := range registry.CertificateLints().Lints() { + res := lint.Execute(o, registry.GetConfiguration()) + z.Results[lint.Name] = res + z.updateErrorStatePresent(res) + } +} + +// Execute lints on the given CRL with all of the lints in the provided +// registry. The ResultSet is mutated to trace the lint results obtained from +// linting the CRL. +func (z *ResultSet) executeRevocationList(o *x509.RevocationList, registry lint.Registry) { z.Results = make(map[string]*lint.LintResult, len(registry.Names())) // Run each lints from the registry. - for _, name := range registry.Names() { - res := registry.ByName(name).Execute(cert, registry.GetConfiguration()) - z.Results[name] = res + for _, lint := range registry.RevocationListLints().Lints() { + res := lint.Execute(o, registry.GetConfiguration()) + z.Results[lint.Name] = res z.updateErrorStatePresent(res) } } diff --git a/v3/template b/v3/template index 1ae2a6738..c474cc41e 100644 --- a/v3/template +++ b/v3/template @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/test/configuration_test_framework_test.go b/v3/test/configuration_test_framework_test.go index 688a2f832..904f13ead 100644 --- a/v3/test/configuration_test_framework_test.go +++ b/v3/test/configuration_test_framework_test.go @@ -1,7 +1,7 @@ package test /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -17,6 +17,7 @@ package test import ( "fmt" "math/rand" + "os" "strconv" "sync" "testing" @@ -27,6 +28,22 @@ import ( "github.com/zmap/zlint/v3/lint" ) +func init() { + // This is a complication caused https://github.com/zmap/zlint/issues/696 + // + // This test package required access to the test certificate directory, however + // the ReadTestCert testing helper function assumes that your PWD is one of the + // lint genre directories. + // + // ReadTestCert was changed to operate from the root of the repo to accommodate this + // test package, however that broke downstream consumers who were dependent on the + // relative path building behavior. + err := os.Chdir("../lints/rfc") + if err != nil { + panic(err) + } +} + type caCommonNameMissing struct { BeerHall string Working *lint.CABFBaselineRequirementsConfig diff --git a/v3/test/helpers.go b/v3/test/helpers.go index 1f2428989..f682946dc 100644 --- a/v3/test/helpers.go +++ b/v3/test/helpers.go @@ -1,7 +1,7 @@ package test /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -17,13 +17,11 @@ package test // Contains resources necessary to the Unit Test Cases import ( - "bytes" "encoding/pem" "fmt" "os" + "testing" - "os/exec" - "path" "strings" "github.com/zmap/zcrypto/x509" @@ -37,6 +35,7 @@ import ( // Important: TestLint is only appropriate for unit tests. It will panic if the // lintName is not known or if the testCertFilename can not be loaded, or if the // lint result is nil. +// //nolint:revive func TestLint(lintName string, testCertFilename string) *lint.LintResult { return TestLintWithConfig(lintName, testCertFilename, "") @@ -50,15 +49,35 @@ func TestLintWithConfig(lintName string, testCertFilename string, configuration return TestLintCert(lintName, ReadTestCert(testCertFilename), config) } +// TestRevocationListLint executes the given lintName against a CRL read from +// a testcrl data file with the given filename. Filenames should be relative to +// `testdata/` and not absolute file paths. +// +//nolint:revive +func TestRevocationListLint(tb testing.TB, lintName string, testCRLFilename string) *lint.LintResult { + tb.Helper() + return TestRevocationListLintWithConfig(tb, lintName, testCRLFilename, "") +} + +func TestRevocationListLintWithConfig(tb testing.TB, lintName string, testCRLFilename string, configuration string) *lint.LintResult { + tb.Helper() + config, err := lint.NewConfigFromString(configuration) + if err != nil { + tb.Fatal(err) + } + return TestLintRevocationList(tb, lintName, ReadTestRevocationList(tb, testCRLFilename), config) +} + // TestLintCert executes a lint with the given name against an already parsed // certificate. This is useful when a unit test reads a certificate from disk // and then mutates it in some way before trying to lint it. // // Important: TestLintCert is only appropriate for unit tests. It will panic if // the lintName is not known or if the lint result is nil. +// //nolint:revive func TestLintCert(lintName string, cert *x509.Certificate, ctx lint.Configuration) *lint.LintResult { - l := lint.GlobalRegistry().ByName(lintName) + l := lint.GlobalRegistry().CertificateLints().ByName(lintName) if l == nil { panic(fmt.Sprintf( "Lint name %q does not exist in lint.Lints. "+ @@ -75,7 +94,29 @@ func TestLintCert(lintName string, cert *x509.Certificate, ctx lint.Configuratio return res } -var testDir = "" +// TestLintRevocationList executes a lint with the given name against an already parsed +// revocation list. This is useful when a unit test reads a revocation list from disk +// and then mutates it in some way before trying to lint it. +// +//nolint:revive +func TestLintRevocationList(tb testing.TB, lintName string, crl *x509.RevocationList, ctx lint.Configuration) *lint.LintResult { + tb.Helper() + l := lint.GlobalRegistry().RevocationListLints().ByName(lintName) + if l == nil { + tb.Fatalf( + "Lint name %q does not exist in lint.Lints. "+ + "Did you forget to RegisterLint?\n", + lintName) + } + res := l.Execute(crl, ctx) + // We never expect a lint to return a nil LintResult + if res == nil { + tb.Fatalf( + "Running lint %q on test revocation list generated a nil LintResult.\n", + lintName) + } + return res +} // ReadTestCert loads a x509.Certificate from the given inPath which is assumed // to be relative to `testdata/`. @@ -83,16 +124,7 @@ var testDir = "" // Important: ReadTestCert is only appropriate for unit tests. It will panic if // the inPath file can not be loaded. func ReadTestCert(inPath string) *x509.Certificate { - if testDir == "" { - cmd := exec.Command("git", "rev-parse", "--show-toplevel") - out, err := cmd.CombinedOutput() - if err != nil { - panic(fmt.Sprintf("error when attempting to find the root directory of the repository: %v, output: '%s'", err, out)) - } - testDir = path.Join(string(bytes.TrimSpace(out)), "v3", "testdata") - } - fullPath := path.Join(testDir, inPath) - + fullPath := fmt.Sprintf("../../testdata/%s", inPath) data, err := os.ReadFile(fullPath) if err != nil { panic(fmt.Sprintf( @@ -122,3 +154,41 @@ func ReadTestCert(inPath string) *x509.Certificate { return theCert } + +// ReadTestRevocationList loads a x509.RevocationList from the given inPath which is assumed +// to be relative to `testdata/`. +// +// Important: ReadTestRevocationList is only appropriate for unit tests. It will panic if +// the inPath file can not be loaded. +func ReadTestRevocationList(tb testing.TB, inPath string) *x509.RevocationList { + tb.Helper() + fullPath := fmt.Sprintf("../../testdata/%s", inPath) + data, err := os.ReadFile(fullPath) + if err != nil { + tb.Fatalf( + "Unable to read test revocation list from %q - %q "+ + "Does a unit test have an incorrect test file name?\n", + fullPath, err) + } + + if strings.Contains(string(data), "-BEGIN X509 CRL-") { + block, _ := pem.Decode(data) + if block == nil { //nolint: staticcheck // tb.Fatalf exits + tb.Fatalf( + "Failed to PEM decode test revocation list from %q - "+ + "Does a unit test have a buggy test cert file?\n", + fullPath) + } + data = block.Bytes //nolint: staticcheck // tb.Fatalf exits + } + + theCrl, err := x509.ParseRevocationList(data) + if err != nil { + tb.Fatalf( + "Failed to parse x509 test certificate from %q - %q "+ + "Does a unit test have a buggy test cert file?\n", + fullPath, err) + } + + return theCrl +} diff --git a/v3/testdata/crlHasNextUpdate.pem b/v3/testdata/crlHasNextUpdate.pem new file mode 100644 index 000000000..fb236980a --- /dev/null +++ b/v3/testdata/crlHasNextUpdate.pem @@ -0,0 +1,11 @@ +-----BEGIN X509 CRL----- +MIIBnjCBhwIBATANBgkqhkiG9w0BAQsFADAYMRYwFAYDVQQDEw1BbWlyIHdhcyBI +ZXJlFw0yMzAzMTMwNTUyNTVaFw0yMzAzMTQwNTUyNTVaoDswOTArBgNVHSMEJDAi +gCAywvCJz28KsE/6Wf9E1nuiihBFWlUyq7X/RDgn5SllIDAKBgNVHRQEAwIBATAN +BgkqhkiG9w0BAQsFAAOCAQEAakioBhLs31svWHGmolDhUg6O1daN6zXSAz/avgzl +38aTKfRSNQ+vM7qgrvCoRojnamziJgXe1hz+/dc8H0/+WEBwVgp1rBzr8f25dSZC +lXBHT1cNI5RL+wU0pFMouUiwWqwUg8o9iGYkqvhuko4AQIcpAoBuf0OggjCuj48r +FX7UN7Kz4pc/4ufengKGkf7EeEQffY3zlS0DAtWv+exoQ6Dt+otDr0PbINJZg+46 +TJ/+0w6RsLGoe4Sh/PYPfaCngMyezENUgJgR1+vF6hbVUweeOB+4nFRNxvHMup0G +GEA4yfzQtHWL8rizWUCyuqXEMPZLzyJT0rv5cLgoOvs+8Q== +-----END X509 CRL----- diff --git a/v3/testdata/crlNotHaveNextUpdate.pem b/v3/testdata/crlNotHaveNextUpdate.pem new file mode 100644 index 000000000..ae95454da --- /dev/null +++ b/v3/testdata/crlNotHaveNextUpdate.pem @@ -0,0 +1,11 @@ +-----BEGIN X509 CRL----- +MIIBjjB4AgEBMA0GCSqGSIb3DQEBCwUAMBgxFjAUBgNVBAMTDUFtaXIgd2FzIEhl +cmUXDTIzMDMxMzA1NTQwOFqgOzA5MCsGA1UdIwQkMCKAIKiGvOMhlD6FiuwaEDl+ +FxP5fyorz7E9iDke1/q+ngvkMAoGA1UdFAQDAgEBMA0GCSqGSIb3DQEBCwUAA4IB +AQAWq81ZR98KCw3Y3KiH2ShJ+mxlgYO91ovQfzsbCOSHrcV9bnVYG8k3WMWBen/v +LsXiSaVeG+9G1b459KuB6yVv24N0vtpzXOorFR1oi0wPWtYzPhkT+RD2Ov10XO2G +bk3DSwcqcjYqx1Hu1BlHzEyTUvwij6XWUx1uc+olH6scRmycn9yGBMSga/Xgx6g1 +4yM9lzN8lHeN2JLr1vnu///iBwwPvdhPMzUE0n/smH/6bkkZXHM33s0cJ6Wm0bLg +TUg9QKGR2PIehZvJg1vvhpZyIEnpGPp1hN9FsK8eKuMJWEEqP7s5URHaHNYlmagA +ylcX526EcfmL6vqtz5OIsfNC +-----END X509 CRL----- diff --git a/v3/util/algorithm_identifier.go b/v3/util/algorithm_identifier.go index cb6d2f0f4..d84954375 100644 --- a/v3/util/algorithm_identifier.go +++ b/v3/util/algorithm_identifier.go @@ -39,6 +39,7 @@ var RSAAlgorithmIDToDER = map[string][]byte{ // CheckAlgorithmIDParamNotNULL parses an AlgorithmIdentifier with algorithm OID rsaEncryption to check the Param field is asn1.NULL // Expects DER-encoded AlgorithmIdentifier including tag and length. +// //nolint:cyclop func CheckAlgorithmIDParamNotNULL(algorithmIdentifier []byte, requiredAlgoID asn1.ObjectIdentifier) error { expectedAlgoIDBytes, ok := RSAAlgorithmIDToDER[requiredAlgoID.String()] @@ -96,21 +97,21 @@ func CheckAlgorithmIDParamNotNULL(algorithmIdentifier []byte, requiredAlgoID asn // Returns the signature field of the tbsCertificate of this certificate in a DER encoded form or an error // if the signature field could not be extracted. The encoded form contains the tag and the length. // -// TBSCertificate ::= SEQUENCE { -// version [0] EXPLICIT Version DEFAULT v1, -// serialNumber CertificateSerialNumber, -// signature AlgorithmIdentifier, -// issuer Name, -// validity Validity, -// subject Name, -// subjectPublicKeyInfo SubjectPublicKeyInfo, -// issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL, -// -- If present, version MUST be v2 or v3 -// subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL, -// -- If present, version MUST be v2 or v3 -// extensions [3] EXPLICIT Extensions OPTIONAL -// -- If present, version MUST be v3 -// } +// TBSCertificate ::= SEQUENCE { +// version [0] EXPLICIT Version DEFAULT v1, +// serialNumber CertificateSerialNumber, +// signature AlgorithmIdentifier, +// issuer Name, +// validity Validity, +// subject Name, +// subjectPublicKeyInfo SubjectPublicKeyInfo, +// issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL, +// -- If present, version MUST be v2 or v3 +// subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL, +// -- If present, version MUST be v2 or v3 +// extensions [3] EXPLICIT Extensions OPTIONAL +// -- If present, version MUST be v3 +// } func GetSignatureAlgorithmInTBSEncoded(c *x509.Certificate) ([]byte, error) { input := cryptobyte.String(c.RawTBSCertificate) @@ -140,10 +141,9 @@ func GetSignatureAlgorithmInTBSEncoded(c *x509.Certificate) ([]byte, error) { // Returns the algorithm field of the SubjectPublicKeyInfo of the certificate or an error // if the algorithm field could not be extracted. // -// SubjectPublicKeyInfo ::= SEQUENCE { -// algorithm AlgorithmIdentifier, -// subjectPublicKey BIT STRING } -// +// SubjectPublicKeyInfo ::= SEQUENCE { +// algorithm AlgorithmIdentifier, +// subjectPublicKey BIT STRING } func GetPublicKeyOID(c *x509.Certificate) (asn1.ObjectIdentifier, error) { input := cryptobyte.String(c.RawSubjectPublicKeyInfo) @@ -168,10 +168,9 @@ func GetPublicKeyOID(c *x509.Certificate) (asn1.ObjectIdentifier, error) { // Returns the algorithm field of the SubjectPublicKeyInfo of the certificate in its encoded form (containing Tag // and Length) or an error if the algorithm field could not be extracted. // -// SubjectPublicKeyInfo ::= SEQUENCE { -// algorithm AlgorithmIdentifier, -// subjectPublicKey BIT STRING } -// +// SubjectPublicKeyInfo ::= SEQUENCE { +// algorithm AlgorithmIdentifier, +// subjectPublicKey BIT STRING } func GetPublicKeyAidEncoded(c *x509.Certificate) ([]byte, error) { input := cryptobyte.String(c.RawSubjectPublicKeyInfo) var spkiContent cryptobyte.String diff --git a/v3/util/ca.go b/v3/util/ca.go index 43e2755b0..c24634811 100644 --- a/v3/util/ca.go +++ b/v3/util/ca.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/countries.go b/v3/util/countries.go index 66dfa7242..2ec04aee9 100644 --- a/v3/util/countries.go +++ b/v3/util/countries.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/encodings.go b/v3/util/encodings.go index 80efdbb4f..316217440 100644 --- a/v3/util/encodings.go +++ b/v3/util/encodings.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/ev.go b/v3/util/ev.go index d5b0abb72..54729f7dc 100644 --- a/v3/util/ev.go +++ b/v3/util/ev.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/fqdn.go b/v3/util/fqdn.go index 705104912..4be2ffb9f 100644 --- a/v3/util/fqdn.go +++ b/v3/util/fqdn.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/fqdn_test.go b/v3/util/fqdn_test.go index a3779c9d6..bf01e5846 100644 --- a/v3/util/fqdn_test.go +++ b/v3/util/fqdn_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/gtld.go b/v3/util/gtld.go index 3bc325ce8..6a7fb64f3 100644 --- a/v3/util/gtld.go +++ b/v3/util/gtld.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/gtld_map.go b/v3/util/gtld_map.go index 9a5f1713c..22613c3b2 100644 --- a/v3/util/gtld_map.go +++ b/v3/util/gtld_map.go @@ -2,7 +2,7 @@ // This file was generated by zlint-gtld-update. /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -941,7 +941,7 @@ var tldMap = map[string]GTLDPeriod{ "bugatti": { GTLD: "bugatti", DelegationDate: "2015-11-25", - RemovalDate: "", + RemovalDate: "2022-10-07", }, "build": { GTLD: "build", diff --git a/v3/util/gtld_test.go b/v3/util/gtld_test.go index 2acad2dbf..3fd94ff03 100644 --- a/v3/util/gtld_test.go +++ b/v3/util/gtld_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/idna.go b/v3/util/idna.go index 5e2543efb..45d14daab 100644 --- a/v3/util/idna.go +++ b/v3/util/idna.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/idna_test.go b/v3/util/idna_test.go index 4f264ca64..67f6a1910 100644 --- a/v3/util/idna_test.go +++ b/v3/util/idna_test.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/ip.go b/v3/util/ip.go index c171eb4ca..7aefe6797 100644 --- a/v3/util/ip.go +++ b/v3/util/ip.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -53,12 +53,13 @@ const ( var reservedNetworks []*net.IPNet // IsIANAReserved checks IP validity as per IANA reserved IPs -// IPv4 -// https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml -// https://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xml -// IPv6 -// https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml -// https://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml +// +// IPv4 +// https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml +// https://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xml +// IPv6 +// https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml +// https://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml func IsIANAReserved(ip net.IP) bool { if !ip.IsGlobalUnicast() { return true diff --git a/v3/util/names.go b/v3/util/names.go index 7792f13dc..e8fc5c49e 100644 --- a/v3/util/names.go +++ b/v3/util/names.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/oid.go b/v3/util/oid.go index a7892b6b4..a8f976538 100644 --- a/v3/util/oid.go +++ b/v3/util/oid.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -141,7 +141,7 @@ func TypeInName(name *pkix.Name, oid asn1.ObjectIdentifier) bool { return false } -//helper function to parse policyMapping extensions, returns slices of CertPolicyIds separated by domain +// helper function to parse policyMapping extensions, returns slices of CertPolicyIds separated by domain func GetMappedPolicies(polMap *pkix.Extension) ([][2]asn1.ObjectIdentifier, error) { if polMap == nil { return nil, errors.New("policyMap: null pointer") diff --git a/v3/util/onion.go b/v3/util/onion.go index 45cb6013e..1fb8ad51c 100644 --- a/v3/util/onion.go +++ b/v3/util/onion.go @@ -41,9 +41,9 @@ func IsOnionV3Address(dnsName string) bool { // IsOnionV2Address returns whether-or-not the give address appears to be an Onion V2 address. // // In order to be an Onion V2 encoded address, the DNS name must satisfy the following: -// 1. The address has at least two labels. -// 2. The right most label is the .onion TLD. -// 3. The second-to-the-right most label is a 16 character long, base32. +// 1. The address has at least two labels. +// 2. The right most label is the .onion TLD. +// 3. The second-to-the-right most label is a 16 character long, base32. func IsOnionV2Address(dnsName string) bool { if !strings.HasSuffix(dnsName, "onion") { return false @@ -56,10 +56,7 @@ func IsOnionV2Address(dnsName string) bool { return false } _, err := onionBase32Encoding.DecodeString(labels[0]) - if err != nil { - return false - } - return true + return err == nil } // IsOnionV3Cert returns whether-or-not at least one of the provided certificates subject common name, diff --git a/v3/util/primes.go b/v3/util/primes.go index def1e631b..20b04f8df 100644 --- a/v3/util/primes.go +++ b/v3/util/primes.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/qc_stmt.go b/v3/util/qc_stmt.go index 3b8183f72..a8f7c0a5e 100644 --- a/v3/util/qc_stmt.go +++ b/v3/util/qc_stmt.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/rdn.go b/v3/util/rdn.go index b07a989c6..3ce4dd989 100644 --- a/v3/util/rdn.go +++ b/v3/util/rdn.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/util/time.go b/v3/util/time.go index e3313970e..04dfeddb6 100644 --- a/v3/util/time.go +++ b/v3/util/time.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2022 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy diff --git a/v3/zlint.go b/v3/zlint.go index 56e1d405e..18119340f 100644 --- a/v3/zlint.go +++ b/v3/zlint.go @@ -1,5 +1,5 @@ /* - * ZLint Copyright 2021 Regents of the University of Michigan + * ZLint Copyright 2023 Regents of the University of Michigan * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy @@ -55,7 +55,35 @@ func LintCertificateEx(c *x509.Certificate, registry lint.Registry) *ResultSet { registry = lint.GlobalRegistry() } res := new(ResultSet) - res.execute(c, registry) + res.executeCertificate(c, registry) + res.Version = Version + res.Timestamp = time.Now().Unix() + return res +} + +// LintRevocationList runs all registered lints on r using default options, +// producing a ResultSet. +// +// Using LintRevocationList(r) is equivalent to calling LintRevocationListEx(r, nil). +func LintRevocationList(r *x509.RevocationList) *ResultSet { + return LintRevocationListEx(r, nil) +} + +// LintRevocationListEx runs lints from the provided registry on r producing +// a ResultSet. Providing an explicit registry allows the caller to filter the +// lints that will be run. (See lint.Registry.Filter()) +// +// If registry is nil then the global registry of all lints is used and this +// function is equivalent to calling LintRevocationListEx(r). +func LintRevocationListEx(r *x509.RevocationList, registry lint.Registry) *ResultSet { + if r == nil { + return nil + } + if registry == nil { + registry = lint.GlobalRegistry() + } + res := new(ResultSet) + res.executeRevocationList(r, registry) res.Version = Version res.Timestamp = time.Now().Unix() return res