Skip to content

Commit

Permalink
Parse crlEntryExtensions in CRLs
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuswatn committed Aug 25, 2024
1 parent d4fc1e9 commit 88765a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/crlutil/crlutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,11 @@ type RevokedCertificate struct {
}

func newRevokedCertificate(c x509.RevocationListEntry) RevokedCertificate {
var extensions []Extension
extensions := make([]Extension, len(c.Extensions))

Check warning on line 252 in internal/crlutil/crlutil.go

View check run for this annotation

Codecov / codecov/patch

internal/crlutil/crlutil.go#L252

Added line #L252 was not covered by tests

for i, e := range c.Extensions {
extensions[i] = newExtension(e)

Check warning on line 255 in internal/crlutil/crlutil.go

View check run for this annotation

Codecov / codecov/patch

internal/crlutil/crlutil.go#L254-L255

Added lines #L254 - L255 were not covered by tests
}

return RevokedCertificate{
SerialNumber: c.SerialNumber.String(),
Expand Down

0 comments on commit 88765a7

Please sign in to comment.