summary refs log tree commit diff
path: root/crypto/src/asn1/esf/RevocationValues.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-07-01 20:31:14 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-07-01 20:31:14 +0700
commit192a98faa4536772b03a5cd59b6e4ab4a2ec2461 (patch)
tree9a254e2c0d7ca92b7e8108c554c2c8dbc547f79d /crypto/src/asn1/esf/RevocationValues.cs
parentRefactoring in Asn1.X500 (diff)
downloadBouncyCastle.NET-ed25519-192a98faa4536772b03a5cd59b6e4ab4a2ec2461.tar.xz
Asn1Sequence subclass static methods
Diffstat (limited to 'crypto/src/asn1/esf/RevocationValues.cs')
-rw-r--r--crypto/src/asn1/esf/RevocationValues.cs12
1 files changed, 2 insertions, 10 deletions
diff --git a/crypto/src/asn1/esf/RevocationValues.cs b/crypto/src/asn1/esf/RevocationValues.cs
index 2d9175275..78cc1af0d 100644
--- a/crypto/src/asn1/esf/RevocationValues.cs
+++ b/crypto/src/asn1/esf/RevocationValues.cs
@@ -59,16 +59,8 @@ namespace Org.BouncyCastle.Asn1.Esf
 
         public RevocationValues(CertificateList[] crlVals, BasicOcspResponse[] ocspVals, OtherRevVals otherRevVals)
 		{
-			if (crlVals != null)
-			{
-				m_crlVals = DerSequence.FromElements(crlVals);
-			}
-
-			if (ocspVals != null)
-			{
-				m_ocspVals = DerSequence.FromElements(ocspVals);
-			}
-
+            m_crlVals = DerSequence.FromElementsOptional(crlVals);
+            m_ocspVals = DerSequence.FromElementsOptional(ocspVals);
 			m_otherRevVals = otherRevVals;
 		}