* OpenFlags.cs: Fixed flags values. Added missing attributes.
* StoreLocation.cs: Fixed enum values. Added missing [Serializable].
* StoreName.cs: Fixed enum values. Added missing [Serializable].
* X500DistinguishedName.cs: New. X.501 DN.
* X500DistinguishedNameFlags.cs: New. X.501 DN flags.
* X509CertificateEx.cs: Updated to Fx 2.0 beta 1. Added MonoTODO.
* X509Chain.cs: Added missing Reset method.
* X509ChainStatusFlags.cs: Fixed flags values. Added missing attrs.
* X509Extension.cs: Fixed API.
* X509ExtensionCollection.cs: Fixed API and implemented.
* X509FindType.cs: Fixed enum values. Added missing [Serializable].
* X509IncludeOption.cs: Added missing [Serializable].
* X509KeyUsageFlags.cs: : Fixed flags values. Added missing attrs.
* X509NameType.cs: Fixed enum values. Added missing [Serializable].
* X509RevocationFlag.cs: Fixed enum values. Added missing [Serializable].
* X509RevocationMode.cs: Added missing [Serializable].
* X509SelectionFlag.cs: Added missing [Serializable].
* X509VerificationFlags.cs: Fixed flags values. Added missing attrs.
svn path=/trunk/mcs/; revision=30908
+2004-07-08 Sebastien Pouliot <sebastien@ximian.com>
+
+ * OpenFlags.cs: Fixed flags values. Added missing attributes.
+ * StoreLocation.cs: Fixed enum values. Added missing [Serializable].
+ * StoreName.cs: Fixed enum values. Added missing [Serializable].
+ * X500DistinguishedName.cs: New. X.501 DN.
+ * X500DistinguishedNameFlags.cs: New. X.501 DN flags.
+ * X509CertificateEx.cs: Updated to Fx 2.0 beta 1. Added MonoTODO.
+ * X509Chain.cs: Added missing Reset method.
+ * X509ChainStatusFlags.cs: Fixed flags values. Added missing attrs.
+ * X509Extension.cs: Fixed API.
+ * X509ExtensionCollection.cs: Fixed API and implemented.
+ * X509FindType.cs: Fixed enum values. Added missing [Serializable].
+ * X509IncludeOption.cs: Added missing [Serializable].
+ * X509KeyUsageFlags.cs: : Fixed flags values. Added missing attrs.
+ * X509NameType.cs: Fixed enum values. Added missing [Serializable].
+ * X509RevocationFlag.cs: Fixed enum values. Added missing [Serializable].
+ * X509RevocationMode.cs: Added missing [Serializable].
+ * X509SelectionFlag.cs: Added missing [Serializable].
+ * X509VerificationFlags.cs: Fixed flags values. Added missing attrs.
+
2004-07-07 Sebastien Pouliot <sebastien@ximian.com>
* X509Store.cs: Removed old store code (as it has changed a lot in
// OpenFlags.cs - System.Security.Cryptography.X509Certificates.OpenFlags
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Flags]
+ [Serializable]
public enum OpenFlags {
ReadOnly,
ReadWrite,
MaxAllowed,
- OpenExistingOnly,
- IncludeArchived
+ OpenExistingOnly = 4,
+ IncludeArchived = 8
}
}
-#endif
\ No newline at end of file
+#endif
// StoreLocation.cs - System.Security.Cryptography.X509Certificates.StoreLocation
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Serializable]
public enum StoreLocation {
- CurrentUser,
- LocalMachine
+ CurrentUser = 1,
+ LocalMachine = 2
}
}
-#endif
\ No newline at end of file
+#endif
// StoreName.cs - System.Security.Cryptography.X509Certificates.StoreName
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Serializable]
public enum StoreName {
- AddressBook,
- AuthRoot,
- CertificateAuthority,
- Disallowed,
- My,
- Root,
- TrustedPeople,
- TrustedPublisher
+ AddressBook = 1,
+ AuthRoot = 2,
+ CertificateAuthority = 3,
+ Disallowed = 4,
+ My = 5,
+ Root = 6,
+ TrustedPeople = 7,
+ TrustedPublisher = 8
}
}
-#endif
\ No newline at end of file
+#endif
--- /dev/null
+//
+// System.Security.Cryptography.X509Certificates.X500DistinguishedName
+//
+// Author:
+// Sebastien Pouliot <sebastien@ximian.com>
+//
+// Copyright (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Text;
+
+using MX = Mono.Security.X509;
+
+namespace System.Security.Cryptography.X509Certificates {
+
+ public sealed class X500DistinguishedName : AsnEncodedData {
+
+ [MonoTODO]
+ public X500DistinguishedName (AsnEncodedData encodedDistinguishedName)
+ {
+ }
+
+ [MonoTODO]
+ public X500DistinguishedName (byte[] encodedDistinguishedName)
+ {
+ }
+
+ [MonoTODO]
+ public X500DistinguishedName (string distinguishedName)
+ {
+ }
+
+ [MonoTODO]
+ public X500DistinguishedName (string distinguishedName, X500DistinguishedNameFlags flag)
+ {
+ }
+
+ [MonoTODO]
+ public X500DistinguishedName (X500DistinguishedName distinguishedName)
+ {
+ }
+
+ [MonoTODO]
+ public string Name {
+ get { return null; }
+ }
+
+ [MonoTODO]
+ public string Decode (X500DistinguishedNameFlags flag)
+ {
+ return null;
+ }
+
+ [MonoTODO]
+ public override string Format (bool multiLine)
+ {
+ return null;
+ }
+
+ }
+}
+
+#endif
--- /dev/null
+//
+// System.Security.Cryptography.X509Certificates.X500DistinguishedNameFlags
+//
+// Author:
+// Sebastien Pouliot <sebastien@ximian.com>
+//
+// Copyright (C) 2004 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+
+namespace System.Security.Cryptography.X509Certificates {
+
+ [Flags]
+ [Serializable]
+ public enum X500DistinguishedNameFlags {
+ None = 0,
+ Reversed = 1,
+ UseSemicolons = 16,
+ DoNotUsePlusSign = 32,
+ DoNotUseQuotes = 64,
+ UseCommas = 128,
+ UseNewLines = 256,
+ UseUTF8Encoding = 4096,
+ UseT61Encoding = 8192
+ }
+}
+
+#endif
// X509CertificateEx.cs - System.Security.Cryptography.X509CertificateEx
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
- public sealed class X509CertificateEx : X509Certificate {
+ public class X509CertificateEx : X509Certificate {
private bool _archived;
private X509ExtensionCollection _extensions;
set { _name = value; }
}
- public string Issuer {
- get { return _cert.IssuerName; }
+ [MonoTODO]
+ public X500DistinguishedName IssuerName {
+ get { return null; }
}
public DateTime NotAfter {
get { return null; }
}
- public string Subject {
- get { return _cert.SubjectName; }
+ [MonoTODO]
+ public X500DistinguishedName SubjectName {
+ get { return null; }
}
public string Thumbprint {
// methods
- public void Display () {}
+ [MonoTODO]
+ public void Display ()
+ {
+ }
- public void Display (IntPtr hwndParent) {}
+ [MonoTODO]
+ public void Display (IntPtr hwndParent)
+ {
+ }
+ [MonoTODO]
public string GetNameInfo (X509NameType nameType, bool forIssuer)
{
return null;
base.Reset ();
}
+ [MonoTODO]
public override string ToString ()
{
return null;
}
+ [MonoTODO]
public override string ToString (bool verbose)
{
return null;
// static methods
+ [MonoTODO]
public static X509ContentType GetCertContentType (byte[] rawData)
{
return X509ContentType.Unknown;
}
+ [MonoTODO]
public static X509ContentType GetCertContentType (string fileName)
{
return X509ContentType.Unknown;
//
-// X509Chain.cs - System.Security.Cryptography.X509Certificates.X509Chain
+// System.Security.Cryptography.X509Certificates.X509Chain
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
-//
+// Copyright (C) 2004 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
// "Software"), to deal in the Software without restriction, including
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
public class X509Chain {
private bool _machineContext;
// constructors
- public X509Chain () : this (false) {}
+ public X509Chain () : this (false)
+ {
+ }
public X509Chain (bool useMachineContext)
{
return false;
}
+ [MonoTODO]
+ public void Reset ()
+ {
+ }
+
// static methods
public static X509Chain Create ()
}
}
-#endif
\ No newline at end of file
+#endif
// X509ChainStatusFlags.cs - System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Flags]
+ [Serializable]
public enum X509ChainStatusFlags {
- NoError,
- NotTimeValid,
- NotTimeNested,
- Revoked,
- NotSignatureValid,
- NotValidForUsage,
- UntrustedRoot,
- RevocationStatusUnknown,
- Cyclic,
- InvalidExtension,
- InvalidPolicyConstraints,
- InvalidBasicConstraints,
- InvalidNameConstraints,
- HasNotSupportedNameConstraint,
- HasNotDefinedNameConstraint,
- HasNotPermittedNameConstraint,
- HasExcludedNameConstraint,
- PartialChain,
- CtlNotTimeValid,
- CtlNotSignatureValid,
- CtlNotValidForUsage,
- OfflineRevocation,
- NoIssuanceChainPolicy
+ NoError = 0,
+ NotTimeValid = 1,
+ NotTimeNested = 2,
+ Revoked = 4,
+ NotSignatureValid = 8,
+ NotValidForUsage = 16,
+ UntrustedRoot = 32,
+ RevocationStatusUnknown = 64,
+ Cyclic = 128,
+ InvalidExtension = 256,
+ InvalidPolicyConstraints = 512,
+ InvalidBasicConstraints = 1024,
+ InvalidNameConstraints = 2048,
+ HasNotSupportedNameConstraint = 4096,
+ HasNotDefinedNameConstraint = 8192,
+ HasNotPermittedNameConstraint = 16384,
+ HasExcludedNameConstraint = 32768,
+ PartialChain = 65536,
+ CtlNotTimeValid = 131072,
+ CtlNotSignatureValid = 262144,
+ CtlNotValidForUsage = 524288,
+ OfflineRevocation = 16777216,
+ NoIssuanceChainPolicy = 33554432
}
}
-#endif
\ No newline at end of file
+#endif
//
-// X509Extension.cs - System.Security.Cryptography.X509Extension
+// System.Security.Cryptography.X509Certificates.X509Extension
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
- public class X509Extension {
+ public class X509Extension : AsnEncodedData {
private bool _critical;
- private AsnEncodedData _extn;
- private Oid _oid;
// constructors
- protected X509Extension () {}
+ protected X509Extension ()
+ {
+ }
// properties
get { return _critical; }
}
- public AsnEncodedData EncodedExtension {
- get { return _extn; }
- }
-
- public Oid Oid {
- get { return _oid; }
- }
-
// methods
- public virtual void CopyFrom (X509Extension extension)
+ [MonoTODO ("decode with Mono.Security")]
+ public override void CopyFrom (AsnEncodedData asnEncodedData)
{
- if (extension == null)
- throw new ArgumentNullException ("extension");
-
- _critical = extension._critical;
- _extn = extension._extn;
- _oid = extension._oid;
+ if (asnEncodedData == null)
+ throw new ArgumentNullException ("asnEncodedData");
}
}
}
-#endif
\ No newline at end of file
+#endif
//
-// X509ExtensionCollection.cs - System.Security.Cryptography.X509ExtensionCollection
+// System.Security.Cryptography.X509Certificates.X509ExtensionCollection
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
public sealed class X509ExtensionCollection : ICollection, IEnumerable {
+ private ArrayList _list;
+
+ internal X509ExtensionCollection ()
+ {
+ _list = new ArrayList ();
+ }
+
// properties
public int Count {
- get { return 0; }
+ get { return _list.Count; }
}
public bool IsSynchronized {
- get { return false; }
+ get { return _list.IsSynchronized; }
}
public object SyncRoot {
- get { return null; }
+ get { return _list.SyncRoot; }
}
public X509Extension this [int index] {
- get { return null; }
+ get { return (X509Extension) _list [index]; }
}
+ [MonoTODO ("iterate to find oid")]
public X509Extension this [string oid] {
- get { return null; }
+ get { return (X509Extension) null; }
}
// methods
+ public int Add (X509Extension extension)
+ {
+ return _list.Add (extension);
+ }
+
+ [MonoTODO]
public void CopyTo (X509Extension[] array, int index)
{
if (array == null)
void ICollection.CopyTo (Array array, int index)
{
+ _list.CopyTo (array, index);
}
public X509ExtensionEnumerator GetEnumerator ()
}
}
-#endif
\ No newline at end of file
+#endif
// X509FindType.cs - System.Security.Cryptography.X509Certificates.X509FindType
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Serializable]
public enum X509FindType {
FindByThumbprint,
FindBySubjectName,
FindByTimeExpired,
FindByTemplateName,
FindByApplicationPolicy,
+ FindByCertificatePolicy,
FindByExtension,
FindByKeyUsage,
- FindBySubjectKeyIdentifier
+ FindBySubjectKeyIdentifier,
}
}
-#endif
\ No newline at end of file
+#endif
// X509IncludeOption.cs - System.Security.Cryptography.X509IncludeOption
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Serializable]
public enum X509IncludeOption {
None,
ExcludeRoot,
}
}
-#endif
\ No newline at end of file
+#endif
// X509KeyUsageFlags.cs - System.Security.Cryptography.X509Certificates.X509KeyUsageFlags
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Flags]
+ [Serializable]
public enum X509KeyUsageFlags {
- EncipherOnly,
- CRLSign,
- KeyCertSign,
- KeyAgreement,
- DataEncipherment,
- KeyEncipherment,
- NonRepudiation,
- DigitalSignature,
- DecipherOnly
+ EncipherOnly = 1,
+ CRLSign = 2,
+ KeyCertSign = 4,
+ KeyAgreement = 8,
+ DataEncipherment = 16,
+ KeyEncipherment = 32,
+ NonRepudiation = 64,
+ DigitalSignature = 128,
+ DecipherOnly = 32768
}
}
-#endif
\ No newline at end of file
+#endif
// X509NameType.cs - System.Security.Cryptography.X509NameType
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Serializable]
public enum X509NameType {
- SimpleName,
- EmailName,
- UpnName,
- DnsName,
- UrlName
+ SimpleName = 1,
+ EmailName = 2,
+ UpnName = 3,
+ DnsName = 4,
+ UrlName = 5
}
}
-#endif
\ No newline at end of file
+#endif
// X509RevocationFlag.cs - System.Security.Cryptography.X509Certificates.X509RevocationFlag
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Serializable]
public enum X509RevocationFlag {
- EndCertificateOnly,
- EntireChain,
- ExcludeRoot
+ EndCertificateOnly = 1,
+ EntireChain = 2,
+ ExcludeRoot = 4
}
}
-#endif
\ No newline at end of file
+#endif
// X509RevocationMode.cs - System.Security.Cryptography.X509Certificates.X509RevocationMode
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Serializable]
public enum X509RevocationMode {
NoCheck,
Online,
}
}
-#endif
\ No newline at end of file
+#endif
//
-// X509SelectionFlag.cs - System.Security.Cryptography.X509Certificates.X509SelectionFlag
+// System.Security.Cryptography.X509Certificates.X509SelectionFlag
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Serializable]
public enum X509SelectionFlag {
SingleSelection,
MultiSelection
}
}
-#endif
\ No newline at end of file
+#endif
// X509VerificationFlags.cs - System.Security.Cryptography.X509Certificates.X509VerificationFlags
//
// Author:
-// Sebastien Pouliot (spouliot@motus.com)
+// Sebastien Pouliot <sebastien@ximian.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
-//
-
+// Copyright (C) 2004 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
namespace System.Security.Cryptography.X509Certificates {
- // Note: Match the definition of framework version 1.2.3400.0 on http://longhorn.msdn.microsoft.com
-
+ [Flags]
+ [Serializable]
public enum X509VerificationFlags {
- NoFlag,
- IgnoreNotTimeValid,
- IgnoreCtlNotTimeValid,
- IgnoreNotTimeNested,
- IgnoreInvalidBasicConstraints,
- AllowUnknownCertificateAuthority,
- IgnoreWrongUsage,
- IgnoreInvalidName,
- IgnoreInvalidPolicy,
- IgnoreEndRevocationUnknown,
- IgnoreCtlSignerRevocationUnknown,
- IgnoreCertificateAuthorityRevocationUnknown,
- IgnoreRootRevocationUnknown,
- AllFlags
+ NoFlag = 0,
+ IgnoreNotTimeValid = 1,
+ IgnoreCtlNotTimeValid = 2,
+ IgnoreNotTimeNested = 4,
+ IgnoreInvalidBasicConstraints = 8,
+ AllowUnknownCertificateAuthority = 16,
+ IgnoreWrongUsage = 32,
+ IgnoreInvalidName = 64,
+ IgnoreInvalidPolicy = 128,
+ IgnoreEndRevocationUnknown = 256,
+ IgnoreCtlSignerRevocationUnknown = 512,
+ IgnoreCertificateAuthorityRevocationUnknown = 1024,
+ IgnoreRootRevocationUnknown = 2048,
+ AllFlags = IgnoreNotTimeValid | IgnoreCtlNotTimeValid | IgnoreNotTimeNested |
+ IgnoreInvalidBasicConstraints | AllowUnknownCertificateAuthority |
+ IgnoreWrongUsage | IgnoreInvalidName | IgnoreInvalidPolicy |
+ IgnoreEndRevocationUnknown | IgnoreCtlSignerRevocationUnknown |
+ IgnoreCertificateAuthorityRevocationUnknown | IgnoreRootRevocationUnknown
}
}
-#endif
\ No newline at end of file
+#endif