Skip to content

Commit

Permalink
crypto/x509: switch test to ParseRevocationList
Browse files Browse the repository at this point in the history
In following with Roland's TODO, switch TestDisableSHA1ForCertOnly to
ParseRevocationList(...) over ParseCRL(...).
  • Loading branch information
cipherboy committed Nov 3, 2022
1 parent 2af48cb commit bb2ef76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/crypto/x509/x509_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3504,13 +3504,12 @@ func TestDisableSHA1ForCertOnly(t *testing.T) {
if err != nil {
t.Fatalf("failed to generate test CRL: %s", err)
}
// TODO(rolandshoemaker): this should be ParseRevocationList once it lands
crl, err := ParseCRL(crlDER)
crl, err := ParseRevocationList(crlDER)
if err != nil {
t.Fatalf("failed to parse test CRL: %s", err)
}

if err = cert.CheckCRLSignature(crl); err != nil {
if err = crl.CheckSignatureFrom(cert); err != nil {
t.Errorf("unexpected error: %s", err)
}

Expand Down

0 comments on commit bb2ef76

Please sign in to comment.