You've already forked linux-packaging-mono
Imported Upstream version 5.4.0.167
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
This commit is contained in:
parent
e49d6f06c0
commit
536cd135cc
@ -31,6 +31,23 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace System.Net.Security
|
||||
{
|
||||
/*
|
||||
* These two are defined by the referencesource; add them here to make
|
||||
* it easy to switch between the two implementations.
|
||||
*/
|
||||
|
||||
internal delegate bool RemoteCertValidationCallback (
|
||||
string host,
|
||||
X509Certificate certificate,
|
||||
X509Chain chain,
|
||||
SslPolicyErrors sslPolicyErrors);
|
||||
|
||||
internal delegate X509Certificate LocalCertSelectionCallback (
|
||||
string targetHost,
|
||||
X509CertificateCollection localCertificates,
|
||||
X509Certificate remoteCertificate,
|
||||
string[] acceptableIssuers);
|
||||
|
||||
public class SslStream : AuthenticatedStream
|
||||
{
|
||||
const string EXCEPTION_MESSAGE = "System.Net.Security.SslStream is not supported on the current platform.";
|
||||
@ -51,7 +68,6 @@ namespace System.Net.Security
|
||||
{
|
||||
}
|
||||
|
||||
#if SECURITY_DEP
|
||||
public SslStream (Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback)
|
||||
: this (innerStream, leaveInnerStreamOpen)
|
||||
{
|
||||
@ -61,7 +77,6 @@ namespace System.Net.Security
|
||||
: this (innerStream, leaveInnerStreamOpen)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
public virtual void AuthenticateAsClient (string targetHost)
|
||||
{
|
||||
@ -137,6 +152,11 @@ namespace System.Net.Security
|
||||
throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
|
||||
}
|
||||
|
||||
public virtual Task ShutdownAsync ()
|
||||
{
|
||||
throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
|
||||
}
|
||||
|
||||
public override bool IsAuthenticated {
|
||||
get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
|
||||
}
|
||||
|
Reference in New Issue
Block a user