pgsqlclient-checkins Mailing List for PostgreSqlClient (Page 13)
Status: Inactive
Brought to you by:
carlosga_fb
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(120) |
Aug
(95) |
Sep
(95) |
Oct
(213) |
Nov
(114) |
Dec
(64) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(6) |
Feb
(134) |
Mar
(88) |
Apr
(28) |
May
(22) |
Jun
(15) |
Jul
(23) |
Aug
(2) |
Sep
(15) |
Oct
(2) |
Nov
(6) |
Dec
|
2005 |
Jan
(8) |
Feb
(6) |
Mar
|
Apr
(42) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(84) |
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
(84) |
Apr
(46) |
May
(40) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Carlos G. Á. <car...@us...> - 2005-04-04 21:11:34
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1823/Mono.Security.Protocol.Tls.Handshake.Server Modified Files: TlsClientCertificate.cs TlsClientCertificateVerify.cs TlsClientFinished.cs TlsClientHello.cs TlsClientKeyExchange.cs TlsServerCertificate.cs TlsServerCertificateRequest.cs TlsServerFinished.cs TlsServerHello.cs TlsServerHelloDone.cs TlsServerKeyExchange.cs Log Message: Update with the same sources existente in the Mono SVN Index: TlsServerCertificate.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsServerCertificate.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TlsServerCertificate.cs 4 Mar 2004 15:41:55 -0000 1.5 --- TlsServerCertificate.cs 4 Apr 2005 21:10:52 -0000 1.6 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsServerHelloDone.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsServerHelloDone.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TlsServerHelloDone.cs 4 Mar 2004 15:41:55 -0000 1.4 --- TlsServerHelloDone.cs 4 Apr 2005 21:10:52 -0000 1.5 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsServerHello.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsServerHello.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TlsServerHello.cs 4 Mar 2004 15:41:55 -0000 1.4 --- TlsServerHello.cs 4 Apr 2005 21:10:52 -0000 1.5 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsClientHello.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsClientHello.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** TlsClientHello.cs 21 Apr 2004 12:58:12 -0000 1.10 --- TlsClientHello.cs 4 Apr 2005 21:10:52 -0000 1.11 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsClientFinished.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsClientFinished.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** TlsClientFinished.cs 30 Nov 2004 14:02:40 -0000 1.9 --- TlsClientFinished.cs 4 Apr 2005 21:10:52 -0000 1.10 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsClientCertificateVerify.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsClientCertificateVerify.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TlsClientCertificateVerify.cs 21 Apr 2004 12:58:10 -0000 1.7 --- TlsClientCertificateVerify.cs 4 Apr 2005 21:10:52 -0000 1.8 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsClientKeyExchange.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsClientKeyExchange.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** TlsClientKeyExchange.cs 28 Aug 2004 20:48:05 -0000 1.8 --- TlsClientKeyExchange.cs 4 Apr 2005 21:10:52 -0000 1.9 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; *************** *** 30,54 **** namespace Mono.Security.Protocol.Tls.Handshake.Server { ! internal class TlsClientKeyExchange : HandshakeMessage ! { ! #region Constructors ! public TlsClientKeyExchange(Context context, byte[] buffer) : base(context, HandshakeType.ClientKeyExchange, buffer) ! { ! } ! #endregion ! #region Protected Methods ! protected override void ProcessAsSsl3() ! { AsymmetricAlgorithm privKey = null; ServerContext context = (ServerContext)this.Context; ! ! // Select the private key information privKey = context.SslStream.RaisePrivateKeySelection( new X509Certificate(context.ServerSettings.Certificates[0].RawData), --- 30,54 ---- namespace Mono.Security.Protocol.Tls.Handshake.Server { ! internal class TlsClientKeyExchange : HandshakeMessage ! { ! #region Constructors ! public TlsClientKeyExchange(Context context, byte[] buffer) : base(context, HandshakeType.ClientKeyExchange, buffer) ! { ! } ! #endregion ! #region Protected Methods ! protected override void ProcessAsSsl3() ! { AsymmetricAlgorithm privKey = null; ServerContext context = (ServerContext)this.Context; ! ! // Select the private key information privKey = context.SslStream.RaisePrivateKeySelection( new X509Certificate(context.ServerSettings.Certificates[0].RawData), *************** *** 61,90 **** // Read client premaster secret ! byte[] clientSecret = this.ReadBytes((int)this.Length); ! // Decrypt premaster secret RSAPKCS1KeyExchangeDeformatter deformatter = new RSAPKCS1KeyExchangeDeformatter(privKey); byte[] preMasterSecret = deformatter.DecryptKeyExchange(clientSecret); ! // Create master secret ! this.Context.Cipher.ComputeMasterSecret(preMasterSecret); ! ! // Create keys ! this.Context.Cipher.ComputeKeys(); ! // Initialize Cipher Suite ! this.Context.Cipher.InitializeCipher(); ! // Clear resources ! privKey.Clear(); } ! protected override void ProcessAsTls1() ! { AsymmetricAlgorithm privKey = null; ServerContext context = (ServerContext)this.Context; ! ! // Select the private key information // Select the private key information privKey = context.SslStream.RaisePrivateKeySelection( --- 61,87 ---- // Read client premaster secret ! byte[] clientSecret = this.ReadBytes((int)this.Length); ! // Decrypt premaster secret RSAPKCS1KeyExchangeDeformatter deformatter = new RSAPKCS1KeyExchangeDeformatter(privKey); byte[] preMasterSecret = deformatter.DecryptKeyExchange(clientSecret); ! // Create master secret ! this.Context.Cipher.ComputeMasterSecret(preMasterSecret); ! // Create keys ! this.Context.Cipher.ComputeKeys(); ! // Initialize Cipher Suite ! this.Context.Cipher.InitializeCipher(); } ! protected override void ProcessAsTls1() ! { AsymmetricAlgorithm privKey = null; ServerContext context = (ServerContext)this.Context; ! ! // Select the private key information // Select the private key information privKey = context.SslStream.RaisePrivateKeySelection( *************** *** 98,122 **** // Read client premaster secret ! byte[] clientSecret = this.ReadBytes(this.ReadInt16()); ! ! // Decrypt premaster secret ! RSAPKCS1KeyExchangeDeformatter deformatter = new RSAPKCS1KeyExchangeDeformatter(privKey); ! byte[] preMasterSecret = deformatter.DecryptKeyExchange(clientSecret); ! // Create master secret ! this.Context.Cipher.ComputeMasterSecret(preMasterSecret); ! // Create keys ! this.Context.Cipher.ComputeKeys(); ! // Initialize Cipher Suite ! this.Context.Cipher.InitializeCipher(); ! // Clear resources ! privKey.Clear(); ! } ! #endregion ! } } --- 95,116 ---- // Read client premaster secret ! byte[] clientSecret = this.ReadBytes(this.ReadInt16()); ! // Decrypt premaster secret ! RSAPKCS1KeyExchangeDeformatter deformatter = new RSAPKCS1KeyExchangeDeformatter(privKey); ! byte[] preMasterSecret = deformatter.DecryptKeyExchange(clientSecret); ! // Create master secret ! this.Context.Cipher.ComputeMasterSecret(preMasterSecret); ! // Create keys ! this.Context.Cipher.ComputeKeys(); ! // Initialize Cipher Suite ! this.Context.Cipher.InitializeCipher(); ! } ! #endregion ! } } Index: TlsServerCertificateRequest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsServerCertificateRequest.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TlsServerCertificateRequest.cs 21 Apr 2004 12:58:12 -0000 1.6 --- TlsServerCertificateRequest.cs 4 Apr 2005 21:10:52 -0000 1.7 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsClientCertificate.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsClientCertificate.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TlsClientCertificate.cs 9 Apr 2004 08:43:37 -0000 1.5 --- TlsClientCertificate.cs 4 Apr 2005 21:10:52 -0000 1.6 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsServerKeyExchange.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsServerKeyExchange.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TlsServerKeyExchange.cs 17 Mar 2004 16:33:36 -0000 1.4 --- TlsServerKeyExchange.cs 4 Apr 2005 21:10:52 -0000 1.5 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsServerFinished.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsServerFinished.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TlsServerFinished.cs 9 Mar 2004 22:04:55 -0000 1.6 --- TlsServerFinished.cs 4 Apr 2005 21:10:52 -0000 1.7 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; |
From: Carlos G. Á. <car...@us...> - 2005-04-04 21:11:31
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.X509.Extensions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1823/Mono.Security.X509.Extensions Modified Files: CRLDistributionPointsExtension.cs SubjectAltNameExtension.cs Log Message: Update with the same sources existente in the Mono SVN Index: SubjectAltNameExtension.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.X509.Extensions/SubjectAltNameExtension.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SubjectAltNameExtension.cs 20 Jul 2004 17:46:47 -0000 1.3 --- SubjectAltNameExtension.cs 4 Apr 2005 21:10:54 -0000 1.4 *************** *** 6,12 **** // // (C) 2003 Motus Technologies Inc. (http://www.motus.com) ! // (C) 2004 Novell (http://www.novell.com) ! // ! // // Permission is hereby granted, free of charge, to any person obtaining --- 6,10 ---- // // (C) 2003 Motus Technologies Inc. (http://www.motus.com) ! // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining *************** *** 73,88 **** public class SubjectAltNameExtension : X509Extension { ! private ArrayList rfc822Name; ! private ArrayList dnsName; ! private ArrayList ipAddr; ! public SubjectAltNameExtension () : base () { extnOid = "2.5.29.17"; } ! public SubjectAltNameExtension (ASN1 asn1) : base (asn1) {} ! public SubjectAltNameExtension (X509Extension extension) : base (extension) {} protected override void Decode () --- 71,91 ---- public class SubjectAltNameExtension : X509Extension { ! private GeneralNames _names; ! public SubjectAltNameExtension () { extnOid = "2.5.29.17"; + _names = new GeneralNames (); } ! public SubjectAltNameExtension (ASN1 asn1) ! : base (asn1) ! { ! } ! public SubjectAltNameExtension (X509Extension extension) ! : base (extension) ! { ! } protected override void Decode () *************** *** 91,115 **** if (sequence.Tag != 0x30) throw new ArgumentException ("Invalid SubjectAltName extension"); ! for (int i=0; i < sequence.Count; i++) { ! switch (sequence [i].Tag) { ! case 0x81: // rfc822Name [1] IA5String ! if (rfc822Name == null) ! rfc822Name = new ArrayList (); ! rfc822Name.Add (Encoding.ASCII.GetString (sequence [i].Value)); ! break; ! case 0x82: // dNSName [2] IA5String ! if (dnsName == null) ! dnsName = new ArrayList (); ! dnsName.Add (Encoding.ASCII.GetString (sequence [i].Value)); ! break; ! case 0x87: // iPAddress [7] OCTET STRING ! if (ipAddr == null) ! ipAddr = new ArrayList (); ! // TODO - Must find sample certificates ! break; ! default: ! break; ! } ! } } --- 94,98 ---- if (sequence.Tag != 0x30) throw new ArgumentException ("Invalid SubjectAltName extension"); ! _names = new GeneralNames (sequence); } *************** *** 119,171 **** public string[] RFC822 { ! get { ! if (rfc822Name == null) ! return new string [0]; ! return (string[]) rfc822Name.ToArray (typeof(string)); ! } } public string[] DNSNames { ! get { ! if (dnsName == null) ! return new string [0]; ! return (string[]) dnsName.ToArray (typeof(string)); ! } } // Incomplete support public string[] IPAddresses { ! get { ! if (ipAddr == null) ! return new string [0]; ! return (string[]) ipAddr.ToArray (typeof(string)); ! } } public override string ToString () { ! StringBuilder sb = new StringBuilder (); ! if (rfc822Name != null) { ! foreach (string s in rfc822Name) { ! sb.Append ("RFC822 Name="); ! sb.Append (s); ! sb.Append (Environment.NewLine); ! } ! } ! if (dnsName != null) { ! foreach (string s in dnsName) { ! sb.Append ("DNS Name="); ! sb.Append (s); ! sb.Append (Environment.NewLine); ! } ! } ! if (ipAddr != null) { ! foreach (string s in ipAddr) { ! sb.Append ("IP Address="); ! sb.Append (s); ! sb.Append (Environment.NewLine); ! } ! } ! return sb.ToString (); } } --- 102,120 ---- public string[] RFC822 { ! get { return _names.RFC822; } } public string[] DNSNames { ! get { return _names.DNSNames; } } // Incomplete support public string[] IPAddresses { ! get { return _names.IPAddresses; } } public override string ToString () { ! return _names.ToString (); } } Index: CRLDistributionPointsExtension.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.X509.Extensions/CRLDistributionPointsExtension.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** CRLDistributionPointsExtension.cs 20 Jul 2004 17:46:47 -0000 1.4 --- CRLDistributionPointsExtension.cs 4 Apr 2005 21:10:53 -0000 1.5 *************** *** 85,92 **** CRLIssuer = issuer; } } [Flags] ! public enum ReasonFlags { Unused = 0, KeyCompromise = 1, --- 85,114 ---- CRLIssuer = issuer; } + + public DP (ASN1 dp) + { + for (int i = 0; i < dp.Count; i++) { + ASN1 el = dp[i]; + switch (el.Tag) { + case 0xA0: // DistributionPointName OPTIONAL + for (int j = 0; j < el.Count; j++) { + ASN1 dpn = el [j]; + if (dpn.Tag == 0xA0) { + DistributionPoint = new GeneralNames (dpn).ToString (); + } + } + break; + case 0xA1: // ReasonFlags OPTIONAL + break; + case 0xA2: // RelativeDistinguishedName + break; + } + } + } } [Flags] ! public enum ReasonFlags ! { Unused = 0, KeyCompromise = 1, *************** *** 108,114 **** } ! public CRLDistributionPointsExtension (ASN1 asn1) : base (asn1) {} ! public CRLDistributionPointsExtension (X509Extension extension) : base (extension) {} protected override void Decode () --- 130,142 ---- } ! public CRLDistributionPointsExtension (ASN1 asn1) ! : base (asn1) ! { ! } ! public CRLDistributionPointsExtension (X509Extension extension) ! : base (extension) ! { ! } protected override void Decode () *************** *** 120,124 **** // for every distribution point for (int i=0; i < sequence.Count; i++) { ! dps.Add (null); } } --- 148,152 ---- // for every distribution point for (int i=0; i < sequence.Count; i++) { ! dps.Add (new DP (sequence [i])); } } *************** *** 131,146 **** { StringBuilder sb = new StringBuilder (); foreach (DP dp in dps) { sb.Append ("["); ! sb.Append (dp.Reasons); sb.Append ("]CRL Distribution Point"); sb.Append (Environment.NewLine); sb.Append ("\tDistribution Point Name:"); - sb.Append (dp.DistributionPoint); - sb.Append (Environment.NewLine); sb.Append ("\t\tFull Name:"); sb.Append (Environment.NewLine); ! sb.Append ("\t\t\tDirectory Address:"); ! sb.Append (dp.CRLIssuer); sb.Append (Environment.NewLine); } --- 159,173 ---- { StringBuilder sb = new StringBuilder (); + int i = 1; foreach (DP dp in dps) { sb.Append ("["); ! sb.Append (i++); sb.Append ("]CRL Distribution Point"); sb.Append (Environment.NewLine); sb.Append ("\tDistribution Point Name:"); sb.Append ("\t\tFull Name:"); sb.Append (Environment.NewLine); ! sb.Append ("\t\t\t"); ! sb.Append (dp.DistributionPoint); sb.Append (Environment.NewLine); } |
From: Carlos G. Á. <car...@us...> - 2005-04-04 21:11:03
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1823/Mono.Security.Protocol.Tls.Handshake.Client Modified Files: TlsClientCertificate.cs TlsClientCertificateVerify.cs TlsClientFinished.cs TlsClientHello.cs TlsClientKeyExchange.cs TlsServerCertificate.cs TlsServerCertificateRequest.cs TlsServerFinished.cs TlsServerHello.cs TlsServerHelloDone.cs TlsServerKeyExchange.cs Log Message: Update with the same sources existente in the Mono SVN Index: TlsServerCertificate.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** TlsServerCertificate.cs 17 Nov 2004 13:52:04 -0000 1.13 --- TlsServerCertificate.cs 4 Apr 2005 21:10:51 -0000 1.14 *************** *** 1,26 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * Sebastien Pouliot, Copyright (c) 2004 Novell (http://www.novell.com) ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,26 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! // Sebastien Pouliot, Copyright (c) 2004 Novell (http://www.novell.com) ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; *************** *** 104,108 **** } ! // this.validateCertificates(certificates); } --- 104,108 ---- } ! this.validateCertificates(certificates); } *************** *** 256,260 **** case X509ChainStatusFlags.NotTimeValid: // WinError.h CERT_E_EXPIRED 0x800B0101 ! description = AlertDescription.CertificateExpired; errors.Add ((int)-2146762495); break; --- 256,260 ---- case X509ChainStatusFlags.NotTimeValid: // WinError.h CERT_E_EXPIRED 0x800B0101 ! description = AlertDescription.CertificateExpired; errors.Add ((int)-2146762495); break; *************** *** 262,266 **** case X509ChainStatusFlags.PartialChain: // WinError.h CERT_E_CHAINING 0x800B010A ! description = AlertDescription.UnknownCA; errors.Add ((int)-2146762486); break; --- 262,266 ---- case X509ChainStatusFlags.PartialChain: // WinError.h CERT_E_CHAINING 0x800B010A ! description = AlertDescription.UnknownCA; errors.Add ((int)-2146762486); break; *************** *** 268,272 **** case X509ChainStatusFlags.UntrustedRoot: // WinError.h CERT_E_UNTRUSTEDROOT 0x800B0109 ! description = AlertDescription.UnknownCA; errors.Add ((int)-2146762487); break; --- 268,272 ---- case X509ChainStatusFlags.UntrustedRoot: // WinError.h CERT_E_UNTRUSTEDROOT 0x800B0109 ! description = AlertDescription.UnknownCA; errors.Add ((int)-2146762487); break; *************** *** 274,278 **** default: // unknown error ! description = AlertDescription.CertificateUnknown; errors.Add ((int)verify.Status); break; --- 274,278 ---- default: // unknown error ! description = AlertDescription.CertificateUnknown; errors.Add ((int)verify.Status); break; Index: TlsServerHelloDone.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerHelloDone.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TlsServerHelloDone.cs 4 Mar 2004 15:41:20 -0000 1.4 --- TlsServerHelloDone.cs 4 Apr 2005 21:10:52 -0000 1.5 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsServerHello.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerHello.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TlsServerHello.cs 21 Apr 2004 12:54:54 -0000 1.7 --- TlsServerHello.cs 4 Apr 2005 21:10:52 -0000 1.8 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsClientHello.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientHello.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TlsClientHello.cs 4 Mar 2004 15:39:11 -0000 1.6 --- TlsClientHello.cs 4 Apr 2005 21:10:51 -0000 1.7 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsClientFinished.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientFinished.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TlsClientFinished.cs 3 Mar 2004 16:14:40 -0000 1.3 --- TlsClientFinished.cs 4 Apr 2005 21:10:51 -0000 1.4 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsClientCertificateVerify.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TlsClientCertificateVerify.cs 21 Apr 2004 12:54:52 -0000 1.7 --- TlsClientCertificateVerify.cs 4 Apr 2005 21:10:51 -0000 1.8 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; *************** *** 167,171 **** int length = integer.Length - 1; byte[] uinteger = new byte [length]; ! Array.Copy (integer, 1, uinteger, 0, length); return uinteger; } --- 167,171 ---- int length = integer.Length - 1; byte[] uinteger = new byte [length]; ! Buffer.BlockCopy (integer, 1, uinteger, 0, length); return uinteger; } Index: TlsClientKeyExchange.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientKeyExchange.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TlsClientKeyExchange.cs 19 Mar 2004 22:44:11 -0000 1.6 --- TlsClientKeyExchange.cs 4 Apr 2005 21:10:51 -0000 1.7 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsServerCertificateRequest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificateRequest.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TlsServerCertificateRequest.cs 21 Apr 2004 12:54:54 -0000 1.6 --- TlsServerCertificateRequest.cs 4 Apr 2005 21:10:52 -0000 1.7 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsClientCertificate.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificate.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TlsClientCertificate.cs 21 Apr 2004 12:54:41 -0000 1.7 --- TlsClientCertificate.cs 4 Apr 2005 21:10:50 -0000 1.8 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsServerKeyExchange.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TlsServerKeyExchange.cs 10 Apr 2004 11:15:43 -0000 1.5 --- TlsServerKeyExchange.cs 4 Apr 2005 21:10:52 -0000 1.6 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; Index: TlsServerFinished.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerFinished.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TlsServerFinished.cs 21 Apr 2004 12:54:54 -0000 1.6 --- TlsServerFinished.cs 4 Apr 2005 21:10:52 -0000 1.7 *************** *** 1,25 **** ! /* Transport Security Layer (TLS) ! * Copyright (c) 2003-2004 Carlos Guzman Alvarez ! * ! * Permission is hereby granted, free of charge, to any person ! * obtaining a copy of this software and associated documentation ! * files (the "Software"), to deal in the Software without restriction, ! * including without limitation the rights to use, copy, modify, merge, ! * publish, distribute, sublicense, and/or sell copies of the Software, ! * and to permit persons to whom the Software is furnished to do so, ! * subject to the following conditions: ! * ! * The above copyright notice and this permission notice shall be included ! * in all copies or substantial portions of the Software. ! * ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT ! * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ! * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ! * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER ! * DEALINGS IN THE SOFTWARE. ! */ using System; --- 1,25 ---- ! // Transport Security Layer (TLS) ! // Copyright (c) 2003-2004 Carlos Guzman Alvarez ! ! // ! // Permission is hereby granted, free of charge, to any person obtaining ! // a copy of this software and associated documentation files (the ! // "Software"), to deal in the Software without restriction, including ! // without limitation the rights to use, copy, modify, merge, publish, ! // distribute, sublicense, and/or sell copies of the Software, and to ! // permit persons to whom the Software is furnished to do so, subject to ! // the following conditions: ! // ! // The above copyright notice and this permission notice shall be ! // included in all copies or substantial portions of the Software. ! // ! // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ! // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ! // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ! // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ! // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ! // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ! // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ! // using System; |
From: Carlos G. Á. <car...@us...> - 2005-04-04 18:17:35
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19405 Modified Files: PgBaseTest.cs PgCommandTest.cs PgGeometicTypesTest.cs Log Message: 2005-04-03 Carlos Guzman Alvarez <car...@te...> * Changes to improve exception handling. Index: PgBaseTest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source/PgBaseTest.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** PgBaseTest.cs 31 Jan 2005 14:08:48 -0000 1.13 --- PgBaseTest.cs 4 Apr 2005 18:17:20 -0000 1.14 *************** *** 323,330 **** transaction.Commit(); } ! catch (PgException ex) { transaction.Rollback(); ! throw ex; } finally --- 323,330 ---- transaction.Commit(); } ! catch (PgException) { transaction.Rollback(); ! throw; } finally *************** *** 368,375 **** transaction.Commit(); } ! catch (PgException ex) { transaction.Rollback(); ! throw ex; } finally --- 368,375 ---- transaction.Commit(); } ! catch (PgException) { transaction.Rollback(); ! throw; } finally Index: PgGeometicTypesTest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source/PgGeometicTypesTest.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PgGeometicTypesTest.cs 9 Feb 2004 14:21:31 -0000 1.5 --- PgGeometicTypesTest.cs 4 Apr 2005 18:17:21 -0000 1.6 *************** *** 44,50 **** Assertion.AssertEquals("Invalid Y coord in point", 60, point.Y); } ! catch (Exception ex) { ! throw ex; } finally --- 44,50 ---- Assertion.AssertEquals("Invalid Y coord in point", 60, point.Y); } ! catch (Exception) { ! throw; } finally *************** *** 72,78 **** Assertion.AssertEquals("Invalid Y coord in Upper Right corner", 70, box.UpperRight.Y); } ! catch (Exception ex) { ! throw ex; } finally --- 72,78 ---- Assertion.AssertEquals("Invalid Y coord in Upper Right corner", 70, box.UpperRight.Y); } ! catch (Exception) { ! throw; } finally *************** *** 98,104 **** Assertion.AssertEquals("Invalid RADIUS coord in circle", 30, circle.Radius); } ! catch (Exception ex) { ! throw ex; } finally --- 98,104 ---- Assertion.AssertEquals("Invalid RADIUS coord in circle", 30, circle.Radius); } ! catch (Exception) { ! throw; } finally *************** *** 126,132 **** Assertion.AssertEquals("Invalid Y coord in end point", 0, lseg.EndPoint.Y); } ! catch (Exception ex) { ! throw ex; } finally --- 126,132 ---- Assertion.AssertEquals("Invalid Y coord in end point", 0, lseg.EndPoint.Y); } ! catch (Exception) { ! throw; } finally *************** *** 154,160 **** Assertion.AssertEquals("Invalid Y coord in path point 1", 0, path.Points[1].Y); } ! catch (Exception ex) { ! throw ex; } finally --- 154,160 ---- Assertion.AssertEquals("Invalid Y coord in path point 1", 0, path.Points[1].Y); } ! catch (Exception) { ! throw; } finally *************** *** 182,188 **** Assertion.AssertEquals("Invalid Y coord in polygon point 1", 0, polygon.Points[1].Y); } ! catch (Exception ex) { ! throw ex; } finally --- 182,188 ---- Assertion.AssertEquals("Invalid Y coord in polygon point 1", 0, polygon.Points[1].Y); } ! catch (Exception) { ! throw; } finally Index: PgCommandTest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source/PgCommandTest.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PgCommandTest.cs 9 Feb 2004 14:21:31 -0000 1.4 --- PgCommandTest.cs 4 Apr 2005 18:17:21 -0000 1.5 *************** *** 58,65 **** ExecuteReaderTest(); } ! catch (PgException ex) { transaction.Rollback(); ! throw ex; } finally --- 58,65 ---- ExecuteReaderTest(); } ! catch (PgException) { transaction.Rollback(); ! throw; } finally |
From: Carlos G. Á. <car...@us...> - 2005-04-04 18:17:02
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19164 Modified Files: changelog.txt Log Message: 2005-04-03 Carlos Guzman Alvarez <car...@te...> * Changes to improve exception handling. Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changelog.txt,v retrieving revision 1.126 retrieving revision 1.127 diff -C2 -d -r1.126 -r1.127 *** changelog.txt 31 Jan 2005 14:00:39 -0000 1.126 --- changelog.txt 4 Apr 2005 18:16:33 -0000 1.127 *************** *** 2,5 **** --- 2,10 ---- ------------------------------------------------------- + + 2005-04-03 Carlos Guzman Alvarez <car...@te...> + + * Changes to improve exception handling. + 2005-01-31 Carlos Guzman Alvarez <car...@te...> |
From: Carlos G. Á. <car...@us...> - 2005-04-04 18:16:13
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18971 Modified Files: PgDbClient.cs PgStatement.cs Log Message: 2005-04-03 Carlos Guzman Alvarez <car...@te...> * Changes to improve exception handling. Index: PgDbClient.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgDbClient.cs,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** PgDbClient.cs 13 Feb 2005 20:52:29 -0000 1.54 --- PgDbClient.cs 4 Apr 2005 18:15:57 -0000 1.55 *************** *** 355,362 **** throw new PgClientException(ex.Message); } ! catch (PgClientException ex) { this.Detach(); ! throw ex; } } --- 355,362 ---- throw new PgClientException(ex.Message); } ! catch (PgClientException) { this.Detach(); ! throw; } } *************** *** 376,382 **** throw new PgClientException(ex.Message); } ! catch (PgClientException ex) { ! throw ex; } } --- 376,382 ---- throw new PgClientException(ex.Message); } ! catch (PgClientException) { ! throw; } } *************** *** 408,414 **** this.send.Flush(); } ! catch (IOException ex) { ! throw ex; } } --- 408,414 ---- this.send.Flush(); } ! catch (IOException) { ! throw; } } *************** *** 435,439 **** this.Sync(); ! // Throe the PostgreSQL exception throw ex; --- 435,439 ---- this.Sync(); ! // Throw the PostgreSQL exception throw ex; *************** *** 473,479 **** responsePacket.Encoding = Settings.Encoding; } ! catch (IOException ex) { ! throw ex; } --- 473,479 ---- responsePacket.Encoding = Settings.Encoding; } ! catch (IOException) { ! throw; } *************** *** 725,731 **** this.SendPacket(packet, PgFrontEndCodes.FLUSH); } ! catch (Exception ex) { ! throw ex; } } --- 725,731 ---- this.SendPacket(packet, PgFrontEndCodes.FLUSH); } ! catch (Exception) { ! throw; } } *************** *** 760,764 **** } ! throw ex; } } --- 760,764 ---- } ! throw; } } *************** *** 781,787 **** this.SendSimplePacket(packet); } ! catch (Exception ex) { ! throw ex; } } --- 781,787 ---- this.SendSimplePacket(packet); } ! catch (Exception) { ! throw; } } *************** *** 817,823 **** } } ! catch (Exception ex) { ! throw ex; } } --- 817,823 ---- } } ! catch (Exception) { ! throw; } } *************** *** 908,912 **** if (this.sslStream != null) { ! this.sslStream.Close(); } if (this.networkStream != null) --- 908,918 ---- if (this.sslStream != null) { ! try ! { ! this.sslStream.Close(); ! } ! catch ! { ! } } if (this.networkStream != null) Index: PgStatement.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgStatement.cs,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** PgStatement.cs 22 Oct 2004 18:54:05 -0000 1.28 --- PgStatement.cs 4 Apr 2005 18:15:58 -0000 1.29 *************** *** 206,215 **** this.status = PgStatementStatus.Parsed; } ! catch (PgClientException ex) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw ex; } } --- 206,215 ---- this.status = PgStatementStatus.Parsed; } ! catch (PgClientException) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw; } } *************** *** 257,266 **** this.status = PgStatementStatus.Described; } ! catch (Exception ex) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw ex; } } --- 257,266 ---- this.status = PgStatementStatus.Described; } ! catch (Exception) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw; } } *************** *** 308,317 **** this.status = PgStatementStatus.Parsed; } ! catch (Exception ex) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw ex; } } --- 308,317 ---- this.status = PgStatementStatus.Parsed; } ! catch (Exception) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw; } } *************** *** 367,376 **** this.status = PgStatementStatus.Executed; } ! catch (Exception ex) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw ex; } } --- 367,376 ---- this.status = PgStatementStatus.Executed; } ! catch (Exception) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw; } } *************** *** 419,428 **** this.status = PgStatementStatus.Executed; } ! catch (Exception ex) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw ex; } } --- 419,428 ---- this.status = PgStatementStatus.Executed; } ! catch (Exception) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw; } } *************** *** 483,492 **** this.status = PgStatementStatus.Executed; } ! catch (Exception ex) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw ex; } } --- 483,492 ---- this.status = PgStatementStatus.Executed; } ! catch (Exception) { // Update status this.status = PgStatementStatus.Error; // Throw exception ! throw; } } *************** *** 571,575 **** this.status = PgStatementStatus.Initial; } ! catch (Exception ex) { // Update Status --- 571,575 ---- this.status = PgStatementStatus.Initial; } ! catch (Exception) { // Update Status *************** *** 577,581 **** // Throw exception ! throw ex; } } --- 577,581 ---- // Throw exception ! throw; } } *************** *** 615,621 **** return stmtPlan.ToString(); } ! catch (PgClientException ex) { ! throw ex; } } --- 615,621 ---- return stmtPlan.ToString(); } ! catch (PgClientException) { ! throw; } } |
From: Carlos G. Á. <car...@us...> - 2005-04-04 18:15:06
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18600 Modified Files: PgCommandBuilder.cs PgConnection.cs PgConnectionPool.cs PgDataReader.cs Log Message: 2005-04-03 Carlos Guzman Alvarez <car...@te...> * Changes to improve exception handling. Index: PgConnectionPool.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgConnectionPool.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PgConnectionPool.cs 29 Sep 2004 12:08:12 -0000 1.8 --- PgConnectionPool.cs 4 Apr 2005 18:14:37 -0000 1.9 *************** *** 184,190 **** return connection; } ! catch (Exception ex) { ! throw ex; } } --- 184,190 ---- return connection; } ! catch (Exception) { ! throw; } } *************** *** 197,203 **** connection.Verify()); } ! catch (Exception ex) { ! throw ex; } } --- 197,203 ---- connection.Verify()); } ! catch (Exception) { ! throw; } } Index: PgDataReader.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgDataReader.cs,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** PgDataReader.cs 29 Sep 2004 12:08:12 -0000 1.24 --- PgDataReader.cs 4 Apr 2005 18:14:42 -0000 1.25 *************** *** 369,373 **** #endregion ! #region IDataRecord Properties % Methods public int FieldCount --- 369,373 ---- #endregion ! #region IDataRecord Properties & Methods public int FieldCount Index: PgConnection.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgConnection.cs,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** PgConnection.cs 31 Jan 2005 13:29:36 -0000 1.21 --- PgConnection.cs 4 Apr 2005 18:14:36 -0000 1.22 *************** *** 284,291 **** this.Open(); } ! catch (PgException ex) { this.connectionInternal.Options.Database = oldDb; ! throw ex; } } --- 284,291 ---- this.Open(); } ! catch (PgException) { this.connectionInternal.Options.Database = oldDb; ! throw; } } Index: PgCommandBuilder.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommandBuilder.cs,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** PgCommandBuilder.cs 29 Sep 2004 12:08:06 -0000 1.23 --- PgCommandBuilder.cs 4 Apr 2005 18:14:32 -0000 1.24 *************** *** 260,264 **** public PgCommand GetDeleteCommand() ! { if (this.deleteCommand == null) { --- 260,264 ---- public PgCommand GetDeleteCommand() ! { if (this.deleteCommand == null) { |
From: Carlos G. Á. <car...@us...> - 2005-02-13 20:52:39
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16691 Modified Files: PgDbClient.cs Log Message: Changed ProtocolType used to configure the Socket to Tcp Index: PgDbClient.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgDbClient.cs,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** PgDbClient.cs 29 Sep 2004 12:10:53 -0000 1.53 --- PgDbClient.cs 13 Feb 2005 20:52:29 -0000 1.54 *************** *** 865,869 **** IPEndPoint EPhost = new IPEndPoint(hostadd, settings.ServerPort); ! this.socket = new Socket(AddressFamily.InterNetwork,SocketType.Stream, ProtocolType.IP); // Set Receive Buffer size. --- 865,872 ---- IPEndPoint EPhost = new IPEndPoint(hostadd, settings.ServerPort); ! this.socket = new Socket( ! AddressFamily.InterNetwork, ! SocketType.Stream, ! ProtocolType.Tcp); // Set Receive Buffer size. |
From: Carlos G. Á. <car...@us...> - 2005-02-08 21:20:48
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3903 Modified Files: SslClientStream.cs Log Message: no message Index: SslClientStream.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** SslClientStream.cs 5 Feb 2005 14:08:15 -0000 1.25 --- SslClientStream.cs 8 Feb 2005 21:20:32 -0000 1.26 *************** *** 307,311 **** this.inputBuffer = new MemoryStream(); ! this.innerStream = new BufferedStream(stream); this.ownsStream = ownsStream; this.read = new object(); --- 307,311 ---- this.inputBuffer = new MemoryStream(); ! this.innerStream = stream; this.ownsStream = ownsStream; this.read = new object(); *************** *** 719,724 **** catch (TlsException ex) { ! this.protocol.SendAlert(ex.Alert); ! this.Close(); throw new IOException("The authentication or decryption has failed."); --- 719,730 ---- catch (TlsException ex) { ! try ! { ! this.protocol.SendAlert(ex.Alert); ! this.Close(); ! } ! catch ! { ! } throw new IOException("The authentication or decryption has failed."); *************** *** 726,731 **** catch (Exception) { ! this.protocol.SendAlert(AlertDescription.InternalError); ! this.Close(); throw new IOException("The authentication or decryption has failed."); --- 732,743 ---- catch (Exception) { ! try ! { ! this.protocol.SendAlert(AlertDescription.InternalError); ! this.Close(); ! } ! catch ! { ! } throw new IOException("The authentication or decryption has failed."); |
From: Carlos G. Á. <car...@us...> - 2005-02-08 21:19:44
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3499 Modified Files: changelog.txt Log Message: no message Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/changelog.txt,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** changelog.txt 26 Apr 2004 09:21:01 -0000 1.29 --- changelog.txt 8 Feb 2005 21:19:12 -0000 1.30 *************** *** 3,6 **** --- 3,11 ---- + 2004-11-17 Carlos Guzman Alvarez <car...@te...> + + * Add a fix for the ClientHelloV2 message (Thanks to Sebastien Pouliot) + + 2004-04-26 Carlos Guzman Alvarez <car...@te...> |
From: Carlos G. Á. <car...@us...> - 2005-02-08 21:17:46
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2663 Modified Files: RecordProtocol.cs Log Message: no message Index: RecordProtocol.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** RecordProtocol.cs 5 Feb 2005 14:08:14 -0000 1.25 --- RecordProtocol.cs 8 Feb 2005 21:17:20 -0000 1.26 *************** *** 85,88 **** --- 85,96 ---- } + Thread.Sleep(1); + + if (this.innerStream is NetworkStream && + !((NetworkStream)this.innerStream).DataAvailable) + { + return null; + } + // Try to read the Record Content Type int type = this.innerStream.ReadByte(); *************** *** 287,290 **** --- 295,299 ---- int received = 0; byte[] buffer = new byte[length]; + while (received != length) { |
From: Carlos G. Á. <car...@us...> - 2005-02-05 14:08:24
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6707 Modified Files: RecordProtocol.cs SslClientStream.cs Log Message: Rollbacked latest changes and added new ones for the same issue the last changes where trying to fix Index: RecordProtocol.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** RecordProtocol.cs 2 Feb 2005 19:25:06 -0000 1.24 --- RecordProtocol.cs 5 Feb 2005 14:08:14 -0000 1.25 *************** *** 76,106 **** #region Reveive Record Methods - internal bool WaitForData () - { - // Problem: NetworkStream.ReadByte blocks until a byte is received - // and (maybe) no byte will ever be received - if (this.innerStream is NetworkStream) - { - NetworkStream ns = (this.innerStream as NetworkStream); - int delay = 10; - - while (delay < Context.TIMEOUT) - { - if (ns.DataAvailable) - { - return true; - } - Thread.Sleep (delay); - delay *= 2; - } - - // Nothing to see, move along - return false; - } - - // We assume other type of stream have their own timeout capabilities - return true; - } - public byte[] ReceiveRecord() { --- 76,79 ---- *************** *** 112,120 **** } - if (!WaitForData()) - { - return null; - } - // Try to read the Record Content Type int type = this.innerStream.ReadByte(); --- 85,88 ---- *************** *** 153,157 **** case ContentType.Alert: this.ProcessAlert((AlertLevel)result[0], (AlertDescription)result[1]); ! result = null; break; --- 121,132 ---- case ContentType.Alert: this.ProcessAlert((AlertLevel)result[0], (AlertDescription)result[1]); ! if (this.context.ConnectionEnd) ! { ! result = null; ! } ! else ! { ! result = new byte[0]; ! } break; *************** *** 175,181 **** default: ! throw new TlsException( ! AlertDescription.UnexpectedMessage, ! "Unknown record received from server."); } --- 150,154 ---- default: ! throw new TlsException(AlertDescription.UnexpectedMessage, "Unknown record received from server."); } *************** *** 310,314 **** short protocol = this.ReadShort(); short length = this.ReadShort(); - int n = 0; // Read Record data --- 283,286 ---- *************** *** 317,336 **** while (received != length) { ! int incoming = this.innerStream.Read(buffer, received, buffer.Length - received); ! ! // We risk an infinite loop is data isn't available ! if (incoming == 0) ! { ! if (!this.Wait(ref n)) ! { ! throw new TlsException(AlertLevel.Fatal, AlertDescription.CloseNotify); ! } ! } ! else ! { ! n = 0; // reset ! } ! ! received += incoming; } --- 289,293 ---- while (received != length) { ! received += this.innerStream.Read(buffer, received, buffer.Length - received); } *************** *** 347,368 **** } - private bool Wait (ref int delay) - { - if (delay < 10) - { - delay = 10; - } - - if (delay >= Context.TIMEOUT) - { - return false; - } - - Thread.Sleep (delay); - delay *= 2; - - return true; - } - #endregion --- 304,307 ---- *************** *** 432,435 **** --- 371,375 ---- this.innerStream.Write(record, 0, record.Length); + this.innerStream.Flush(); } Index: SslClientStream.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** SslClientStream.cs 2 Feb 2005 19:25:06 -0000 1.24 --- SslClientStream.cs 5 Feb 2005 14:08:15 -0000 1.25 *************** *** 65,77 **** #region Fields ! private Stream innerStream; ! private BufferedStream inputBuffer; ! private ClientContext context; ! private ClientRecordProtocol protocol; ! private bool ownsStream; ! private bool disposed; ! private bool checkCertRevocationStatus; ! private object read; ! private object write; #endregion --- 65,77 ---- #region Fields ! private Stream innerStream; ! private Stream inputBuffer; ! private ClientContext context; ! private ClientRecordProtocol protocol; ! private bool ownsStream; ! private bool disposed; ! private bool checkCertRevocationStatus; ! private object read; ! private object write; #endregion *************** *** 259,300 **** #region Constructors ! public SslClientStream( ! Stream stream, ! string targetHost, ! bool ownsStream) ! : this( ! stream, targetHost, ownsStream, ! SecurityProtocolType.Default, null) { } ! public SslClientStream( ! Stream stream, ! string targetHost, ! X509Certificate clientCertificate) ! : this( ! stream, targetHost, false, SecurityProtocolType.Default, new X509CertificateCollection(new X509Certificate[]{clientCertificate})) { } ! public SslClientStream( ! Stream stream, ! string targetHost, ! X509CertificateCollection clientCertificates) : ! this( ! stream, targetHost, false, SecurityProtocolType.Default, ! clientCertificates) { } ! public SslClientStream( ! Stream stream, ! string targetHost, ! bool ownsStream, ! SecurityProtocolType securityProtocolType) ! : this( ! stream, targetHost, ownsStream, securityProtocolType, ! new X509CertificateCollection()) { } --- 259,280 ---- #region Constructors ! public SslClientStream(Stream stream, string targetHost, bool ownsStream) ! : this(stream, targetHost, ownsStream, SecurityProtocolType.Default, null) { } ! public SslClientStream(Stream stream, string targetHost, X509Certificate clientCertificate) ! : this(stream, targetHost, false, SecurityProtocolType.Default, new X509CertificateCollection(new X509Certificate[]{clientCertificate})) { } ! public SslClientStream(Stream stream, string targetHost, X509CertificateCollection clientCertificates) : ! this(stream, targetHost, false, SecurityProtocolType.Default, clientCertificates) { } ! public SslClientStream(Stream stream, string targetHost, bool ownsStream, SecurityProtocolType securityProtocolType) ! : this(stream, targetHost, ownsStream, securityProtocolType, new X509CertificateCollection()) { } *************** *** 326,331 **** clientCertificates); ! this.inputBuffer = new BufferedStream(new MemoryStream()); ! this.innerStream = stream; this.ownsStream = ownsStream; this.read = new object(); --- 306,311 ---- clientCertificates); ! this.inputBuffer = new MemoryStream(); ! this.innerStream = new BufferedStream(stream); this.ownsStream = ownsStream; this.read = new object(); *************** *** 461,477 **** long position = this.inputBuffer.Position; byte[] record = this.protocol.ReceiveRecord(); ! ! if (record != null && record.Length > 0) { ! // Write new data to the inputBuffer ! this.inputBuffer.Seek(0, SeekOrigin.End); ! this.inputBuffer.Write(record, 0, record.Length); ! // Restore buffer position ! this.inputBuffer.Seek(position, SeekOrigin.Begin); } ! ! if ((this.innerStream is NetworkStream && !((NetworkStream)this.innerStream).DataAvailable) || ! record == null) { break; --- 441,458 ---- long position = this.inputBuffer.Position; byte[] record = this.protocol.ReceiveRecord(); ! ! if (record != null) { ! if (record.Length > 0) ! { ! // Write new data to the inputBuffer ! this.inputBuffer.Seek(0, SeekOrigin.End); ! this.inputBuffer.Write(record, 0, record.Length); ! // Restore buffer position ! this.inputBuffer.Seek(position, SeekOrigin.Begin); ! } } ! else { break; |
From: Carlos G. Á. <car...@us...> - 2005-02-02 19:25:19
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12986 Modified Files: Context.cs RecordProtocol.cs SslClientStream.cs Log Message: Fixes for the hang problem (Sebastien Pouliot) Index: RecordProtocol.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** RecordProtocol.cs 31 Jan 2005 14:10:48 -0000 1.23 --- RecordProtocol.cs 2 Feb 2005 19:25:06 -0000 1.24 *************** *** 26,30 **** --- 26,32 ---- using System.Collections; using System.IO; + using System.Net; using System.Net.Sockets; + using System.Threading; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; *************** *** 74,77 **** --- 76,106 ---- #region Reveive Record Methods + internal bool WaitForData () + { + // Problem: NetworkStream.ReadByte blocks until a byte is received + // and (maybe) no byte will ever be received + if (this.innerStream is NetworkStream) + { + NetworkStream ns = (this.innerStream as NetworkStream); + int delay = 10; + + while (delay < Context.TIMEOUT) + { + if (ns.DataAvailable) + { + return true; + } + Thread.Sleep (delay); + delay *= 2; + } + + // Nothing to see, move along + return false; + } + + // We assume other type of stream have their own timeout capabilities + return true; + } + public byte[] ReceiveRecord() { *************** *** 83,86 **** --- 112,120 ---- } + if (!WaitForData()) + { + return null; + } + // Try to read the Record Content Type int type = this.innerStream.ReadByte(); *************** *** 152,160 **** { byte[] b = new byte[2]; - this.innerStream.Read(b, 0, b.Length); ! short val = BitConverter.ToInt16(b, 0); ! return System.Net.IPAddress.HostToNetworkOrder(val); } --- 186,196 ---- { byte[] b = new byte[2]; ! if (this.innerStream.Read (b, 0, b.Length) != 2) ! { ! throw new TlsException (AlertLevel.Fatal, AlertDescription.DecodeError); ! } ! return IPAddress.HostToNetworkOrder(BitConverter.ToInt16(b, 0)); } *************** *** 200,213 **** private byte[] ReadClientHelloV2() { ! int msgLength = this.innerStream.ReadByte(); // Read the message contents ! byte[] message = new byte[msgLength]; ! this.innerStream.Read(message, 0, message.Length); // Add them to a TlsStream TlsStream stream = new TlsStream(message); ! int msgType = stream.ReadByte(); if (msgType != 1) { --- 236,257 ---- private byte[] ReadClientHelloV2() { ! int msgLength = this.innerStream.ReadByte(); ! int msgType = -1; ! byte[] message = null; // Read the message contents ! if (msgLength > 0) ! { ! message = new byte[msgLength]; ! if (this.innerStream.Read(message, 0, message.Length) != msgLength) ! { ! ! } ! } // Add them to a TlsStream TlsStream stream = new TlsStream(message); ! msgType = stream.ReadByte(); if (msgType != 1) { *************** *** 264,269 **** private byte[] ReadStandardRecordBuffer() { ! short protocol = this.ReadShort(); ! short length = this.ReadShort(); // Read Record data --- 308,314 ---- private byte[] ReadStandardRecordBuffer() { ! short protocol = this.ReadShort(); ! short length = this.ReadShort(); ! int n = 0; // Read Record data *************** *** 272,276 **** while (received != length) { ! received += this.innerStream.Read(buffer, received, buffer.Length - received); } --- 317,336 ---- while (received != length) { ! int incoming = this.innerStream.Read(buffer, received, buffer.Length - received); ! ! // We risk an infinite loop is data isn't available ! if (incoming == 0) ! { ! if (!this.Wait(ref n)) ! { ! throw new TlsException(AlertLevel.Fatal, AlertDescription.CloseNotify); ! } ! } ! else ! { ! n = 0; // reset ! } ! ! received += incoming; } *************** *** 287,290 **** --- 347,368 ---- } + private bool Wait (ref int delay) + { + if (delay < 10) + { + delay = 10; + } + + if (delay >= Context.TIMEOUT) + { + return false; + } + + Thread.Sleep (delay); + delay *= 2; + + return true; + } + #endregion Index: Context.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/Context.cs,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Context.cs 24 Sep 2004 21:33:34 -0000 1.11 --- Context.cs 2 Feb 2005 19:25:05 -0000 1.12 *************** *** 42,45 **** --- 42,46 ---- internal const short SSL3_PROTOCOL_CODE = (0x03 << 8) | 0x00; internal const long UNIX_BASE_TICKS = 621355968000000000; + internal const int TIMEOUT = 1000; #endregion Index: SslClientStream.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** SslClientStream.cs 31 Jan 2005 14:11:29 -0000 1.23 --- SslClientStream.cs 2 Feb 2005 19:25:06 -0000 1.24 *************** *** 471,488 **** this.inputBuffer.Seek(position, SeekOrigin.Begin); } - else - { - if (record == null) - { - break; - } - } ! // TODO: Review if we need to check the Length ! // property of the innerStream for other types ! // of streams, to check that there are data available ! // for read ! if (this.innerStream is NetworkStream && ! !((NetworkStream)this.innerStream).DataAvailable) { break; --- 471,477 ---- this.inputBuffer.Seek(position, SeekOrigin.Begin); } ! if ((this.innerStream is NetworkStream && !((NetworkStream)this.innerStream).DataAvailable) || ! record == null) { break; *************** *** 491,496 **** } ! asyncResult = this.inputBuffer.BeginRead( ! buffer, offset, count, callback, state); } catch (TlsException ex) --- 480,484 ---- } ! asyncResult = this.inputBuffer.BeginRead(buffer, offset, count, callback, state); } catch (TlsException ex) |
From: Carlos G. Á. <car...@us...> - 2005-01-31 14:12:37
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/WindowsSetup In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12938 Modified Files: PgSqlClientSetup.gi2 Log Message: Updated Index: PgSqlClientSetup.gi2 =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/WindowsSetup/PgSqlClientSetup.gi2,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PgSqlClientSetup.gi2 21 Jul 2004 07:57:07 -0000 1.9 --- PgSqlClientSetup.gi2 31 Jan 2005 14:12:28 -0000 1.10 *************** *** 102,106 **** <variables> <var name="AppID" value="PgSqlClient ADO.NET Data Provider 1.0" /> ! <var name="AppName" value="PgSqlClient ADO.NET Data Provider 1.0 Beta 7" /> <var name="OutputPath" value="Output" type="normal"/> <var name="Password" type="normal"/> --- 102,106 ---- <variables> <var name="AppID" value="PgSqlClient ADO.NET Data Provider 1.0" /> ! <var name="AppName" value="PgSqlClient ADO.NET Data Provider 1.0 Release Candidate 1" /> <var name="OutputPath" value="Output" type="normal"/> <var name="Password" type="normal"/> |
From: Carlos G. Á. <car...@us...> - 2005-01-31 14:11:42
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12712 Modified Files: SslClientStream.cs Log Message: Updated Index: SslClientStream.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** SslClientStream.cs 21 Jul 2004 07:53:33 -0000 1.22 --- SslClientStream.cs 31 Jan 2005 14:11:29 -0000 1.23 *************** *** 389,392 **** --- 389,404 ---- #region Methods + public override int ReadByte() + { + byte[] buffer = new byte[1]; + + if (this.Read(buffer, 0, 1) == 1) + { + return buffer[0]; + } + + return -1; + } + public override IAsyncResult BeginRead( byte[] buffer, |
From: Carlos G. Á. <car...@us...> - 2005-01-31 14:11:12
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12562 Modified Files: RecordProtocol.cs Log Message: Updated Index: RecordProtocol.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** RecordProtocol.cs 23 Nov 2004 14:15:33 -0000 1.22 --- RecordProtocol.cs 31 Jan 2005 14:10:48 -0000 1.23 *************** *** 26,29 **** --- 26,30 ---- using System.Collections; using System.IO; + using System.Net.Sockets; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; *************** *** 81,85 **** "The session is finished and it's no longer valid."); } ! // Try to read the Record Content Type int type = this.innerStream.ReadByte(); --- 82,86 ---- "The session is finished and it's no longer valid."); } ! // Try to read the Record Content Type int type = this.innerStream.ReadByte(); |
From: Carlos G. Á. <car...@us...> - 2005-01-31 14:09:01
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12010 Modified Files: PgBaseTest.cs Log Message: Updated base unit test Index: PgBaseTest.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient.UnitTests/source/PgBaseTest.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** PgBaseTest.cs 29 Sep 2004 12:14:52 -0000 1.12 --- PgBaseTest.cs 31 Jan 2005 14:08:48 -0000 1.13 *************** *** 221,228 **** commandText = new StringBuilder(); ! commandText.Append("CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler;"); ! ! command = new PgCommand(commandText.ToString(), connection); ! command.ExecuteNonQuery(); // Create test function public.TestCount() --- 221,234 ---- commandText = new StringBuilder(); ! try ! { ! commandText.Append("CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler;"); ! ! command = new PgCommand(commandText.ToString(), connection); ! command.ExecuteNonQuery(); ! } ! catch ! { ! } // Create test function public.TestCount() *************** *** 279,283 **** private void insertTestData() { ! string commandText = "insert into public.test_table values(@int4_field, @char_field, @varchar_field, @single_field, @double_field, @date_Field, @time_field, @timestamp_field, @blob_field)"; PgTransaction transaction = connection.BeginTransaction(); --- 285,289 ---- private void insertTestData() { ! string commandText = "insert into public.test_table values(@int4_field, @char_field, @varchar_field, @single_field, @double_field, @date_Field, @time_field, @timestamp_field, @blob_field, @bool_field)"; PgTransaction transaction = connection.BeginTransaction(); *************** *** 296,299 **** --- 302,306 ---- command.Parameters.Add("@timestamp_field", PgDbType.Timestamp); command.Parameters.Add("@blob_field", PgDbType.Binary); + command.Parameters.Add("@bool_field", PgDbType.Boolean); for (int i = 0; i < 100; i++) *************** *** 308,311 **** --- 315,319 ---- command.Parameters["@timestamp_field"].Value = DateTime.Now; command.Parameters["@blob_field"].Value = Encoding.Default.GetBytes("IRow " + i.ToString()); + command.Parameters["@bool_field"].Value = true; command.ExecuteNonQuery(); |
From: Carlos G. Á. <car...@us...> - 2005-01-31 14:00:49
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9752 Modified Files: changelog.txt Log Message: 2005-01-31 Carlos Guzman Alvarez <car...@te...> * PostgreSQl.Data.PgSqlClient/NPgSqlClient/PgOutputPacket.cs: - Fixed boolean parameters support. Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changelog.txt,v retrieving revision 1.125 retrieving revision 1.126 diff -C2 -d -r1.125 -r1.126 *** changelog.txt 31 Jan 2005 13:30:28 -0000 1.125 --- changelog.txt 31 Jan 2005 14:00:39 -0000 1.126 *************** *** 4,7 **** --- 4,11 ---- 2005-01-31 Carlos Guzman Alvarez <car...@te...> + * PostgreSQl.Data.PgSqlClient/NPgSqlClient/PgOutPutPacket.cs: + + - Fixed boolean parameters support. + * PostgreSQl.Data.PgSqlClient/PgConnection.cs: |
From: Carlos G. Á. <car...@us...> - 2005-01-31 13:59:08
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8946 Modified Files: PgOutputPacket.cs Log Message: 2005-01-31 Carlos Guzman Alvarez <car...@te...> * PostgreSQl.Data.PgSqlClient/NPgSqlClient/PgOutputPacket.cs: - Fixed boolean parameters support. Index: PgOutputPacket.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgOutputPacket.cs,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** PgOutputPacket.cs 13 Oct 2004 19:57:05 -0000 1.30 --- PgOutputPacket.cs 31 Jan 2005 13:58:45 -0000 1.31 *************** *** 337,343 **** case PgDataType.Byte: case PgDataType.Boolean: packet.WriteInt(size); ! packet.Write((byte)value); break; --- 337,347 ---- case PgDataType.Byte: + packet.WriteInt(size); + packet.Write((byte)value); + break; + case PgDataType.Boolean: packet.WriteInt(size); ! packet.Write(Convert.ToByte((bool)value)); break; |
From: Carlos G. Á. <car...@us...> - 2005-01-31 13:30:40
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3048 Modified Files: changelog.txt Log Message: 2005-01-31 Carlos Guzman Alvarez <car...@te...> * PostgreSQl.Data.PgSqlClient/PgConnection.cs: - Fixed bug on Close MEthod while clearing SSL handlers. Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changelog.txt,v retrieving revision 1.124 retrieving revision 1.125 diff -C2 -d -r1.124 -r1.125 *** changelog.txt 29 Sep 2004 12:13:45 -0000 1.124 --- changelog.txt 31 Jan 2005 13:30:28 -0000 1.125 *************** *** 2,5 **** --- 2,12 ---- ------------------------------------------------------- + 2005-01-31 Carlos Guzman Alvarez <car...@te...> + + * PostgreSQl.Data.PgSqlClient/PgConnection.cs: + + - Fixed bug on Close MEthod while clearing + SSL handlers. + 2004-09-29 Carlos Guzman Alvarez <car...@te...> |
From: Carlos G. Á. <car...@us...> - 2005-01-31 13:29:49
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2865 Modified Files: PgConnection.cs Log Message: 2005-01-31 Carlos Guzman Alvarez <car...@te...> * PostgreSQl.Data.PgSqlClient/PgConnection.cs: - Fixed bug on Close MEthod while clearing SSL handlers. Index: PgConnection.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgConnection.cs,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** PgConnection.cs 29 Sep 2004 12:08:12 -0000 1.20 --- PgConnection.cs 31 Jan 2005 13:29:36 -0000 1.21 *************** *** 355,362 **** // Remove SSL handlers ! database.SslClientStream.ServerCertValidationDelegate = null; ! database.SslClientStream.ClientCertSelectionDelegate = null; ! this.ServerCertValidation = null; ! this.ClientCertSelection = null; // Dispose Active commands --- 355,365 ---- // Remove SSL handlers ! if (database.SslClientStream != null) ! { ! database.SslClientStream.ServerCertValidationDelegate = null; ! database.SslClientStream.ClientCertSelectionDelegate = null; ! } ! this.ServerCertValidation = null; ! this.ClientCertSelection = null; // Dispose Active commands |
From: Carlos G. Á. <car...@us...> - 2004-11-30 14:02:48
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17137 Modified Files: TlsClientFinished.cs Log Message: Minor change Index: TlsClientFinished.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Server/TlsClientFinished.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** TlsClientFinished.cs 21 Apr 2004 12:58:11 -0000 1.8 --- TlsClientFinished.cs 30 Nov 2004 14:02:40 -0000 1.9 *************** *** 110,113 **** --- 110,114 ---- { decryptError = true; + break; } } |
From: Carlos G. Á. <car...@us...> - 2004-11-23 14:15:50
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25406 Modified Files: RecordProtocol.cs Log Message: Updated build file Index: RecordProtocol.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** RecordProtocol.cs 17 Nov 2004 13:50:23 -0000 1.21 --- RecordProtocol.cs 23 Nov 2004 14:15:33 -0000 1.22 *************** *** 255,259 **** // Updated the LastHandshake message ! this.context.LastHandshakeMsg = HandshakeType.ClientHello; this.context.ProtocolNegotiated = true; --- 255,259 ---- // Updated the LastHandshake message ! this.context.LastHandshakeMsg = HandshakeType.ClientHello; this.context.ProtocolNegotiated = true; |
From: Carlos G. Á. <car...@us...> - 2004-11-23 14:15:22
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25264 Modified Files: PgSqlClient.build Log Message: Updated build file Index: PgSqlClient.build =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.build,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** PgSqlClient.build 21 Jul 2004 08:23:14 -0000 1.16 --- PgSqlClient.build 23 Nov 2004 14:15:00 -0000 1.17 *************** *** 129,136 **** </sources> <references> ! <absolute file="System.dll" /> ! <absolute file="System.Data.dll" /> ! <absolute file="System.Drawing.dll" /> ! <absolute file="System.XML.dll" /> </references> <arg value="/optimize+" /> --- 129,136 ---- </sources> <references> ! <include name="System.dll" /> ! <include name="System.Data.dll" /> ! <include name="System.Drawing.dll" /> ! <include name="System.XML.dll" /> </references> <arg value="/optimize+" /> *************** *** 149,157 **** </sources> <references> ! <absolute file="System.dll" /> ! <absolute file="System.Data.dll" /> ! <absolute file="System.Design.dll"/> ! <absolute file="System.Drawing.dll" /> ! <absolute file="System.XML.dll" /> <include name="${build.dir}/Mono.Security.Protocol.Tls.dll" /> </references> --- 149,157 ---- </sources> <references> ! <include name="System.dll" /> ! <include name="System.Data.dll" /> ! <include name="System.Design.dll"/> ! <include name="System.Drawing.dll" /> ! <include name="System.XML.dll" /> <include name="${build.dir}/Mono.Security.Protocol.Tls.dll" /> </references> *************** *** 227,233 **** </sources> <references> ! <absolute file="System.dll" /> ! <absolute file="System.Data.dll" /> ! <absolute file="System.XML.dll" /> <include name="${nunit.framework.dll}"/> <include name="${build.dir}/${project.FormalName}.dll" /> --- 227,233 ---- </sources> <references> ! <include name="System.dll" /> ! <include name="System.Data.dll" /> ! <include name="System.XML.dll" /> <include name="${nunit.framework.dll}"/> <include name="${build.dir}/${project.FormalName}.dll" /> |
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25757 Modified Files: PgBox.cs PgCircle.cs PgLine.cs PgLSeg.cs PgPath.cs PgPoint.cs PgPolygon.cs PgTimeSpan.cs Log Message: Actualizada la implementación de los métodos GetHashCode y Equals Index: PgTimeSpan.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgTimeSpan.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PgTimeSpan.cs 22 Jul 2004 10:59:30 -0000 1.7 --- PgTimeSpan.cs 17 Nov 2004 18:59:03 -0000 1.8 *************** *** 224,228 **** public override bool Equals(object obj) { ! if (obj is PgTimeSpan) { return ((PgTimeSpan)obj) == this; --- 224,228 ---- public override bool Equals(object obj) { ! if (obj != null && obj is PgTimeSpan) { return ((PgTimeSpan)obj) == this; Index: PgLine.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgLine.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PgLine.cs 9 Feb 2004 14:21:04 -0000 1.8 --- PgLine.cs 17 Nov 2004 18:59:03 -0000 1.9 *************** *** 105,114 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgLine) { return ((PgLine)obj) == this; --- 105,114 ---- public override int GetHashCode() { ! return this.startPoint.GetHashCode() ^ this.endPoint.GetHashCode(); } public override bool Equals(object obj) { ! if (obj != null && obj is PgLine) { return ((PgLine)obj) == this; Index: PgPoint.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgPoint.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PgPoint.cs 9 Feb 2004 14:21:04 -0000 1.8 --- PgPoint.cs 17 Nov 2004 18:59:03 -0000 1.9 *************** *** 95,104 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgPoint) { return ((PgPoint)obj) == this; --- 95,104 ---- public override int GetHashCode() { ! return (this.x.GetHashCode() ^ this.y.GetHashCode()); } public override bool Equals(object obj) { ! if (obj != null && obj is PgPoint) { return ((PgPoint)obj) == this; Index: PgLSeg.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgLSeg.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PgLSeg.cs 9 Feb 2004 14:21:04 -0000 1.9 --- PgLSeg.cs 17 Nov 2004 18:59:03 -0000 1.10 *************** *** 105,114 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgLSeg) { return ((PgLSeg)obj) == this; --- 105,114 ---- public override int GetHashCode() { ! return (this.startPoint.GetHashCode() ^ this.endPoint.GetHashCode()); } public override bool Equals(object obj) { ! if (obj != null && obj is PgLSeg) { return ((PgLSeg)obj) == this; Index: PgCircle.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgCircle.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PgCircle.cs 9 Feb 2004 14:21:04 -0000 1.8 --- PgCircle.cs 17 Nov 2004 18:59:03 -0000 1.9 *************** *** 102,111 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgCircle) { return ((PgCircle)obj) == this; --- 102,111 ---- public override int GetHashCode() { ! return this.center.GetHashCode() ^ this.radius.GetHashCode(); } public override bool Equals(object obj) { ! if (obj != null && obj is PgCircle) { return ((PgCircle)obj) == this; Index: PgPath.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgPath.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PgPath.cs 9 Feb 2004 14:21:04 -0000 1.8 --- PgPath.cs 17 Nov 2004 18:59:03 -0000 1.9 *************** *** 123,132 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgPath) { return ((PgPath)obj) == this; --- 123,132 ---- public override int GetHashCode() { ! return (this.points.GetHashCode() ^ this.isClosedPath.GetHashCode()); } public override bool Equals(object obj) { ! if (obj != null && obj is PgPath) { return ((PgPath)obj) == this; Index: PgPolygon.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgPolygon.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PgPolygon.cs 9 Feb 2004 14:21:04 -0000 1.9 --- PgPolygon.cs 17 Nov 2004 18:59:03 -0000 1.10 *************** *** 116,125 **** public override int GetHashCode() { ! return base.GetHashCode(); } public override bool Equals(object obj) { ! if (obj is PgPolygon) { return ((PgPolygon)obj) == this; --- 116,125 ---- public override int GetHashCode() { ! return (this.points.GetHashCode()); } public override bool Equals(object obj) { ! if (obj != null && obj is PgPolygon) { return ((PgPolygon)obj) == this; Index: PgBox.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTypes/PgBox.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** PgBox.cs 9 Feb 2004 14:21:04 -0000 1.10 --- PgBox.cs 17 Nov 2004 18:59:03 -0000 1.11 *************** *** 105,109 **** public override int GetHashCode() { ! return base.GetHashCode(); } --- 105,109 ---- public override int GetHashCode() { ! return (this.UpperRight.GetHashCode() ^ this.LowerLeft.GetHashCode()); } |