X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.ServiceModel%2FSystem.ServiceModel.Channels%2FSslStreamSecurityBindingElement.cs;h=3201ef86eb664118064f372eb0298e88d5d9b6d9;hb=8bb9b4409d3f73fdf5ec2afc3b9add6bd33f712f;hp=e9f14563c7804c69d945742180e33619dcf0562f;hpb=bdd0809c70020fc9c381c4310c346368e195fe76;p=mono.git diff --git a/mcs/class/System.ServiceModel/System.ServiceModel.Channels/SslStreamSecurityBindingElement.cs b/mcs/class/System.ServiceModel/System.ServiceModel.Channels/SslStreamSecurityBindingElement.cs index e9f14563c78..3201ef86eb6 100644 --- a/mcs/class/System.ServiceModel/System.ServiceModel.Channels/SslStreamSecurityBindingElement.cs +++ b/mcs/class/System.ServiceModel/System.ServiceModel.Channels/SslStreamSecurityBindingElement.cs @@ -82,7 +82,10 @@ namespace System.ServiceModel.Channels [MonoTODO] public XmlElement GetTransportTokenAssertion () { - throw new NotImplementedException (); + var doc = new XmlDocument (); + var element = doc.CreateElement ( + "msf", "SslTransportSecurity", PolicyImportHelper.FramingPolicyNS); + return element; } [MonoTODO] @@ -130,9 +133,11 @@ namespace System.ServiceModel.Channels [MonoTODO] void IPolicyExportExtension.ExportPolicy ( MetadataExporter exporter, - PolicyConversionContext policyContext) + PolicyConversionContext context) { - throw new NotImplementedException (); + var token = GetTransportTokenAssertion (); + var transportBinding = TransportBindingElement.CreateTransportBinding (token); + context.GetBindingAssertions ().Add (transportBinding); } #endregion }