diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/pkix/PkixNameConstraintValidator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/pkix/PkixNameConstraintValidator.cs b/crypto/src/pkix/PkixNameConstraintValidator.cs index 7a9e3f45e..85dac857b 100644 --- a/crypto/src/pkix/PkixNameConstraintValidator.cs +++ b/crypto/src/pkix/PkixNameConstraintValidator.cs @@ -79,8 +79,8 @@ namespace Org.BouncyCastle.Pkix // obey RFC 5280 7.1 // special treatment of serialNumber for GSMA SGP.22 RSP specification if (subtreeRdn.Count == 1 && dnsRdn.Count == 1 - && subtreeRdn.GetFirst().GetType().Equals(SerialNumberOid) - && dnsRdn.GetFirst().GetType().Equals(SerialNumberOid)) + && SerialNumberOid.Equals(subtreeRdn.GetFirst().Type) + && SerialNumberOid.Equals(dnsRdn.GetFirst().Type)) { if (!Platform.StartsWith(dnsRdn.GetFirst().Value.ToString(), subtreeRdn.GetFirst().Value.ToString())) return false; |