From 095751235439d7f55b51b9b8794f254684db86cb Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Sat, 10 Apr 2021 18:57:53 +0200 Subject: [PATCH] updateing some unused var to ifdef --- M2Mqtt/Net/MqttNetworkChannel.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/M2Mqtt/Net/MqttNetworkChannel.cs b/M2Mqtt/Net/MqttNetworkChannel.cs index 3aeb662..6893b58 100644 --- a/M2Mqtt/Net/MqttNetworkChannel.cs +++ b/M2Mqtt/Net/MqttNetworkChannel.cs @@ -48,9 +48,10 @@ namespace uPLibrary.Networking.M2Mqtt { private Socket socket; // using SSL private readonly Boolean secure; - +#if MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3 // CA certificate (on client) private readonly X509Certificate caCert; +#endif // Server certificate (on broker) private readonly X509Certificate serverCert; // client certificate (on client) @@ -197,7 +198,9 @@ namespace uPLibrary.Networking.M2Mqtt { this.RemoteIpAddress = remoteIpAddress; this.RemotePort = remotePort; this.secure = secure; +#if MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3 this.caCert = caCert; +#endif this.clientCert = clientCert; this.sslProtocol = sslProtocol; #if !(MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3 || COMPACT_FRAMEWORK)