Skip to content

Commit 179473d

Browse files
authored
Skip SSL key log test for OpenSSL 3.5+ (#116474)
1 parent e2bd63b commit 179473d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamRemoteExecutorTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public SslStreamRemoteExecutorTests()
2525
[PlatformSpecific(TestPlatforms.Linux)] // SSLKEYLOGFILE is only supported on Linux for SslStream
2626
[InlineData(true)]
2727
[InlineData(false)]
28+
//[ActiveIssue("https://github.com/dotnet/runtime/issues/116473")]
2829
public async Task SslKeyLogFile_IsCreatedAndFilled(bool enabledBySwitch)
2930
{
3031
if (PlatformDetection.IsDebugLibrary(typeof(SslStream).Assembly) && !enabledBySwitch)
@@ -34,6 +35,13 @@ public async Task SslKeyLogFile_IsCreatedAndFilled(bool enabledBySwitch)
3435
return;
3536
}
3637

38+
if (PlatformDetection.IsOpenSsl3_5 && !enabledBySwitch)
39+
{
40+
// OpenSSL 3.5 and later versions log into file in SSLKEYLOGFILE environment variable by default,
41+
// regardless of AppContext switch.
42+
return;
43+
}
44+
3745
var psi = new ProcessStartInfo();
3846
var tempFile = Path.GetTempFileName();
3947
psi.Environment.Add("SSLKEYLOGFILE", tempFile);

0 commit comments

Comments
 (0)