Exemplo n.º 1
0
		public MonoSslStream (MSI.MonoSslStream stream)
		{
			this.stream = stream;

			if (NewTlsProvider.IsNewTlsStream (stream))
				monoNewTlsStream = NewTlsProvider.GetNewTlsStream (stream);
		}
Exemplo n.º 2
0
        public MonoSslStream(MSI.MonoSslStream stream)
        {
            this.stream = stream;

            if (NewTlsProvider.IsNewTlsStream(stream))
            {
                monoNewTlsStream = NewTlsProvider.GetNewTlsStream(stream);
            }
        }
Exemplo n.º 3
0
		public MonoSslStreamWrapper (MonoSslStream impl)
		{
			this.impl = impl;
		}
Exemplo n.º 4
0
		protected void Dispose (bool disposing)
		{
			if (impl != null && disposing) {
				impl.Dispose ();
				impl = null;
			}
		}
Exemplo n.º 5
0
		protected override void Dispose (bool disposing)
		{
			try {
				if (impl != null && disposing) {
					impl.Dispose ();
					impl = null;
				}
			} finally {
				base.Dispose (disposing);
			}
		}
Exemplo n.º 6
0
		internal SslStream (Stream innerStream, bool leaveInnerStreamOpen, MonoSslStream impl)
			: base (innerStream, leaveInnerStreamOpen)
		{
			this.impl = impl;
		}
Exemplo n.º 7
0
		public SslStream (Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback)
			: base (innerStream, leaveInnerStreamOpen)
		{
			var provider = GetProvider ();
			var settings = new MonoTlsSettings ();
			settings.RemoteCertificateValidationCallback = MNS.Private.CallbackHelpers.PublicToMono (userCertificateValidationCallback);
			settings.ClientCertificateSelectionCallback = MNS.Private.CallbackHelpers.PublicToMono (userCertificateSelectionCallback);
			impl = provider.CreateSslStream (innerStream, leaveInnerStreamOpen, settings);
		}
Exemplo n.º 8
0
		public SslStream (Stream innerStream, bool leaveInnerStreamOpen)
			: base (innerStream, leaveInnerStreamOpen)
		{
			var provider = GetProvider ();
			impl = provider.CreateSslStream (innerStream, leaveInnerStreamOpen);
		}