Author: spouliot
Date: 2005-04-24 15:07:00 -0400 (Sun, 24 Apr 2005)
New Revision: 43517

Modified:
   
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/ChangeLog
   
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Certificate.cs
   
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509ContentType.cs
   
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509KeyStorageFlags.cs
Log:
2005-04-24  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * X509Certificate.cs: Add [ComVisible (true)] to class, add new Issuer
        and Subject properties. Removed some [ComVisible (false)] on methods.
        * X509ContentType.cs: Add [ComVisible (true)] to enum.
        * X509KeyStorageFlags.cs: Add [ComVisible (true)] to enum.



Modified: 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/ChangeLog
===================================================================
--- 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/ChangeLog  
    2005-04-24 18:45:56 UTC (rev 43516)
+++ 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/ChangeLog  
    2005-04-24 19:07:00 UTC (rev 43517)
@@ -1,3 +1,10 @@
+2005-04-24  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * X509Certificate.cs: Add [ComVisible (true)] to class, add new Issuer
+       and Subject properties. Removed some [ComVisible (false)] on methods.
+       * X509ContentType.cs: Add [ComVisible (true)] to enum.
+       * X509KeyStorageFlags.cs: Add [ComVisible (true)] to enum.
+
 2005-03-24  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * X509Certificate.cs: Added Demand for UnmanagedCode to ctor(IntPtr).

Modified: 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Certificate.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Certificate.cs
     2005-04-24 18:45:56 UTC (rev 43516)
+++ 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509Certificate.cs
     2005-04-24 19:07:00 UTC (rev 43517)
@@ -51,6 +51,7 @@
        // X509v1 certificates and non-authenticode (code signing) certs.
        [Serializable]
 #if NET_2_0
+       [ComVisible (true)]
        public class X509Certificate : IDeserializationCallback, ISerializable {
 #else
        public class X509Certificate {
@@ -325,7 +326,10 @@
                        else
                                return 0;
                }
-       
+
+#if NET_2_0
+               [Obsolete ("Use the Issuer property.")]
+#endif
                public virtual string GetIssuerName () 
                {
                        return x509.IssuerName;
@@ -346,6 +350,9 @@
                        return tostr (x509.KeyAlgorithmParameters);
                }
        
+#if NET_2_0
+               [Obsolete ("Use the Subject property.")]
+#endif
                public virtual string GetName ()
                {
                        return x509.SubjectName;
@@ -438,6 +445,14 @@
                }
 
 #if NET_2_0
+               public string Issuer {
+                       get { return x509.IssuerName; }
+               }
+
+               public string Subject {
+                       get { return x509.SubjectName; }
+               }
+
                [ComVisible (false)]
                public override bool Equals (object obj) 
                {
@@ -462,7 +477,6 @@
                }
 
                [MonoTODO ("incomplete")]
-               [ComVisible (false)]
                public virtual byte[] Export (X509ContentType contentType, 
SecureString password)
                {
                        return Export (contentType, password.GetBuffer ());
@@ -506,7 +520,6 @@
                }
 
                [MonoTODO ("incomplete")]
-               [ComVisible (false)]
                public virtual void Import (byte[] rawData, SecureString 
password, X509KeyStorageFlags keyStorageFlags)
                {
                        Import (rawData, password.GetBuffer (), 
keyStorageFlags);
@@ -546,7 +559,6 @@
                }
 
                [MonoTODO ("incomplete")]
-               [ComVisible (false)]
                public virtual void Import (string fileName, SecureString 
password, X509KeyStorageFlags keyStorageFlags)
                {
                        Import (fileName, password.GetBuffer (), 
keyStorageFlags);

Modified: 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509ContentType.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509ContentType.cs
     2005-04-24 18:45:56 UTC (rev 43516)
+++ 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509ContentType.cs
     2005-04-24 19:07:00 UTC (rev 43517)
@@ -4,7 +4,7 @@
 // Author:
 //     Sebastien Pouliot  <[EMAIL PROTECTED]>
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -26,14 +26,15 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography.X509Certificates {
 
 // Note: Definitions are useful for 1.0 and 1.1 so we declare them internal
 
+#if NET_2_0
        [Serializable]
-#if NET_2_0
+       [ComVisible (true)]
        public
 #else
        internal

Modified: 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509KeyStorageFlags.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509KeyStorageFlags.cs
 2005-04-24 18:45:56 UTC (rev 43516)
+++ 
trunk/mcs/class/corlib/System.Security.Cryptography.X509Certificates/X509KeyStorageFlags.cs
 2005-04-24 19:07:00 UTC (rev 43517)
@@ -4,7 +4,7 @@
 // Author:
 //     Sebastien Pouliot  <[EMAIL PROTECTED]>
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -28,12 +28,13 @@
 
 #if NET_2_0
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography.X509Certificates {
 
        [Flags]
        [Serializable]
+       [ComVisible (true)]
        public enum X509KeyStorageFlags {
                DefaultKeySet = 0,
                UserKeySet = 1,

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to