[pgsqlclient-checkins] pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake TlsServerCertificate
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-10-03 19:10:01
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake In directory sc8-pr-cvs1:/tmp/cvs-serv19068 Modified Files: TlsServerCertificate.cs Log Message: Added some changes to exception handling Index: TlsServerCertificate.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake/TlsServerCertificate.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TlsServerCertificate.cs 16 Sep 2003 12:29:08 -0000 1.6 --- TlsServerCertificate.cs 3 Oct 2003 19:09:56 -0000 1.7 *************** *** 103,111 **** DateTime effectiveDate = DateTime.Parse(certificate.GetEffectiveDateString()); DateTime expirationDate = DateTime.Parse(certificate.GetExpirationDateString()); ! if (System.DateTime.Now < effectiveDate || System.DateTime.Now > expirationDate) { ! throw new TlsException(TlsAlertLevel.Fatal, ! TlsAlertDescription.CertificateExpired, ! "Certificate received FromBase64Transform the server expired."); } --- 103,110 ---- DateTime effectiveDate = DateTime.Parse(certificate.GetEffectiveDateString()); DateTime expirationDate = DateTime.Parse(certificate.GetExpirationDateString()); ! if (System.DateTime.Now < effectiveDate || ! System.DateTime.Now > expirationDate) { ! throw Session.CreateException("Certificate received FromBase64Transform the server expired."); } |