[Mono-dev] Open source .Net, and TLS 1.1 & 1.2

Martin Thwaites monoforum at my2cents.co.uk
Sun Dec 14 10:34:24 UTC 2014


Do we not have a flag for if it's compiled for tests, rather than release?
On 14 Dec 2014 05:14, "Edward Ned Harvey (mono)" <
edward.harvey.mono at clevertrove.com> wrote:

> > From: Miguel de Icaza [mailto:miguel at xamarin.com]
> >
> > We would love a test case to add to the test suite.
> >
> > We are building a new test suite as part of this work anyways.
>
> This is almost done.  Granted it is microscopic in scope - the test I've
> written tests only for the case that I know fails; it's far from being a
> generalized test for the SslStream class as a whole.
>
> Quick question:
>
> I'd like to make the behavior different on mono and .Net.  Particularly,
> I've generated a junk root CA, and on mono I'd like to use
>
> Mono.Security.X509.X509StoreManager.CurrentUser.TrustedRoot.Import(junkRootCert);
> To programatically import that cert momentarily for the scope of the test
> (and subsequently remove it).
>
> Obviously, this doesn't exist in .Net.  And as far as I know there is no
> way to programatically import a root CA in .Net.
>
> So is there some #ifdef clause I can use to detect if this is mono or .Net?
>
> I searched the other test classes, and there's RUN_ONDOTNET,  but I'm not
> certain it's the right thing for the job.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20141214/3e4ea45b/attachment.html>


More information about the Mono-devel-list mailing list