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

Alexander Köplinger alex.koeplinger at outlook.com
Sun Dec 14 17:53:12 UTC 2014


I'm curious: why do you need it to compile with MS.NET if you're testing Mono stuff?
-- Alex
 
> From: edward.harvey.mono at clevertrove.com
> To: alex.koeplinger at outlook.com
> CC: mono-devel-list at lists.ximian.com
> Subject: RE: [Mono-dev] Open source .Net, and TLS 1.1 & 1.2
> Date: Sun, 14 Dec 2014 17:44:52 +0000
> 
> > From: Alexander Köplinger [mailto:alex.koeplinger at outlook.com]
> > 
> > You can find out if you run on Mono by checking if Type.GetType
> > ("Mono.Runtime") != null.
> 
> That's helpful, but doesn't quite solve it, because compilation will fail on windows ...
> 
> I'm looking for something like this...
> 
> #ifdef MONO
>             Mono.Security.X509.X509StoreManager.CurrentUser.TrustedRoot.Import(junkRootCert);
>             try
>             {
> #endif
>                 DoStuff();
> #ifdef MONO
>             }
>             finally
>             {
>                 Mono.Security.X509.X509StoreManager.CurrentUser.TrustedRoot.Remove(junkRootCert);
>             }
> #endif
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20141214/dd73af4b/attachment.html>


More information about the Mono-devel-list mailing list