internal HttpListener(X509Certificate certificate, IMonoTlsProvider tlsProvider, MSI.MonoTlsSettings tlsSettings) : this() { this.certificate = certificate; this.tlsProvider = tlsProvider; this.tlsSettings = tlsSettings; }
internal IMonoSslStream CreateSslStream(Stream innerStream, bool ownsStream, MSI.MonoRemoteCertificateValidationCallback callback) { lock (registry) { if (tlsProvider == null) { tlsProvider = MonoTlsProviderFactory.GetProviderInternal(); } if (tlsSettings == null) { tlsSettings = MSI.MonoTlsSettings.CopyDefaultSettings(); } if (tlsSettings.RemoteCertificateValidationCallback == null) { tlsSettings.RemoteCertificateValidationCallback = callback; } return(tlsProvider.CreateSslStream(innerStream, ownsStream, tlsSettings)); } }
internal IMonoSslStream CreateSslStream(Stream innerStream, bool ownsStream, MSI.MonoRemoteCertificateValidationCallback callback) { lock (registry) { if (tlsProvider == null) tlsProvider = MonoTlsProviderFactory.GetProviderInternal(); if (tlsSettings == null) tlsSettings = MSI.MonoTlsSettings.CopyDefaultSettings(); if (tlsSettings.RemoteCertificateValidationCallback == null) tlsSettings.RemoteCertificateValidationCallback = callback; return tlsProvider.CreateSslStream(innerStream, ownsStream, tlsSettings); } }