diff options
Diffstat (limited to 'crypto/src/asn1')
-rw-r--r-- | crypto/src/asn1/x500/style/IetfUtilities.cs | 6 | ||||
-rw-r--r-- | crypto/src/asn1/x509/TBSCertList.cs | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/crypto/src/asn1/x500/style/IetfUtilities.cs b/crypto/src/asn1/x500/style/IetfUtilities.cs index e269f418d..72ed08dd3 100644 --- a/crypto/src/asn1/x500/style/IetfUtilities.cs +++ b/crypto/src/asn1/x500/style/IetfUtilities.cs @@ -93,15 +93,15 @@ namespace Org.BouncyCastle.Asn1.X500.Style public static string Canonicalize(string s) { - string value = Platform.ToLowerInvariant(s); + string value = s.ToLowerInvariant(); if (value.Length > 0 && value[0] == '#') { Asn1Object obj = DecodeObject(value); - if (obj is IAsn1String) + if (obj is IAsn1String str) { - value = Platform.ToLowerInvariant(((IAsn1String)obj).GetString()); + value = str.GetString().ToLowerInvariant(); } } diff --git a/crypto/src/asn1/x509/TBSCertList.cs b/crypto/src/asn1/x509/TBSCertList.cs index aef41d440..ab847d563 100644 --- a/crypto/src/asn1/x509/TBSCertList.cs +++ b/crypto/src/asn1/x509/TBSCertList.cs @@ -263,11 +263,7 @@ namespace Org.BouncyCastle.Asn1.X509 public IEnumerable<CrlEntry> GetRevokedCertificateEnumeration() { if (revokedCertificates == null) - { - // TODO - //return EmptyEnumerable.Instance; return new List<CrlEntry>(0); - } return new RevokedCertificatesEnumeration(revokedCertificates); } |