mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 19:13:11 +08:00
added support for Tls1.3 protocol
This commit is contained in:
@@ -19,7 +19,11 @@ namespace MQTTnet.Client.Options
|
||||
|
||||
public Func<MqttClientCertificateValidationCallbackContext, bool> CertificateValidationHandler { get; set; }
|
||||
|
||||
#if NETCOREAPP3_0 || NET5_0
|
||||
public SslProtocols SslProtocol { get; set; } = SslProtocols.Tls13;
|
||||
#else
|
||||
public SslProtocols SslProtocol { get; set; } = SslProtocols.Tls12;
|
||||
#endif
|
||||
|
||||
#if WINDOWS_UWP
|
||||
public IEnumerable<IEnumerable<byte>> Certificates { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user