/** * Add the CRLEntry objects contained in a previous CRL. * * @param other the X509Crl to source the other entries from. */ public void AddCrl( X509Crl other) { if (other == null) { throw new ArgumentNullException("other"); } ISet revocations = other.GetRevokedCertificates(); if (revocations != null) { foreach (X509CrlEntry entry in revocations) { try { tbsGen.AddCrlEntry( Asn1Sequence.GetInstance( Asn1Object.FromByteArray(entry.GetEncoded()))); } catch (IOException e) { throw new CrlException("exception processing encoding of CRL", e); } } } }
/** * Add the CRLEntry objects contained in a previous CRL. * * @param other the X509Crl to source the other entries from. */ public void AddCrl( X509Crl other) { if (other == null) throw new ArgumentNullException("other"); ISet revocations = other.GetRevokedCertificates(); if (revocations != null) { foreach (X509CrlEntry entry in revocations) { try { tbsGen.AddCrlEntry( Asn1Sequence.GetInstance( Asn1Object.FromByteArray(entry.GetEncoded()))); } catch (IOException e) { throw new CrlException("exception processing encoding of CRL", e); } } } }
public void AddCrl(X509Crl other) { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Expected O, but got Unknown if (other == null) { throw new ArgumentNullException("other"); } ISet revokedCertificates = other.GetRevokedCertificates(); if (revokedCertificates == null) { return; } global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)revokedCertificates).GetEnumerator(); try { while (enumerator.MoveNext()) { X509CrlEntry x509CrlEntry = (X509CrlEntry)enumerator.get_Current(); try { tbsGen.AddCrlEntry(Asn1Sequence.GetInstance(Asn1Object.FromByteArray(x509CrlEntry.GetEncoded()))); } catch (IOException val) { IOException e = val; throw new CrlException("exception processing encoding of CRL", (global::System.Exception)(object) e); } } } finally { global::System.IDisposable disposable = enumerator as global::System.IDisposable; if (disposable != null) { disposable.Dispose(); } } }