crypto/x509: switch test to ParseRevocationList

In following with Roland's TODO, switch TestDisableSHA1ForCertOnly to
ParseRevocationList(...) over ParseCRL(...).
This commit is contained in:
Alexander Scheel 2022-11-02 21:28:10 -04:00
parent 2af48cbb7d
commit bb2ef760e4
1 changed files with 2 additions and 3 deletions

View File

@ -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)
}