2017-04-10 11:41:01 +00:00
|
|
|
//
|
|
|
|
// AppleTlsStream.cs
|
|
|
|
//
|
|
|
|
// Author:
|
|
|
|
// Martin Baulig <martin.baulig@xamarin.com>
|
|
|
|
//
|
|
|
|
// Copyright (c) 2016 Xamarin, Inc.
|
|
|
|
//
|
|
|
|
|
|
|
|
#if MONO_SECURITY_ALIAS
|
|
|
|
extern alias MonoSecurity;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.IO;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
2017-08-21 15:34:15 +00:00
|
|
|
using System.Net.Security;
|
2017-04-10 11:41:01 +00:00
|
|
|
using System.Security.Authentication;
|
|
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
|
|
|
|
using MNS = Mono.Net.Security;
|
|
|
|
#if MONO_SECURITY_ALIAS
|
|
|
|
using MonoSecurity::Mono.Security.Interface;
|
|
|
|
#else
|
|
|
|
using Mono.Security.Interface;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace Mono.AppleTls
|
|
|
|
{
|
|
|
|
class AppleTlsStream : MNS.MobileAuthenticatedStream
|
|
|
|
{
|
2017-08-21 15:34:15 +00:00
|
|
|
public AppleTlsStream (Stream innerStream, bool leaveInnerStreamOpen, SslStream owner,
|
|
|
|
MonoTlsSettings settings, MonoTlsProvider provider)
|
|
|
|
: base (innerStream, leaveInnerStreamOpen, owner, settings, provider)
|
2017-04-10 11:41:01 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-08-07 15:19:03 +00:00
|
|
|
protected override MNS.MobileTlsContext CreateContext (MNS.MonoSslAuthenticationOptions options)
|
2017-04-10 11:41:01 +00:00
|
|
|
{
|
2018-08-07 15:19:03 +00:00
|
|
|
return new AppleTlsContext (this, options);
|
2017-04-10 11:41:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|