[pgsqlclient-checkins] pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls SslClie
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2004-03-08 15:25:15
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3040 Modified Files: SslClientStream.cs SslServerStream.cs Log Message: 2004-03-08 Carlos Guzman Alvarez <car...@te...> * Mono.Security.Protocol.Tls/SslClientStream.cs: * Mono.Security.Protocol.Tls/SslServerStream.cs: - Callback cleanup. Index: SslClientStream.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** SslClientStream.cs 6 Mar 2004 14:38:25 -0000 1.17 --- SslClientStream.cs 8 Mar 2004 15:08:41 -0000 1.18 *************** *** 65,72 **** #region Fields - private CertificateValidationCallback serverCertValidationDelegate; - private CertificateSelectionCallback clientCertSelectionDelegate; - private PrivateKeySelectionCallback privateKeySelectionDelegate; - private Stream innerStream; private BufferedStream inputBuffer; --- 65,68 ---- *************** *** 243,284 **** public CertificateValidationCallback ServerCertValidationDelegate { ! get { return this.serverCertValidationDelegate; } ! set ! { ! if (this.ServerCertValidation != null) ! { ! this.ServerCertValidation -= this.serverCertValidationDelegate; ! } ! this.serverCertValidationDelegate = value; ! this.ServerCertValidation += this.serverCertValidationDelegate; ! } } public CertificateSelectionCallback ClientCertSelectionDelegate { ! get { return this.clientCertSelectionDelegate; } ! set ! { ! if (this.ClientCertSelection != null) ! { ! this.ClientCertSelection -= this.clientCertSelectionDelegate; ! } ! this.clientCertSelectionDelegate = value; ! this.ClientCertSelection += this.clientCertSelectionDelegate; ! } } public PrivateKeySelectionCallback PrivateKeyCertSelectionDelegate { ! get { return this.privateKeySelectionDelegate; } ! set ! { ! if (this.PrivateKeySelection != null) ! { ! this.PrivateKeySelection -= this.privateKeySelectionDelegate; ! } ! this.privateKeySelectionDelegate = value; ! this.PrivateKeySelection += this.privateKeySelectionDelegate; ! } } --- 239,256 ---- public CertificateValidationCallback ServerCertValidationDelegate { ! get { return this.ServerCertValidation; } ! set { this.ServerCertValidation = value; } } public CertificateSelectionCallback ClientCertSelectionDelegate { ! get { return this.ClientCertSelection; } ! set { this.ClientCertSelection = value; } } public PrivateKeySelectionCallback PrivateKeyCertSelectionDelegate { ! get { return this.PrivateKeySelection; } ! set { this.PrivateKeySelection = value; } } *************** *** 402,417 **** } } ! this.ownsStream = false; ! this.innerStream = null; ! if (this.ClientCertSelection != null) ! { ! this.ClientCertSelection -= this.clientCertSelectionDelegate; ! } ! if (this.ServerCertValidation != null) ! { ! this.ServerCertValidation -= this.serverCertValidationDelegate; ! } ! this.serverCertValidationDelegate = null; ! this.clientCertSelectionDelegate = null; } --- 374,382 ---- } } ! this.ownsStream = false; ! this.innerStream = null; ! this.ClientCertSelection = null; ! this.ServerCertValidation = null; ! this.PrivateKeySelection = null; } Index: SslServerStream.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslServerStream.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** SslServerStream.cs 6 Mar 2004 14:38:25 -0000 1.7 --- SslServerStream.cs 8 Mar 2004 15:08:42 -0000 1.8 *************** *** 46,52 **** #region Fields - private CertificateValidationCallback clientCertValidationDelegate; - private PrivateKeySelectionCallback privateKeySelectionDelegate; - private ServerRecordProtocol protocol; private BufferedStream inputBuffer; --- 46,49 ---- *************** *** 226,253 **** public CertificateValidationCallback ClientCertValidationDelegate { ! get { return this.clientCertValidationDelegate; } ! set ! { ! if (this.ClientCertValidation != null) ! { ! this.ClientCertValidation -= this.clientCertValidationDelegate; ! } ! this.clientCertValidationDelegate = value; ! this.ClientCertValidation += this.clientCertValidationDelegate; ! } } public PrivateKeySelectionCallback PrivateKeyCertSelectionDelegate { ! get { return this.privateKeySelectionDelegate; } ! set ! { ! if (this.PrivateKeySelection != null) ! { ! this.PrivateKeySelection -= this.privateKeySelectionDelegate; ! } ! this.privateKeySelectionDelegate = value; ! this.PrivateKeySelection += this.privateKeySelectionDelegate; ! } } --- 223,234 ---- public CertificateValidationCallback ClientCertValidationDelegate { ! get { return this.ClientCertValidation; } ! set { this.ClientCertValidation = value; } } public PrivateKeySelectionCallback PrivateKeyCertSelectionDelegate { ! get { return this.PrivateKeySelection; } ! set { this.PrivateKeySelection = value; } } *************** *** 349,359 **** } } ! this.ownsStream = false; ! this.innerStream = null; ! if (this.ClientCertValidation != null) ! { ! this.ClientCertValidation -= this.clientCertValidationDelegate; ! } ! this.clientCertValidationDelegate = null; } --- 330,337 ---- } } ! this.ownsStream = false; ! this.innerStream = null; ! this.ClientCertValidation = null; ! this.PrivateKeySelection = null; } |