You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -42,6 +42,7 @@ namespace System.Net.Http
|
||||
int readWriteTimeout;
|
||||
RemoteCertificateValidationCallback serverCertificateValidationCallback;
|
||||
bool unsafeAuthenticatedConnectionSharing;
|
||||
X509CertificateCollection clientCertificates;
|
||||
|
||||
public WebRequestHandler ()
|
||||
{
|
||||
@ -54,6 +55,7 @@ namespace System.Net.Http
|
||||
readWriteTimeout = 300000;
|
||||
serverCertificateValidationCallback = null;
|
||||
unsafeAuthenticatedConnectionSharing = false;
|
||||
clientCertificates = new X509CertificateCollection();
|
||||
}
|
||||
|
||||
public bool AllowPipelining {
|
||||
@ -80,9 +82,14 @@ namespace System.Net.Http
|
||||
}
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public X509CertificateCollection ClientCertificates {
|
||||
get { throw new NotImplementedException (); }
|
||||
get {
|
||||
if (this.ClientCertificateOptions != ClientCertificateOption.Manual) {
|
||||
throw new InvalidOperationException("The ClientCertificateOptions property must be set to 'Manual' to use this property.");
|
||||
}
|
||||
|
||||
return clientCertificates;
|
||||
}
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
@ -118,7 +125,6 @@ namespace System.Net.Http
|
||||
}
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public RemoteCertificateValidationCallback ServerCertificateValidationCallback {
|
||||
get { return serverCertificateValidationCallback; }
|
||||
set {
|
||||
@ -146,6 +152,11 @@ namespace System.Net.Http
|
||||
wr.MaximumResponseHeadersLength = maxResponseHeadersLength;
|
||||
wr.ReadWriteTimeout = readWriteTimeout;
|
||||
wr.UnsafeAuthenticatedConnectionSharing = unsafeAuthenticatedConnectionSharing;
|
||||
wr.ServerCertificateValidationCallback = serverCertificateValidationCallback;
|
||||
|
||||
if (this.ClientCertificateOptions == ClientCertificateOption.Manual) {
|
||||
wr.ClientCertificates = clientCertificates;
|
||||
}
|
||||
|
||||
return wr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user