From 15bfd45926678221a3191f092243cf88d89298e9 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Tue, 15 Jan 2019 11:00:03 -0500 Subject: [PATCH 7/7] Relax the OpenSSL error checking code OpenSSL 1.0 and 1.1 have different messages for the errors, but the same error code. So only check the error code, not the exact error message. This is a port of #30889. --- .../tests/CtorTests.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/System.Security.Cryptography.X509Certificates/tests/CtorTests.cs b/src/System.Security.Cryptography.X509Certificates/tests/CtorTests.cs index da6e2630c0..24c7361500 100644 --- a/src/System.Security.Cryptography.X509Certificates/tests/CtorTests.cs +++ b/src/System.Security.Cryptography.X509Certificates/tests/CtorTests.cs @@ -355,7 +355,6 @@ namespace System.Security.Cryptography.X509Certificates.Tests else // Any Unix { Assert.Equal(0x0D07803A, ex.HResult); - Assert.Equal("error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error", ex.Message); } } -- 2.20.1