From d2570ba4f2668d25b50c72b128d0d68d1e6e8d7a Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Mon, 21 Oct 2024 17:27:04 -0400 Subject: [PATCH] update patch to fix TestNPrimes test --- patches/022-openssl-negative-tests.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/patches/022-openssl-negative-tests.patch b/patches/022-openssl-negative-tests.patch index 407ff234e2..d242aa0cea 100644 --- a/patches/022-openssl-negative-tests.patch +++ b/patches/022-openssl-negative-tests.patch @@ -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) + } + }