Author: spouliot
Date: 2005-04-12 14:24:45 -0400 (Tue, 12 Apr 2005)
New Revision: 42858

Modified:
   
trunk/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/ChangeLog
   
trunk/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: 
trunk/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/ChangeLog
===================================================================
--- 
trunk/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/ChangeLog
 2005-04-12 18:22:47 UTC (rev 42857)
+++ 
trunk/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/ChangeLog
 2005-04-12 18:24:45 UTC (rev 42858)
@@ -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-05-11 Carlos Guzman Alvarez  <[EMAIL PROTECTED]>
 
        * Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:

Modified: 
trunk/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs
===================================================================
--- 
trunk/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs
     2005-04-12 18:22:47 UTC (rev 42857)
+++ 
trunk/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs
     2005-04-12 18:24:45 UTC (rev 42858)
@@ -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