summary refs log tree commit diff
path: root/crypto/src/asn1/cms/OtherRevocationInfoFormat.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-11-06 17:43:41 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-11-06 17:43:41 +0700
commitc1d0de54d5ae25ea78cde7ff30e58a5fd07e089c (patch)
treef2d77abd46e1004d7f0d765bd619e49501c1024c /crypto/src/asn1/cms/OtherRevocationInfoFormat.cs
parentAsn1 GetInstance refactoring (diff)
downloadBouncyCastle.NET-ed25519-c1d0de54d5ae25ea78cde7ff30e58a5fd07e089c.tar.xz
CMS support for OtherRevocationInfoFormat
- see https://github.com/bcgit/bc-csharp/pull/328
Diffstat (limited to 'crypto/src/asn1/cms/OtherRevocationInfoFormat.cs')
-rw-r--r--crypto/src/asn1/cms/OtherRevocationInfoFormat.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/crypto/src/asn1/cms/OtherRevocationInfoFormat.cs b/crypto/src/asn1/cms/OtherRevocationInfoFormat.cs

index 78354896f..f6335cdac 100644 --- a/crypto/src/asn1/cms/OtherRevocationInfoFormat.cs +++ b/crypto/src/asn1/cms/OtherRevocationInfoFormat.cs
@@ -1,6 +1,4 @@ -using System; - -namespace Org.BouncyCastle.Asn1.Cms +namespace Org.BouncyCastle.Asn1.Cms { public class OtherRevocationInfoFormat : Asn1Encodable @@ -44,8 +42,8 @@ namespace Org.BouncyCastle.Asn1.Cms */ public static OtherRevocationInfoFormat GetInstance(object obj) { - if (obj is OtherRevocationInfoFormat) - return (OtherRevocationInfoFormat)obj; + if (obj is OtherRevocationInfoFormat otherRevocationInfoFormat) + return otherRevocationInfoFormat; if (obj != null) return new OtherRevocationInfoFormat(Asn1Sequence.GetInstance(obj)); return null;