using System; using System.Collections.Generic; using System.Net.Security; using System.Security.Authentication; using System.Security.Cryptography.X509Certificates; namespace MQTTnet.Client.Options { public class MqttClientOptionsBuilderTlsParameters { public bool UseTls { get; set; } [Obsolete("This property will be removed soon. Use CertificateValidationHandler instead.")] public Func CertificateValidationCallback { get; set; } public Func CertificateValidationHandler { get; set; } public SslProtocols SslProtocol { get; set; } = SslProtocols.Tls12; #if WINDOWS_UWP public IEnumerable> Certificates { get; set; } #else public IEnumerable Certificates { get; set; } #endif public bool AllowUntrustedCertificates { get; set; } public bool IgnoreCertificateChainErrors { get; set; } public bool IgnoreCertificateRevocationErrors { get; set; } } }