From 06889e4e67442accac9fc0b204e7b4d940088009 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 13 Feb 2020 21:03:56 +0700 Subject: Case-insensitive check of boolean env. var. --- crypto/src/crypto/encodings/Pkcs1Encoding.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src') 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) }; } -- cgit 1.4.1