Exemplo n.º 1
0
 public LegacySslStream(Stream innerStream, bool leaveInnerStreamOpen, SslStream owner, MonoTlsProvider provider, MonoTlsSettings settings)
     : base(innerStream, leaveInnerStreamOpen)
 {
     SslStream            = owner;
     Provider             = provider;
     certificateValidator = ChainValidationHelper.GetInternalValidator(provider, settings);
 }
Exemplo n.º 2
0
 internal static object GetInternalValidator(object provider, object settings)
 {
                 #if SECURITY_DEP
     return(ChainValidationHelper.GetInternalValidator((MSI.MonoTlsProvider)provider, (MSI.MonoTlsSettings)settings));
                 #else
     throw new NotSupportedException();
                 #endif
 }