2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Wed, 4 Jan 2006 19:05:06 +0000 (19:05 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Wed, 4 Jan 2006 19:05:06 +0000 (19:05 -0000)
* ASN1Convert.cs: Fix convertion of integer 0 to ASN.1.

svn path=/trunk/mcs/; revision=55066

mcs/class/corlib/Mono.Security/ASN1Convert.cs
mcs/class/corlib/Mono.Security/ChangeLog

index e9bf8176f9e787705aa6feda900eba62bc6c4971..16c7ef6b293a60c439bb0164f201236015695052 100644 (file)
@@ -88,7 +88,7 @@ namespace Mono.Security {
                                asn1.Value = integer;
                                break;
                        case 4:
-                               asn1.Value = new byte [0];
+                               asn1.Value = new byte [1];
                                break;
                        default:
                                byte[] smallerInt = new byte [4 - x];
index 847abd0a7112581187fd31a127f34471aeb7d378..677fb389021ee08d4fa054d4930d747eaa589f7c 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * ASN1Convert.cs: Fix convertion of integer 0 to ASN.1.
+
 2005-11-07  Sebastien Pouliot  <sebastien@ximian.com>
 
        * StrongName.cs: Synch with Mono.Security.dll to get support for