From 7fcb3cb0403e669b0bd8a6d2d3a1d4337b72a0cd Mon Sep 17 00:00:00 2001 From: psnx Date: Tue, 7 Nov 2023 17:36:23 +0100 Subject: [PATCH] TLS version to be picked up from config - it is currently hardwired TLS version was hardwired. It should be picked up from the tlsSecInfo object. --- lib60870/CS104/ClientConnection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib60870/CS104/ClientConnection.cs b/lib60870/CS104/ClientConnection.cs index a5eb9fc..53a4321 100644 --- a/lib60870/CS104/ClientConnection.cs +++ b/lib60870/CS104/ClientConnection.cs @@ -1242,7 +1242,7 @@ private void HandleConnection() try { - sslStream.AuthenticateAsServer(tlsSecInfo.OwnCertificate, true, System.Security.Authentication.SslProtocols.Tls, false); + sslStream.AuthenticateAsServer(tlsSecInfo.OwnCertificate, true, tlsSecInfo.TlsVersion, false); if (sslStream.IsAuthenticated == true) {