[pgsqlclient-checkins] pgsqlclient_10/PgSqlClient.Security.Tls/source TlsSession.cs,1.11,1.12
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-09-12 18:44:33
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source In directory sc8-pr-cvs1:/tmp/cvs-serv21461 Modified Files: TlsSession.cs Log Message: - Fixed session close for non secure connections. - Improved session closing by reseting session information Index: TlsSession.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsSession.cs,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** TlsSession.cs 12 Sep 2003 12:47:11 -0000 1.11 --- TlsSession.cs 12 Sep 2003 18:44:30 -0000 1.12 *************** *** 209,222 **** // Write close notify writer.WriteAlert(alert); } // Close streams closeStreams(); - - // Check that the session is finished by the client and by server - if (!state.ConnectionEnd) - { - throw new TlsException("Invalid session termination"); - } } --- 209,222 ---- // Write close notify writer.WriteAlert(alert); + + // Check that the session is finished by the client and by server + if (!state.ConnectionEnd) + { + throw new TlsException("Invalid session termination"); + } } // Close streams closeStreams(); } *************** *** 330,333 **** --- 330,338 ---- socket.Close(); networkStream.Close(); + + // Reset session information + this.state = new TlsSessionState(); + this.handshakeHashes = new TlsHandshakeHashes(); + this.sessionId = new byte[0]; } |