Author: spouliot
Date: 2005-04-12 14:32:13 -0400 (Tue, 12 Apr 2005)
New Revision: 42862

Modified:
   
branches/mono-1-0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/ChangeLog
   
branches/mono-1-0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs
Log:
2005-04-12  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * TlsClientCertificateVerify.cs: Add missing data length (16 bits - 
        not to be confused with the record 24 bits length) before the RSA
        signature of the MD5SHA1 hash. Fix #71696.



Modified: 
branches/mono-1-0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/ChangeLog
===================================================================
--- 
branches/mono-1-0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/ChangeLog
     2005-04-12 18:31:34 UTC (rev 42861)
+++ 
branches/mono-1-0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/ChangeLog
     2005-04-12 18:32:13 UTC (rev 42862)
@@ -1,3 +1,9 @@
+2005-04-12  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * TlsClientCertificateVerify.cs: Add missing data length (16 bits - 
+       not to be confused with the record 24 bits length) before the RSA
+       signature of the MD5SHA1 hash. Fix #71696.
+
 2004-11-10  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        *.cs: Remove duplicate license header so sources matches with HEAD.

Modified: 
branches/mono-1-0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs
===================================================================
--- 
branches/mono-1-0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs
 2005-04-12 18:31:34 UTC (rev 42861)
+++ 
branches/mono-1-0/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs
 2005-04-12 18:32:13 UTC (rev 42862)
@@ -79,7 +79,9 @@
                                RSA rsa = this.getClientCertRSA((RSA)privKey);
 
                                // Write message
-                               this.Write(hash.CreateSignature(rsa));
+                               byte[] signature = hash.CreateSignature(rsa);
+                               this.Write((short)signature.Length);
+                               this.Write(signature, 0, signature.Length);
                        }
                }
 
@@ -110,7 +112,9 @@
                                RSA rsa = this.getClientCertRSA((RSA)privKey);
 
                                // Write message
-                               this.Write(hash.CreateSignature(rsa));
+                               byte[] signature = hash.CreateSignature(rsa);
+                               this.Write((short)signature.Length);
+                               this.Write(signature, 0, signature.Length);
                        }
                }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to