updateing some unused var to ifdef

This commit is contained in:
BlubbFish 2021-04-10 18:57:53 +02:00
parent 7b3d608c17
commit 0957512354

View File

@ -48,9 +48,10 @@ namespace uPLibrary.Networking.M2Mqtt {
private Socket socket; private Socket socket;
// using SSL // using SSL
private readonly Boolean secure; private readonly Boolean secure;
#if MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3
// CA certificate (on client) // CA certificate (on client)
private readonly X509Certificate caCert; private readonly X509Certificate caCert;
#endif
// Server certificate (on broker) // Server certificate (on broker)
private readonly X509Certificate serverCert; private readonly X509Certificate serverCert;
// client certificate (on client) // client certificate (on client)
@ -197,7 +198,9 @@ namespace uPLibrary.Networking.M2Mqtt {
this.RemoteIpAddress = remoteIpAddress; this.RemoteIpAddress = remoteIpAddress;
this.RemotePort = remotePort; this.RemotePort = remotePort;
this.secure = secure; this.secure = secure;
#if MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3
this.caCert = caCert; this.caCert = caCert;
#endif
this.clientCert = clientCert; this.clientCert = clientCert;
this.sslProtocol = sslProtocol; this.sslProtocol = sslProtocol;
#if !(MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3 || COMPACT_FRAMEWORK) #if !(MF_FRAMEWORK_VERSION_V4_2 || MF_FRAMEWORK_VERSION_V4_3 || COMPACT_FRAMEWORK)