Skip to content

Commit

Permalink
Add another MARTIN_FIXME to the new file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Baulig committed Oct 9, 2015
1 parent eb2f282 commit 0d90e72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mcs/class/System/ReferenceSources/SslStream.cs
Expand Up @@ -25,6 +25,7 @@ partial class SslStream : IMonoTlsEventSink
internal SslStream (Stream innerStream, bool leaveInnerStreamOpen, EncryptionPolicy encryptionPolicy, MonoTlsSettings settings)
: base (innerStream, leaveInnerStreamOpen)
{
#if MARTIN_FIXME
if (encryptionPolicy != EncryptionPolicy.RequireEncryption && encryptionPolicy != EncryptionPolicy.AllowNoEncryption && encryptionPolicy != EncryptionPolicy.NoEncryption)
throw new ArgumentException (SR.GetString (SR.net_invalid_enum, "EncryptionPolicy"), "encryptionPolicy");

Expand All @@ -36,8 +37,12 @@ internal SslStream (Stream innerStream, bool leaveInnerStreamOpen, EncryptionPol

_Configuration = new MyConfiguration (settings, this);
_SslState = new SslState (innerStream, null, selectionCallback, encryptionPolicy, _Configuration);
#else
throw new NotImplementedException ();
#endif
}

#if MARTIN_FIXME
/*
* Mono-specific version of 'userCertValidationCallbackWrapper'; we're called from ChainValidationHelper.ValidateChain() here.
*
Expand All @@ -56,6 +61,7 @@ bool myUserCertValidationCallbackWrapper (ServerCertValidationCallback callback,

return ChainValidationHelper.InvokeCallback (callback, this, certificate, chain, sslPolicyErrors);
}
#endif

class MyConfiguration : SSPIConfiguration
{
Expand Down

0 comments on commit 0d90e72

Please sign in to comment.