summary refs log tree commit diff
path: root/crypto/src/cms/SignerInformationStore.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/cms/SignerInformationStore.cs')
-rw-r--r--crypto/src/cms/SignerInformationStore.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/src/cms/SignerInformationStore.cs b/crypto/src/cms/SignerInformationStore.cs
index bc21f9d39..00919c221 100644
--- a/crypto/src/cms/SignerInformationStore.cs
+++ b/crypto/src/cms/SignerInformationStore.cs
@@ -4,6 +4,7 @@ using System.Collections.Generic;
 namespace Org.BouncyCastle.Cms
 {
     public class SignerInformationStore
+        : IEnumerable<SignerInformation>
     {
         private readonly IList<SignerInformation> m_all;
         private readonly IDictionary<SignerID, IList<SignerInformation>> m_table =
@@ -87,5 +88,15 @@ namespace Org.BouncyCastle.Cms
 
             return new List<SignerInformation>(0);
         }
+
+        System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
+        {
+            return GetEnumerator();
+        }
+
+        public virtual IEnumerator<SignerInformation> GetEnumerator()
+        {
+            return GetSigners().GetEnumerator();
+        }
     }
 }