[Mono-devel-list] [PATCH] SslCipherSuite sequence #
Carlos Guzmán Álvarez
carlosga at telefonica.net
Tue Apr 5 09:18:38 EDT 2005
Hello:
>If Carlos is also ok on the patch then it will be committed shortly.
>
I think the patch should look like the above one(sorry for send it in
CVS format), what will left that code as in the TlsCipherSuite.
( I have tested it against PostgreSQL 8.0 using SSL3. )
Opinions ??
Index: SslCipherSuite.cs
===================================================================
RCS file:
/cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/SslCipherSuite.cs,v
retrieving revision 1.7
diff -u -r1.7 SslCipherSuite.cs
--- SslCipherSuite.cs 5 Apr 2005 13:01:02 -0000 1.7
+++ SslCipherSuite.cs 5 Apr 2005 13:16:22 -0000
@@ -80,14 +80,16 @@
block.Write(this.Context.ServerWriteMAC);
block.Write(this.pad1);
+
if (this.Context is ClientContext)
{
- block.Write(this.Context.WriteSequenceNumber);
+ block.Write(this.Context.ReadSequenceNumber);
}
else
{
- block.Write(this.Context.ReadSequenceNumber);
+ block.Write(this.Context.WriteSequenceNumber);
}
+
block.Write((byte)contentType);
block.Write((short)fragment.Length);
block.Write(fragment);
@@ -116,14 +118,16 @@
block.Write(this.Context.ClientWriteMAC);
block.Write(this.pad1);
+
if (this.Context is ClientContext)
{
- block.Write(this.Context.ReadSequenceNumber);
+ block.Write(this.Context.WriteSequenceNumber);
}
else
{
- block.Write(this.Context.WriteSequenceNumber);
+ block.Write(this.Context.ReadSequenceNumber);
}
+
block.Write((byte)contentType);
block.Write((short)fragment.Length);
block.Write(fragment);
***** CVS exited normally with code 1 *****
--
Best regards
Carlos Guzmán Álvarez
Vigo-Spain
"Todos somos muy ignorantes. Lo que ocurre
es que no todos ignoramos las mismas cosas." Albert Einstein
More information about the Mono-devel-list
mailing list