diff options
author | Gert Driesen <drieseng@users.sourceforge.net> | 2008-01-13 16:24:47 +0300 |
---|---|---|
committer | Gert Driesen <drieseng@users.sourceforge.net> | 2008-01-13 16:24:47 +0300 |
commit | ab7076020d08c1e53c4364f5c761bdd42691013c (patch) | |
tree | 9eb677061c34e5796b54e05631afce9b201ccbf6 /mcs/class/System/System.Security.Cryptography.X509Certificates | |
parent | 404e02e76af6469d9b1f161241e33730e3ccfc12 (diff) |
* X509Certificate2.cs: NotAfter and NotBefore must return local time.
* X509Certificate2Test.cs: Added asserts to ensure NotAfter and
NotBefore are in local time.
* X509ChainPolicyTest.cs: Added assert to ensure VerificationTime is
in local time.
svn path=/trunk/mcs/; revision=92793
Diffstat (limited to 'mcs/class/System/System.Security.Cryptography.X509Certificates')
-rw-r--r-- | mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog b/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog index f7d7b6673a5..9df7fab47dd 100644 --- a/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog +++ b/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog @@ -1,3 +1,7 @@ +2008-01-13 Gert Driesen <drieseng@users.sourceforge.net> + + * X509Certificate2.cs: NotAfter and NotBefore must return local time. + 2007-05-09 Sebastien Pouliot <sebastien@ximian.com> * X509Certificate2.cs: Leave a small stub (PrivateKey property) if diff --git a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs index bd05a9331a3..66ac6ac3b0c 100644 --- a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs +++ b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Certificate2.cs @@ -179,7 +179,7 @@ namespace System.Security.Cryptography.X509Certificates { get { if (_cert == null) throw new CryptographicException (empty_error); - return _cert.ValidUntil; + return _cert.ValidUntil.ToLocalTime (); } } @@ -187,7 +187,7 @@ namespace System.Security.Cryptography.X509Certificates { get { if (_cert == null) throw new CryptographicException (empty_error); - return _cert.ValidFrom; + return _cert.ValidFrom.ToLocalTime (); } } |