summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-02-13 21:03:56 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-02-13 21:03:56 +0700
commit06889e4e67442accac9fc0b204e7b4d940088009 (patch)
treebe37b6d52361feb50c4e936fd7233c23242d2b0b
parentPKCS12: Improved support for certificate-only key stores without password (diff)
downloadBouncyCastle.NET-ed25519-06889e4e67442accac9fc0b204e7b4d940088009.tar.xz
Case-insensitive check of boolean env. var.
-rw-r--r--crypto/src/crypto/encodings/Pkcs1Encoding.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/encodings/Pkcs1Encoding.cs b/crypto/src/crypto/encodings/Pkcs1Encoding.cs
index b2d60fe4c..ce2f15a38 100644
--- a/crypto/src/crypto/encodings/Pkcs1Encoding.cs
+++ b/crypto/src/crypto/encodings/Pkcs1Encoding.cs
@@ -41,7 +41,7 @@ namespace Org.BouncyCastle.Crypto.Encodings
         {
             string strictProperty = Platform.GetEnvironmentVariable(StrictLengthEnabledProperty);
 
-            strictLengthEnabled = new bool[]{ strictProperty == null || strictProperty.Equals("true")};
+            strictLengthEnabled = new bool[]{ strictProperty == null || Platform.EqualsIgnoreCase("true", strictProperty) };
         }