[pgsqlclient-checkins] pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Sec
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-10-16 14:26:51
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake In directory sc8-pr-cvs1:/tmp/cvs-serv22906 Modified Files: TlsHandshakeMessage.cs Log Message: Added changes for allow, in the future, the handshake layer to work with SSL3 protocol Index: TlsHandshakeMessage.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/TlsHandshakeMessage.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TlsHandshakeMessage.cs 14 Oct 2003 10:14:10 -0000 1.5 --- TlsHandshakeMessage.cs 16 Oct 2003 14:25:43 -0000 1.6 *************** *** 67,72 **** this.contentType = contentType; ! // Fill message contents ! this.Fill(); } --- 67,72 ---- this.contentType = contentType; ! // Process message ! this.process(); } *************** *** 77,82 **** this.handshakeType = handshakeType; ! // Parse message ! this.Parse(); } --- 77,82 ---- this.handshakeType = handshakeType; ! // Process message ! this.process(); } *************** *** 85,88 **** --- 85,102 ---- #region METHODS + private void process() + { + switch (this.session.Context.Protocol) + { + case TlsProtocol.Tls1: + this.ProcessAsTls1(); + break; + + case TlsProtocol.Ssl3: + this.ProcessAsSsl3(); + break; + } + } + public virtual void UpdateSession() { *************** *** 94,105 **** } - protected virtual void Parse() - { - } - - protected virtual void Fill() - { - } - public virtual byte[] EncodeMessage() { --- 108,111 ---- *************** *** 117,121 **** } ! return result; } --- 123,135 ---- } ! return result; ! } ! ! protected virtual void ProcessAsTls1() ! { ! } ! ! protected virtual void ProcessAsSsl3() ! { } |