diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-08 18:31:42 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-08 18:31:42 +0700 |
commit | 32804cf7116973d51eee60f07a78965796b5c409 (patch) | |
tree | 2c467681a775822ac8b42671cfe17269bf346371 /crypto/src/asn1 | |
parent | Merge branch 'master' of git.bouncycastle.org:bc-csharp into pcl (diff) | |
download | BouncyCastle.NET-ed25519-32804cf7116973d51eee60f07a78965796b5c409.tar.xz |
Whitespace, comments, unused import, missing test code
Diffstat (limited to 'crypto/src/asn1')
-rw-r--r-- | crypto/src/asn1/Asn1Set.cs | 18 | ||||
-rw-r--r-- | crypto/src/asn1/DerGeneralizedTime.cs | 3 |
2 files changed, 12 insertions, 9 deletions
diff --git a/crypto/src/asn1/Asn1Set.cs b/crypto/src/asn1/Asn1Set.cs index 58e7e26f8..18f8020f2 100644 --- a/crypto/src/asn1/Asn1Set.cs +++ b/crypto/src/asn1/Asn1Set.cs @@ -75,8 +75,8 @@ namespace Org.BouncyCastle.Asn1 * be converted. */ public static Asn1Set GetInstance( - Asn1TaggedObject obj, - bool explicitly) + Asn1TaggedObject obj, + bool explicitly) { Asn1Object inner = obj.GetObject(); @@ -85,7 +85,7 @@ namespace Org.BouncyCastle.Asn1 if (!obj.IsExplicit()) throw new ArgumentException("object implicit - explicit expected."); - return (Asn1Set)inner; + return (Asn1Set) inner; } // @@ -100,7 +100,7 @@ namespace Org.BouncyCastle.Asn1 if (inner is Asn1Set) { - return (Asn1Set)inner; + return (Asn1Set) inner; } // @@ -110,7 +110,7 @@ namespace Org.BouncyCastle.Asn1 if (inner is Asn1Sequence) { Asn1EncodableVector v = new Asn1EncodableVector(); - Asn1Sequence s = (Asn1Sequence)inner; + Asn1Sequence s = (Asn1Sequence) inner; foreach (Asn1Encodable ae in s) { @@ -149,14 +149,14 @@ namespace Org.BouncyCastle.Asn1 */ public virtual Asn1Encodable this[int index] { - get { return (Asn1Encodable)_set[index]; } + get { return (Asn1Encodable) _set[index]; } } [Obsolete("Use 'object[index]' syntax instead")] public Asn1Encodable GetObjectAt( int index) { - return this[index]; + return this[index]; } [Obsolete("Use 'Count' property instead")] @@ -207,8 +207,8 @@ namespace Org.BouncyCastle.Asn1 return ((Asn1Set)obj).Parser; // NB: Asn1OctetString implements Asn1OctetStringParser directly - // if (obj is Asn1OctetString) - // return ((Asn1OctetString)obj).Parser; +// if (obj is Asn1OctetString) +// return ((Asn1OctetString)obj).Parser; return obj; } diff --git a/crypto/src/asn1/DerGeneralizedTime.cs b/crypto/src/asn1/DerGeneralizedTime.cs index 4de0feaa6..40ec17b2a 100644 --- a/crypto/src/asn1/DerGeneralizedTime.cs +++ b/crypto/src/asn1/DerGeneralizedTime.cs @@ -259,6 +259,9 @@ namespace Org.BouncyCastle.Asn1 private DateTime ParseDateString(string s, string format, bool makeUniversal) { + /* + * NOTE: DateTime.Kind and DateTimeStyles.AssumeUniversal not available in .NET 1.1 + */ DateTimeStyles style = DateTimeStyles.None; if (format.EndsWith("Z")) { |