[pgsqlclient-checkins] pgsqlclient_10/PgSqlClient.Security.Tls/source TlsSocket.cs,1.9,1.10
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-10-08 20:28:17
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source In directory sc8-pr-cvs1:/tmp/cvs-serv20174 Modified Files: TlsSocket.cs Log Message: Updated file Index: TlsSocket.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsSocket.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** TlsSocket.cs 8 Oct 2003 16:26:26 -0000 1.9 --- TlsSocket.cs 8 Oct 2003 20:28:13 -0000 1.10 *************** *** 451,461 **** message = createServerHandshakeMessage(handshakeType, handMsg); - if (message == null) - { - throw new TlsException("Unknown handshake message received from server."); - } // Update session ! message.UpdateSession(); } --- 451,460 ---- message = createServerHandshakeMessage(handshakeType, handMsg); // Update session ! if (message != null) ! { ! message.UpdateSession(); ! } } *************** *** 653,656 **** --- 652,659 ---- switch (type) { + case TlsHandshakeType.HelloRequest: + this.sendRecord(TlsHandshakeType.ClientHello); + return null; + case TlsHandshakeType.ServerHello: return new TlsServerHello(session, handMsg); *************** *** 672,676 **** default: ! throw session.CreateException("Unknown server handshake message received ({0})", type.ToString()); } } --- 675,679 ---- default: ! throw session.CreateException("Unknown server handshake message received ({0})", type.ToString()); } } |