Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source
In directory sc8-pr-cvs1:/tmp/cvs-serv23266
Modified Files:
TlsCipherSuite.cs TlsCipherSuiteCollection.cs TlsReader.cs
Log Message:
- Fixed client finished message.
- Fixed server handshake hashes generation with new processing method.
Index: TlsCipherSuite.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsCipherSuite.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TlsCipherSuite.cs 1 Sep 2003 10:19:44 -0000 1.7
--- TlsCipherSuite.cs 14 Sep 2003 10:49:08 -0000 1.8
***************
*** 145,150 ****
public RSACryptoServiceProvider CreateRSA(X509Certificate certificate)
{
- // This code is from Mono.Security.X509Certificate class.
-
RSAParameters rsaParams = new RSAParameters();
--- 145,148 ----
***************
*** 289,293 ****
// however we can't feed it into RSAParameters or DSAParameters
int length = integer.Length - 1;
! byte[] uinteger = new byte[length];
Array.Copy(integer, 1, uinteger, 0, length);
--- 287,291 ----
// however we can't feed it into RSAParameters or DSAParameters
int length = integer.Length - 1;
! byte[] uinteger = new byte[length];
Array.Copy(integer, 1, uinteger, 0, length);
Index: TlsCipherSuiteCollection.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsCipherSuiteCollection.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TlsCipherSuiteCollection.cs 1 Sep 2003 10:19:44 -0000 1.7
--- TlsCipherSuiteCollection.cs 14 Sep 2003 10:49:08 -0000 1.8
***************
*** 59,63 ****
scs.Add((0x00 << 0x08) | 0x05, "TLS_RSA_WITH_RC4_128_SHA", "RC4", "SHA", false, false, 16, 16, 128, 0, 0);
scs.Add((0x00 << 0x08) | 0x04, "TLS_RSA_WITH_RC4_128_MD5", "RC4", "MD5", false, false, 16, 16, 128, 0, 0);
!
// Default CipherSuite
// scs.Add(0, "TLS_NULL_WITH_NULL_NULL", "", "", true, false, 0, 0, 0, 0, 0);
--- 59,63 ----
scs.Add((0x00 << 0x08) | 0x05, "TLS_RSA_WITH_RC4_128_SHA", "RC4", "SHA", false, false, 16, 16, 128, 0, 0);
scs.Add((0x00 << 0x08) | 0x04, "TLS_RSA_WITH_RC4_128_MD5", "RC4", "MD5", false, false, 16, 16, 128, 0, 0);
!
// Default CipherSuite
// scs.Add(0, "TLS_NULL_WITH_NULL_NULL", "", "", true, false, 0, 0, 0, 0, 0);
Index: TlsReader.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsReader.cs,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** TlsReader.cs 13 Sep 2003 10:23:10 -0000 1.16
--- TlsReader.cs 14 Sep 2003 10:49:09 -0000 1.17
***************
*** 389,392 ****
--- 389,394 ----
processHandshakeMessage(message);
}
+ // Update handshakes of current messages
+ this.session.HandshakeHashes.Update(message.GetBytes());
break;
***************
*** 405,408 ****
--- 407,412 ----
{
short val = base.ReadInt16();
+
+
return System.Net.IPAddress.HostToNetworkOrder(val);
|