[pgsqlclient-checkins] pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls Alert.c
Status: Inactive
Brought to you by:
carlosga_fb
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1823/Mono.Security.Protocol.Tls Modified Files: Alert.cs CipherAlgorithmType.cs CipherSuite.cs CipherSuiteCollection.cs CipherSuiteFactory.cs ClientContext.cs ClientRecordProtocol.cs ContentType.cs Context.cs DebugHelper.cs ExchangeAlgorithmType.cs HandshakeState.cs HashAlgorithmType.cs RSASslSignatureDeformatter.cs RSASslSignatureFormatter.cs RecordProtocol.cs SecurityCompressionType.cs SecurityProtocolType.cs ServerContext.cs ServerRecordProtocol.cs SslCipherSuite.cs SslClientStream.cs SslHandshakeHash.cs SslServerStream.cs TlsCipherSuite.cs TlsClientSettings.cs TlsException.cs TlsServerSettings.cs TlsStream.cs Log Message: Update with the same sources existente in the Mono SVN Index: HashAlgorithmType.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/HashAlgorithmType.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** HashAlgorithmType.cs 18 Feb 2004 15:41:42 -0000 1.2 --- HashAlgorithmType.cs 4 Apr 2005 21:10:49 -0000 1.3 *************** *** 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: ClientContext.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/ClientContext.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ClientContext.cs 10 Apr 2004 21:44:02 -0000 1.4 --- ClientContext.cs 4 Apr 2005 21:10:49 -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: TlsStream.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/TlsStream.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TlsStream.cs 10 Apr 2004 21:44:02 -0000 1.3 --- TlsStream.cs 4 Apr 2005 21:10:50 -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: TlsCipherSuite.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/TlsCipherSuite.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** TlsCipherSuite.cs 21 Apr 2004 12:49:21 -0000 1.9 --- TlsCipherSuite.cs 4 Apr 2005 21:10:50 -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: ServerRecordProtocol.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/ServerRecordProtocol.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ServerRecordProtocol.cs 30 Apr 2004 11:58:14 -0000 1.7 --- ServerRecordProtocol.cs 4 Apr 2005 21:10:49 -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: CipherSuite.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/CipherSuite.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** CipherSuite.cs 26 Apr 2004 09:18:45 -0000 1.13 --- CipherSuite.cs 4 Apr 2005 21:10:49 -0000 1.14 *************** *** 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; *************** *** 371,377 **** public byte[] PRF(byte[] secret, string label, byte[] data, int length) { - HashAlgorithm md5 = MD5.Create(); - HashAlgorithm sha1 = SHA1.Create(); - /* Secret Length calc exmplain from the RFC2246. Section 5 * --- 371,374 ---- *************** *** 594,596 **** #endregion } ! } \ No newline at end of file --- 591,593 ---- #endregion } ! } Index: CipherSuiteCollection.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/CipherSuiteCollection.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** CipherSuiteCollection.cs 26 Apr 2004 09:18:45 -0000 1.4 --- CipherSuiteCollection.cs 4 Apr 2005 21:10:49 -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: DebugHelper.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/DebugHelper.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DebugHelper.cs 21 Apr 2004 12:51:33 -0000 1.1 --- DebugHelper.cs 4 Apr 2005 21:10:49 -0000 1.2 *************** *** 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; *************** *** 37,42 **** if (!isInitialized) { ! // Debug.Listeners.Add(new TextWriterTraceListener(Console.Out)); ! Debug.Listeners.Add(new TextWriterTraceListener(@"c:\ssl.log")); Debug.AutoFlush = true; Debug.Indent(); --- 37,42 ---- if (!isInitialized) { ! Debug.Listeners.Add(new TextWriterTraceListener(Console.Out)); ! // Debug.Listeners.Add(new TextWriterTraceListener(@"c:\ssl.log")); Debug.AutoFlush = true; Debug.Indent(); Index: RSASslSignatureFormatter.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RSASslSignatureFormatter.cs 10 Apr 2004 21:44:02 -0000 1.2 --- RSASslSignatureFormatter.cs 4 Apr 2005 21:10:49 -0000 1.3 *************** *** 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: CipherSuiteFactory.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/CipherSuiteFactory.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CipherSuiteFactory.cs 17 Nov 2004 13:50:21 -0000 1.3 --- CipherSuiteFactory.cs 4 Apr 2005 21:10:49 -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; *************** *** 132,138 **** // Supported ciphers ! scs.Add((0x00 << 0x08) | 0x35, "SSL_RSA_WITH_AES_256_CBC_SHA", CipherAlgorithmType.Rijndael, HashAlgorithmType.Sha1, ExchangeAlgorithmType.RsaSign, false, true, 32, 32, 256, 16, 16); ! scs.Add((0x00 << 0x08) | 0x0A, "SSL_RSA_WITH_3DES_EDE_CBC_SHA", CipherAlgorithmType.TripleDes, HashAlgorithmType.Sha1, ExchangeAlgorithmType.RsaSign, false, true, 24, 24, 168, 8, 8); scs.Add((0x00 << 0x08) | 0x0A, "SSL_RSA_WITH_3DES_EDE_CBC_SHA", CipherAlgorithmType.TripleDes, HashAlgorithmType.Sha1, ExchangeAlgorithmType.RsaSign, false, true, 24, 24, 168, 8, 8); ! scs.Add((0x00 << 0x08) | 0x05, "SSL_RSA_WITH_RC4_128_SHA", CipherAlgorithmType.Rc4, HashAlgorithmType.Sha1, ExchangeAlgorithmType.RsaSign, false, false, 16, 16, 128, 0, 0); scs.Add((0x00 << 0x08) | 0x04, "SSL_RSA_WITH_RC4_128_MD5", CipherAlgorithmType.Rc4, HashAlgorithmType.Md5, ExchangeAlgorithmType.RsaSign, false, false, 16, 16, 128, 0, 0); scs.Add((0x00 << 0x08) | 0x09, "SSL_RSA_WITH_DES_CBC_SHA", CipherAlgorithmType.Des, HashAlgorithmType.Sha1, ExchangeAlgorithmType.RsaSign, false, true, 8, 8, 56, 8, 8); --- 132,138 ---- // Supported ciphers ! scs.Add((0x00 << 0x08) | 0x35, "SSL_RSA_WITH_AES_256_CBC_SHA", CipherAlgorithmType.Rijndael, HashAlgorithmType.Sha1, ExchangeAlgorithmType.RsaSign, false, true, 32, 32, 256, 16, 16); ! scs.Add((0x00 << 0x08) | 0x0A, "SSL_RSA_WITH_3DES_EDE_CBC_SHA", CipherAlgorithmType.TripleDes, HashAlgorithmType.Sha1, ExchangeAlgorithmType.RsaSign, false, true, 24, 24, 168, 8, 8); ! scs.Add((0x00 << 0x08) | 0x05, "SSL_RSA_WITH_RC4_128_SHA", CipherAlgorithmType.Rc4, HashAlgorithmType.Sha1, ExchangeAlgorithmType.RsaSign, false, false, 16, 16, 128, 0, 0); scs.Add((0x00 << 0x08) | 0x04, "SSL_RSA_WITH_RC4_128_MD5", CipherAlgorithmType.Rc4, HashAlgorithmType.Md5, ExchangeAlgorithmType.RsaSign, false, false, 16, 16, 128, 0, 0); scs.Add((0x00 << 0x08) | 0x09, "SSL_RSA_WITH_DES_CBC_SHA", CipherAlgorithmType.Des, HashAlgorithmType.Sha1, ExchangeAlgorithmType.RsaSign, false, true, 8, 8, 56, 8, 8); Index: SslClientStream.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** SslClientStream.cs 8 Feb 2005 21:20:32 -0000 1.26 --- SslClientStream.cs 4 Apr 2005 21:10:49 -0000 1.27 *************** *** 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; *************** *** 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 --- 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 *************** *** 105,108 **** --- 105,112 ---- } + // required by HttpsClientStream for proxy support + internal Stream InputBuffer { + get { return inputBuffer; } + } #endregion *************** *** 233,236 **** --- 237,245 ---- } + // this is used by Mono's certmgr tool to download certificates + internal Mono.Security.X509.X509CertificateCollection ServerCertificates { + get { return context.ServerSettings.Certificates; } + } + #endregion *************** *** 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()) { } --- 268,309 ---- #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()) { } *************** *** 306,315 **** clientCertificates); ! this.inputBuffer = new MemoryStream(); this.innerStream = stream; this.ownsStream = ownsStream; ! this.read = new object(); ! this.write = new object(); ! this.protocol = new ClientRecordProtocol(innerStream, context); } --- 335,344 ---- clientCertificates); ! this.inputBuffer = new BufferedStream(new MemoryStream()); this.innerStream = stream; this.ownsStream = ownsStream; ! this.read = new object (); ! this.write = new object (); ! this.protocol = new ClientRecordProtocol(innerStream, context); } *************** *** 369,384 **** #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, --- 398,401 ---- *************** *** 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; --- 458,485 ---- 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); ! } ! 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; *************** *** 461,465 **** } ! asyncResult = this.inputBuffer.BeginRead(buffer, offset, count, callback, state); } catch (TlsException ex) --- 488,493 ---- } ! asyncResult = this.inputBuffer.BeginRead( ! buffer, offset, count, callback, state); } catch (TlsException ex) *************** *** 719,730 **** catch (TlsException ex) { ! try ! { ! this.protocol.SendAlert(ex.Alert); ! this.Close(); ! } ! catch ! { ! } throw new IOException("The authentication or decryption has failed."); --- 747,752 ---- catch (TlsException ex) { ! this.protocol.SendAlert(ex.Alert); ! 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."); --- 754,759 ---- catch (Exception) { ! this.protocol.SendAlert(AlertDescription.InternalError); ! this.Close(); throw new IOException("The authentication or decryption has failed."); *************** *** 794,796 **** #endregion } ! } \ No newline at end of file --- 810,812 ---- #endregion } ! } Index: SslHandshakeHash.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslHandshakeHash.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SslHandshakeHash.cs 10 Apr 2004 21:44:02 -0000 1.4 --- SslHandshakeHash.cs 4 Apr 2005 21:10:49 -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: RSASslSignatureDeformatter.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RSASslSignatureDeformatter.cs 10 Apr 2004 21:44:02 -0000 1.2 --- RSASslSignatureDeformatter.cs 4 Apr 2005 21:10:49 -0000 1.3 *************** *** 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: SecurityCompressionType.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SecurityCompressionType.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SecurityCompressionType.cs 26 Apr 2004 09:18:45 -0000 1.2 --- SecurityCompressionType.cs 4 Apr 2005 21:10:49 -0000 1.3 *************** *** 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: SecurityProtocolType.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SecurityProtocolType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SecurityProtocolType.cs 18 Feb 2004 15:28:13 -0000 1.3 --- SecurityProtocolType.cs 4 Apr 2005 21:10:49 -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: TlsClientSettings.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/TlsClientSettings.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TlsClientSettings.cs 26 Apr 2004 09:18:45 -0000 1.3 --- TlsClientSettings.cs 4 Apr 2005 21:10:50 -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: CipherAlgorithmType.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/CipherAlgorithmType.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CipherAlgorithmType.cs 18 Feb 2004 15:41:41 -0000 1.2 --- CipherAlgorithmType.cs 4 Apr 2005 21:10:49 -0000 1.3 *************** *** 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 A... [truncated message content] |