Skip to content
Snippets Groups Projects
Commit e404a1ea authored by Reinhard Tartler's avatar Reinhard Tartler
Browse files

Disable sha1-related tests, Closes: #1098552

parent 03d225ab
No related branches found
No related tags found
No related merge requests found
From: Reinhard Tartler <siretart@tauware.de>
Date: Sun, 16 Mar 2025 16:49:39 -0400
Subject: Disable sha1 tests
---
sign_test.go | 4 ++--
verify_test.go | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sign_test.go b/sign_test.go
index 0ba6324..3fa3663 100644
--- a/sign_test.go
+++ b/sign_test.go
@@ -18,10 +18,10 @@ import (
func TestSign(t *testing.T) {
content := []byte("Hello World")
sigalgs := []x509.SignatureAlgorithm{
- x509.SHA1WithRSA,
+ //x509.SHA1WithRSA,
x509.SHA256WithRSA,
x509.SHA512WithRSA,
- x509.ECDSAWithSHA1,
+ //x509.ECDSAWithSHA1,
x509.ECDSAWithSHA256,
x509.ECDSAWithSHA384,
x509.ECDSAWithSHA512,
diff --git a/verify_test.go b/verify_test.go
index cd7d32e..5149360 100644
--- a/verify_test.go
+++ b/verify_test.go
@@ -458,10 +458,10 @@ but that's not what ships are built for.
}
ioutil.WriteFile(tmpContentFile.Name(), content, 0755)
sigalgs := []x509.SignatureAlgorithm{
- x509.SHA1WithRSA,
+ // x509.SHA1WithRSA,
x509.SHA256WithRSA,
x509.SHA512WithRSA,
- x509.ECDSAWithSHA1,
+ // x509.ECDSAWithSHA1,
x509.ECDSAWithSHA256,
x509.ECDSAWithSHA384,
x509.ECDSAWithSHA512,
0001-Disable-sha1-tests.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment