X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Security%2FSystem.Security.Cryptography.Pkcs%2FSignerInfoCollection.cs;h=2f53b3f0db419b8d141bb038a1a5395d7c10c29f;hb=811674bc6331c98d33134e2a37a7c7dd66402227;hp=a5bd5dd2a3f22a58bdcfa601c9a9e3188c23eb63;hpb=5639cacb2cc86f6b0927fa2b654fd4dfc1e045aa;p=mono.git diff --git a/mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignerInfoCollection.cs b/mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignerInfoCollection.cs old mode 100755 new mode 100644 index a5bd5dd2a3f..2f53b3f0db4 --- a/mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignerInfoCollection.cs +++ b/mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignerInfoCollection.cs @@ -5,7 +5,7 @@ // Sebastien Pouliot // // (C) 2003 Motus Technologies Inc. (http://www.motus.com) -// 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 @@ -27,9 +27,8 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -#if NET_2_0 +#if SECURITY_DEP -using System; using System.Collections; namespace System.Security.Cryptography.Pkcs { @@ -51,7 +50,7 @@ namespace System.Security.Cryptography.Pkcs { } public bool IsSynchronized { - get { return _list.IsSynchronized; } + get { return false; } // as documented } public SignerInfo this [int index] { @@ -71,12 +70,22 @@ namespace System.Security.Cryptography.Pkcs { public void CopyTo (Array array, int index) { + if (array == null) + throw new ArgumentNullException ("array"); + if ((index < 0) || (index >= array.Length)) + throw new ArgumentOutOfRangeException ("index"); + _list.CopyTo (array, index); } - [MonoTODO] public void CopyTo (SignerInfo[] array, int index) { + if (array == null) + throw new ArgumentNullException ("array"); + if ((index < 0) || (index >= array.Length)) + throw new ArgumentOutOfRangeException ("index"); + + _list.CopyTo (array, index); } public SignerInfoEnumerator GetEnumerator ()