File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/libraries/System.Net.Security/tests/FunctionalTests Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments