Pārlūkot izejas kodu

Move server x509 certs into non-uwp compiler flags

release/3.x.x
Ben Origas pirms 5 gadiem
vecāks
revīzija
88e8691ce0
2 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      Source/MQTTnet/Server/MqttServerOptionsBuilder.cs
  2. +2
    -0
      Source/MQTTnet/Server/MqttServerTlsTcpEndpointOptions.cs

+ 2
- 0
Source/MQTTnet/Server/MqttServerOptionsBuilder.cs Parādīt failu

@@ -90,11 +90,13 @@ namespace MQTTnet.Server
return this;
}

#if !WINDOWS_UWP
public MqttServerOptionsBuilder WithEncryptionCertificate(X509Certificate2 certificate)
{
_options.TlsEndpointOptions.X509Certificate = certificate;
return this;
}
#endif

public MqttServerOptionsBuilder WithEncryptionSslProtocol(SslProtocols value)
{


+ 2
- 0
Source/MQTTnet/Server/MqttServerTlsTcpEndpointOptions.cs Parādīt failu

@@ -13,7 +13,9 @@ namespace MQTTnet.Server

public byte[] Certificate { get; set; }

#if !WINDOWS_UWP
public X509Certificate2 X509Certificate { get; set; }
#endif

public IMqttServerCertificateCredentials CertificateCredentials { get; set; }



Notiek ielāde…
Atcelt
Saglabāt