Re: [Mono-dev] Question about Mono.Security.X509

2008-06-12 Thread David Isaac Wolinsky
Attached is a patch to allow creation of the SubjectAltName Extension using X509CertificateBuilder. There are some unit tests and I confirmed using openssl, System.Security.Cryptography.X509Certificates, and Mono.Security.X509 to read the certificates. I also went ahead and fixed the IP Addre

Re: [Mono-dev] DataColumn.DefaultValue fixes

2008-06-12 Thread Atsushi Eno
Thanks, applied. Atsushi Eno Veerapuram Varadhan wrote: > Hi Atsushi, > > Patch looks really good to go. > > Thanks, > > V. Varadhan > > On Fri, 2008-06-13 at 01:06 +0900, Atsushi Eno wrote: >> Hello, >> >> I have a fix for one of failing sys.data test in 2.0 profile. Here >> is description (

Re: [Mono-dev] Question about Mono.Security.X509

2008-06-12 Thread Sebastien Pouliot
Hello David, On Thu, 2008-06-12 at 14:26 -0400, David Wolinsky wrote: > Is anyone working on X509CertificateBuilder. AFAIK no one. The actual class does everything that mono itself requires (mostly implementing the makecert tool). > I am putting together a > little work to add a single URI to

[Mono-dev] Question about Mono.Security.X509

2008-06-12 Thread David Wolinsky
Is anyone working on X509CertificateBuilder. I am putting together a little work to add a single URI to SubjectAltName and add the extension to the CertificateBuilder. It appears to work in both .Net and Mono. They were able to properly read the certificate and Identify the SubjectAltName.

Re: [Mono-dev] DataColumn.DefaultValue fixes

2008-06-12 Thread Atsushi Eno
Sure, you are right. I'll make that change. Thanks. Atsushi Eno Gert Driesen wrote: > Atsushi, > > I wouldn't use the ExpectedException attribute on the Defaults3 tests, > as it allows for false positives (if any of the other calls results in > an ArgumentException). > > Instead just use this

Re: [Mono-dev] DataColumn.DefaultValue fixes

2008-06-12 Thread Gert Driesen
Atsushi, I wouldn't use the ExpectedException attribute on the Defaults3 tests, as it allows for false positives (if any of the other calls results in an ArgumentException). Instead just use this (more verbose but) correcter code: try { col.DefaultValue = DBNull.Value; // throws. DBNull is

Re: [Mono-dev] DataColumn.DefaultValue fixes

2008-06-12 Thread Veerapuram Varadhan
Hi Atsushi, Patch looks really good to go. Thanks, V. Varadhan On Fri, 2008-06-13 at 01:06 +0900, Atsushi Eno wrote: > Hello, > > I have a fix for one of failing sys.data test in 2.0 profile. Here > is description (could be used for ChangeLog): > > * System.Data/DataColumn.cs > DefaultValue

[Mono-dev] DataColumn.DefaultValue fixes

2008-06-12 Thread Atsushi Eno
Hello, I have a fix for one of failing sys.data test in 2.0 profile. Here is description (could be used for ChangeLog): * System.Data/DataColumn.cs DefaultValue can be non-DBNull. For SqlXxx type, it becomes SqlXxx.Null. Also, changing DataType may change DefaultValue to be consistent with

[Mono-dev] [patch] use Mono's copy of Cecil in the debugger

2008-06-12 Thread Jb Evain
Hey, The attached patch makes mdb uses the private version of Cecil that comes with Mono. It avoids a copy that is installed to the GAC, and make sure the debugger is using an up to date version of Cecil. I have the same 2 unit tests failure in the debugger with or without this patch. Ok to comm

Re: [Mono-dev] [PATCH] Marshaling structs on Winx64

2008-06-12 Thread Zoltan Varga
Hi, - ArgNone /* only in pair_storage */ + ArgNone, /* only in pair_storage */ + ArgValuetypeAddrInIReg } ArgStorage; - it would look better if ArgNone would be the last entry. + load->inst_left = (cfg)->varinfo [vtaddr->inst_c0];; - th

Re: [Mono-dev] BinaryReader Mono 1.9.1 problem

2008-06-12 Thread Mario De Clippeleir
Hi, The problem is with the ReadChars function. All of a sudden it skips more than it is supposed to. When I use ReadBytes, it works. The ReadChars(64) is supposed to be on position 128, but it is on 136. Here are the file and some test code : using System; using System.Collection

[Mono-dev] Fwd: BinaryReader Mono 1.9.1 problem

2008-06-12 Thread Leszek Ciesielski
-- Forwarded message -- From: Mario De Clippeleir <[EMAIL PROTECTED]> Date: Thu, Jun 12, 2008 at 1:04 PM Subject: RE: [Mono-dev] BinaryReader Mono 1.9.1 problem To: Leszek Ciesielski <[EMAIL PROTECTED]> Hi, The problem is with the ReadChars function. All of a sudden it skips more

Re: [Mono-dev] BinaryReader Mono 1.9.1 problem

2008-06-12 Thread Jb Evain
Hey, On 6/12/08, Mario De Clippeleir <[EMAIL PROTECTED]> wrote: > Anybody got any ideas on what this problem may be and how/when it can be > resolved ? If you want it to be fixed, could you please send a test case, which reproduces the error you're having? Thanks, -- Jb Evain <[EMAIL PROTECTE

[Mono-dev] BinaryReader Mono 1.9.1 problem

2008-06-12 Thread Mario De Clippeleir
Hi, I have a problem where the binaryreader gives the following error : System.IO.EndOfStreamException: Failed to read past end of stream. I am using mono 1.9.1. It works fine in just c#. Anybody got any ideas on what this problem may be and how/when it can be resolved ? Th

[Mono-dev] Patch for some obscure cases in Dictionary (small)

2008-06-12 Thread Andreas Nahr
Re-sent without input file. Please test the patch and tell me if it is ok to apply. Does not seem to break anything for me, but did not test very extensively. You can get the input file from http://shootout.alioth.debian.org/download/knucleotide-input.txt Andreas > While trying to optimize the k-