diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-02-13 21:03:56 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-02-13 21:03:56 +0700 |
commit | 06889e4e67442accac9fc0b204e7b4d940088009 (patch) | |
tree | be37b6d52361feb50c4e936fd7233c23242d2b0b | |
parent | PKCS12: Improved support for certificate-only key stores without password (diff) | |
download | BouncyCastle.NET-ed25519-06889e4e67442accac9fc0b204e7b4d940088009.tar.xz |
Case-insensitive check of boolean env. var.
-rw-r--r-- | crypto/src/crypto/encodings/Pkcs1Encoding.cs | 2 |
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) }; } |