pomerium/pkg/cryptutil
Kenneth Jenkins cc1ef1ae18
cryptutil: update CRL parsing (#4454)
Move the parseCRLs() method from package 'authorize/evaluator' to
'pkg/cryptutil', replacing the existing DecodeCRL() method. This method
will parse all CRLs found in the PEM input, rather than just the first.

(This removes our usage of the deprecated method x509.ParseDERCRL.)

Update this method to return an error if there is non-PEM data found in
the input, to satisfy the existing test that raw DER-encoded CRLs are
not permitted.

Delete the CRLFromBase64() and CRLFromFile() methods, as these are no
longer used.
2023-08-11 08:33:22 -07:00
..
testdata cryptutil: update CRL parsing (#4454) 2023-08-11 08:33:22 -07:00
certificates.go cryptutil: update CRL parsing (#4454) 2023-08-11 08:33:22 -07:00
certificates_index.go config: update logic for checking overlapping certificates (#4216) 2023-06-01 09:30:46 -06:00
certificates_index_test.go config: update logic for checking overlapping certificates (#4216) 2023-06-01 09:30:46 -06:00
certificates_test.go cryptutil: update CRL parsing (#4454) 2023-08-11 08:33:22 -07:00
dek.go
dek_test.go
doc.go
encrypt.go
encrypt_test.go
hash.go
hash_test.go
helpers.go
helpers_test.go
hmac.go
hmac_test.go chore: unnecessary use of fmt.Sprintf (#4349) 2023-07-12 09:44:29 -07:00
jose.go
jose_test.go
kek.go
kek_test.go
sign.go
sign_test.go
tls.go
tls_test.go
token.go
token_test.go
x509.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
x509_test.go