Skip to content

Commit 2a4e288

Browse files
resolve SYSLIB0058
1 parent fd2c9cd commit 2a4e288

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

src/Directory.Build.props

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
<VersionPrefix>25.1.0</VersionPrefix>
1818
<VersionSuffix>prerelease</VersionSuffix>
1919
<IsTestProject>false</IsTestProject>
20-
<!-- Adjust for SYSLIB0057 and SYSLIB0057 separately to .NET 10 upgrade -->
21-
<!-- //qq SYSLIB0057 -->
22-
<NoWarn>SYSLIB0057;SYSLIB0058</NoWarn>
20+
<!-- Adjust for SYSLIB0057 separately to .NET 10 upgrade -->
21+
<NoWarn>SYSLIB0057</NoWarn>
2322
</PropertyGroup>
2423

2524
<ItemGroup Condition="'$(IsPlugin)' == 'true'">

src/Directory.Build.targets

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<!--//qq temporary-->
4-
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
3+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
54
</PropertyGroup>
65
</Project>

src/KurrentDB.Transport.Tcp/TcpConnectionSsl.cs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -291,23 +291,7 @@ public bool ValidateClientCertificate(object sender, X509Certificate certificate
291291

292292
private void DisplaySslStreamInfo(SslStream stream) {
293293
Log.Information("[S{remoteEndPoint}, L{localEndPoint}]", RemoteEndPoint, LocalEndPoint);
294-
Log.Verbose("Cipher: {cipherAlgorithm}", stream.CipherAlgorithm);
295-
try {
296-
Log.Verbose("Cipher strength: {cipherStrength}", stream.CipherStrength);
297-
} catch (NotImplementedException) {
298-
}
299-
300-
Log.Verbose("Hash: {hashAlgorithm}", stream.HashAlgorithm);
301-
try {
302-
Log.Verbose("Hash strength: {hashStrength}", stream.HashStrength);
303-
} catch (NotImplementedException) {
304-
}
305-
306-
Log.Verbose("Key exchange: {keyExchangeAlgorithm}", stream.KeyExchangeAlgorithm);
307-
try {
308-
Log.Verbose("Key exchange strength: {keyExchangeStrength}", stream.KeyExchangeStrength);
309-
} catch (NotImplementedException) {
310-
}
294+
Log.Verbose("NegotiatedCipherSuite: {cipherSuite}", stream.NegotiatedCipherSuite);
311295

312296
Log.Information("Protocol: {sslProtocol}", stream.SslProtocol);
313297
Log.Information("Is authenticated: {isAuthenticated} as server? {isServer}", stream.IsAuthenticated,

0 commit comments

Comments
 (0)