You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@@ -51,20 +51,23 @@ namespace Mono.Net.Security
|
||||
{
|
||||
class MonoTlsStream
|
||||
{
|
||||
#if SECURITY_DEP
|
||||
readonly IMonoTlsProvider provider;
|
||||
readonly NetworkStream networkStream;
|
||||
readonly HttpWebRequest request;
|
||||
readonly NetworkStream networkStream;
|
||||
|
||||
IMonoSslStream sslStream;
|
||||
WebExceptionStatus status;
|
||||
|
||||
internal HttpWebRequest Request {
|
||||
get { return request; }
|
||||
}
|
||||
|
||||
IMonoSslStream sslStream;
|
||||
|
||||
internal IMonoSslStream SslStream {
|
||||
get { return sslStream; }
|
||||
}
|
||||
#endif
|
||||
|
||||
WebExceptionStatus status;
|
||||
|
||||
internal WebExceptionStatus ExceptionStatus {
|
||||
get { return status; }
|
||||
@@ -75,7 +78,7 @@ namespace Mono.Net.Security
|
||||
}
|
||||
|
||||
#if SECURITY_DEP
|
||||
readonly ChainValidationHelper validationHelper;
|
||||
// readonly ChainValidationHelper validationHelper;
|
||||
readonly MonoTlsSettings settings;
|
||||
|
||||
public MonoTlsStream (HttpWebRequest request, NetworkStream networkStream)
|
||||
@@ -87,7 +90,7 @@ namespace Mono.Net.Security
|
||||
provider = request.TlsProvider ?? MonoTlsProviderFactory.GetProviderInternal ();
|
||||
status = WebExceptionStatus.SecureChannelFailure;
|
||||
|
||||
validationHelper = ChainValidationHelper.Create (provider.Provider, ref settings, this);
|
||||
/*validationHelper =*/ ChainValidationHelper.Create (provider.Provider, ref settings, this);
|
||||
}
|
||||
|
||||
internal Stream CreateStream (byte[] buffer)
|
||||
@@ -108,7 +111,7 @@ namespace Mono.Net.Security
|
||||
ServicePointManager.CheckCertificateRevocationList);
|
||||
|
||||
status = WebExceptionStatus.Success;
|
||||
} catch (Exception ex) {
|
||||
} catch (Exception) {
|
||||
status = WebExceptionStatus.SecureChannelFailure;
|
||||
throw;
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user