X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FMono.Security%2FMono.Security%2FASN1Convert.cs;h=612917cf3bcf6b5cf1021379061c278b053bffdb;hb=65e9d23f6d0350f029a35b451590e3d5ec84cbce;hp=94d1ffd854d2c44914d3ab3ffb261df9b23bb9f3;hpb=29a70d0eb5f6c6ea8a76db3cb82ea253b3f2575e;p=mono.git diff --git a/mcs/class/Mono.Security/Mono.Security/ASN1Convert.cs b/mcs/class/Mono.Security/Mono.Security/ASN1Convert.cs index 94d1ffd854d..612917cf3bc 100644 --- a/mcs/class/Mono.Security/Mono.Security/ASN1Convert.cs +++ b/mcs/class/Mono.Security/Mono.Security/ASN1Convert.cs @@ -182,7 +182,9 @@ namespace Mono.Security { // to support both UTCTime and GeneralizedTime (and not so common format) string mask = null; int year; +#if !NET_2_0 bool utc = true; +#endif switch (t.Length) { case 11: // illegal format, still it's supported for compatibility @@ -213,7 +215,9 @@ namespace Mono.Security { t = String.Format ("{0}{1}{2}{3}{4}:{5}{6}", century, t.Substring (0, 12), sign, t[13], t[14], t[15], t[16]); mask = "yyyyMMddHHmmsszzz"; +#if !NET_2_0 utc = false; +#endif break; } #if NET_2_0