[pgsqlclient-checkins] pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls.Handsha
Status: Inactive
Brought to you by:
carlosga_fb
From: Carlos Guzm?n ?l. <car...@us...> - 2004-03-18 14:15:07
|
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-serv4903 Modified Files: TlsClientKeyExchange.cs Log Message: 2004-03-18 Sebastien Pouliot <seb...@xi...> * Mono.Security.Protocol.Tls/CipherSuite.cs: * Mono.Security.Protocol.Tls/CipherSuiteFactory.cs: * Mono.Security.Protocol.Tls/SslCipherSuite.cs: * Mono.Security.Protocol.Tls/TlsCipherSuite.cs: * Mono.Security.Protocol.Tls.Handshake.Client/TlsClientKeyExchange.cs: - Added Support for exportable Cipher Suites. 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.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TlsClientKeyExchange.cs 4 Mar 2004 15:39:45 -0000 1.4 --- TlsClientKeyExchange.cs 18 Mar 2004 14:05:29 -0000 1.5 *************** *** 27,30 **** --- 27,32 ---- using System.Security.Cryptography; + using Mono.Security.Cryptography; + namespace Mono.Security.Protocol.Tls.Handshake.Client { *************** *** 48,52 **** // Create a new RSA key ! RSA rsa = this.Context.Cipher.CertificateRSA(); // Encrypt premaster_sercret --- 50,64 ---- // Create a new RSA key ! RSA rsa = null; ! if (this.Context.ServerSettings.ServerKeyExchange) ! { ! // this is the case for "exportable" ciphers ! rsa = new RSAManaged (); ! rsa.ImportParameters (this.Context.ServerSettings.RsaParameters); ! } ! else ! { ! rsa = this.Context.Cipher.CertificateRSA(); ! } // Encrypt premaster_sercret *************** *** 73,77 **** // Create a new RSA key ! RSA rsa = this.Context.Cipher.CertificateRSA(); // Encrypt premaster_sercret --- 85,99 ---- // Create a new RSA key ! RSA rsa = null; ! if (this.Context.ServerSettings.ServerKeyExchange) ! { ! // this is the case for "exportable" ciphers ! rsa = new RSAManaged (); ! rsa.ImportParameters (this.Context.ServerSettings.RsaParameters); ! } ! else ! { ! rsa = this.Context.Cipher.CertificateRSA(); ! } // Encrypt premaster_sercret |