diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2008-11-02 03:22:45 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2008-11-02 03:22:45 +0300 |
commit | 899b4184dc5545a92bb2ff84fa75fd2c32e275bf (patch) | |
tree | 0bd7891324bbaea9d3d3fc3b933a705c794b4513 /mcs/class/System.Security/System.Security.Cryptography.Pkcs | |
parent | 1bad75202f9c98ddeacb43b45c852a4ba15d5d14 (diff) |
2008-11-01 Sebastien Pouliot <sebastien@ximian.com>
* CmsRecipientCollection.cs: Add comment about compatibility-NRE
[Found using Gendarme CheckParametersNullityInVisibleMethodsRule]
svn path=/trunk/mcs/; revision=117621
Diffstat (limited to 'mcs/class/System.Security/System.Security.Cryptography.Pkcs')
-rw-r--r-- | mcs/class/System.Security/System.Security.Cryptography.Pkcs/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Security/System.Security.Cryptography.Pkcs/CmsRecipientCollection.cs | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/mcs/class/System.Security/System.Security.Cryptography.Pkcs/ChangeLog b/mcs/class/System.Security/System.Security.Cryptography.Pkcs/ChangeLog index ca7284ae7d2..971742e5cec 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Pkcs/ChangeLog +++ b/mcs/class/System.Security/System.Security.Cryptography.Pkcs/ChangeLog @@ -1,3 +1,8 @@ +2008-11-01 Sebastien Pouliot <sebastien@ximian.com> + + * CmsRecipientCollection.cs: Add comment about compatibility-NRE + [Found using Gendarme CheckParametersNullityInVisibleMethodsRule] + 2008-10-12 Sebastien Pouliot <sebastien@ximian.com> * EnvelopedCms.cs, SignedCms.cs: Remove unneeded field diff --git a/mcs/class/System.Security/System.Security.Cryptography.Pkcs/CmsRecipientCollection.cs b/mcs/class/System.Security/System.Security.Cryptography.Pkcs/CmsRecipientCollection.cs index 1228e1cb13d..05602d4318f 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Pkcs/CmsRecipientCollection.cs +++ b/mcs/class/System.Security/System.Security.Cryptography.Pkcs/CmsRecipientCollection.cs @@ -5,7 +5,7 @@ // Sebastien Pouliot <sebastien@ximian.com> // // (C) 2003 Motus Technologies Inc. (http://www.motus.com) -// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com) +// Copyright (C) 2004-2005, 2008 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 @@ -45,13 +45,14 @@ namespace System.Security.Cryptography.Pkcs { _list = new ArrayList (); } - public CmsRecipientCollection (CmsRecipient recipient) : base () + public CmsRecipientCollection (CmsRecipient recipient) { _list.Add (recipient); } - public CmsRecipientCollection (SubjectIdentifierType recipientIdentifierType, X509Certificate2Collection certificates) : base () + public CmsRecipientCollection (SubjectIdentifierType recipientIdentifierType, X509Certificate2Collection certificates) { + // no null check, MS throws a NullReferenceException here foreach (X509Certificate2 x509 in certificates) { CmsRecipient p7r = new CmsRecipient (recipientIdentifierType, x509); _list.Add (p7r); |