[pgsqlclient-checkins] pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls RecordP
Status: Inactive
Brought to you by:
carlosga_fb
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15191 Modified Files: RecordProtocol.cs SslClientStream.cs SslServerStream.cs Log Message: 2004-02-24 Carlos Guzman Alvarez <car...@te...> * Mono.Security.Protocol.Tls.Alerts/TlsClosNotifyAlert.cs: - Removed File. * Mono.Security.Protocol.Tls.Alerts/TlsAlerts.cs: * Mono.Security.Protocol.Tls/RecordProtocol.cs: * Mono.Security.Protocol.Tls/SslClientStream.cs: * Mono.Security.Protocol.Tls/SslServerStream.cs: - Reimplementation of TLS/SSL Alert Protocol. Index: RecordProtocol.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** RecordProtocol.cs 23 Feb 2004 12:16:08 -0000 1.4 --- RecordProtocol.cs 24 Feb 2004 16:03:51 -0000 1.5 *************** *** 198,202 **** #endregion ! #region Send Record Methods public void SendAlert(TlsAlert alert) --- 198,214 ---- #endregion ! #region Send Alert Methods ! ! public void SendAlert(TlsAlertDescription description) ! { ! this.SendAlert(new TlsAlert(this.Context, description)); ! } ! ! public void SendAlert( ! TlsAlertLevel level, ! TlsAlertDescription description) ! { ! this.SendAlert(new TlsAlert(this.Context, level, description)); ! } public void SendAlert(TlsAlert alert) *************** *** 212,215 **** --- 224,231 ---- } + #endregion + + #region Send Record Methods + public void SendChangeCipherSpec() { Index: SslClientStream.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** SslClientStream.cs 23 Feb 2004 12:16:08 -0000 1.13 --- SslClientStream.cs 24 Feb 2004 16:03:51 -0000 1.14 *************** *** 389,397 **** if (this.innerStream != null) { ! if (this.context.HandshakeFinished) { ! // Write close notify ! TlsCloseNotifyAlert alert = new TlsCloseNotifyAlert(this.context); ! this.protocol.SendAlert(alert); } --- 389,397 ---- if (this.innerStream != null) { ! if (this.context.HandshakeFinished && ! !this.context.ConnectionEnd) { ! // Write close notify ! this.protocol.SendAlert(TlsAlertDescription.CloseNotify); } Index: SslServerStream.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslServerStream.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SslServerStream.cs 23 Feb 2004 12:16:08 -0000 1.2 --- SslServerStream.cs 24 Feb 2004 16:03:51 -0000 1.3 *************** *** 324,329 **** { // Write close notify ! TlsCloseNotifyAlert alert = new TlsCloseNotifyAlert(this.context); ! this.protocol.SendAlert(alert); } --- 324,328 ---- { // Write close notify ! this.protocol.SendAlert(TlsAlertDescription.CloseNotify); } |