Skip to content

Commit

Permalink
update patch to fix TestNPrimes test
Browse files Browse the repository at this point in the history
  • Loading branch information
derekparker committed Oct 21, 2024
1 parent 8f779ab commit d2570ba
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions patches/022-openssl-negative-tests.patch
Original file line number Diff line number Diff line change
Expand Up @@ -801,3 +801,19 @@ index 210bd9bc43..780814d126 100644
}

func TestVerifyNilPubKey(t *testing.T) {
diff --git a/src/crypto/rsa/rsa_test.go b/src/crypto/rsa/rsa_test.go
index d160dccd43..284995adf6 100644
--- a/src/crypto/rsa/rsa_test.go
+++ b/src/crypto/rsa/rsa_test.go
@@ -104,6 +104,11 @@ func TestNPrimeKeyGeneration(t *testing.T) {
if err == nil {
testKeyBasics(t, priv)
} else {
+ if boring.Enabled() {
+ if strings.Contains(err.Error(), "invalid primes or bits for boring") {
+ continue
+ }
+ }
t.Errorf("failed to generate %d-prime key", n)
}
}

0 comments on commit d2570ba

Please sign in to comment.