mirror of https://github.com/golang/go.git
crypto/x509: switch test to ParseRevocationList
In following with Roland's TODO, switch TestDisableSHA1ForCertOnly to ParseRevocationList(...) over ParseCRL(...).
This commit is contained in:
parent
2af48cbb7d
commit
bb2ef760e4
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue