Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client
In directory sc8-pr-cvs1:/tmp/cvs-serv16987
Modified Files:
TlsClientCertificateVerify.cs
Log Message:
Fixed message
Index: TlsClientCertificateVerify.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls.Handshake/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** TlsClientCertificateVerify.cs 25 Nov 2003 12:36:06 -0000 1.13
--- TlsClientCertificateVerify.cs 7 Dec 2003 15:00:57 -0000 1.14
***************
*** 61,85 ****
protected override void ProcessAsTls1()
{
! foreach (X509Certificate cert in this.Context.ClientSettings.Certificates)
! {
! MD5SHA1 hash = new MD5SHA1();
! X509.X509Certificate c = new X509.X509Certificate(cert.GetRawCertData());
! RSA rsa = c.RSA;
! RSAParameters p = rsa.ExportParameters(false);
! TlsStream data = new TlsStream();
!
! data.Write(this.Context.RandomCS);
! data.Write((short)p.Modulus.Length);
! data.Write(p.Modulus);
! data.Write((short)p.Exponent.Length);
! data.Write(p.Exponent);
!
! hash.ComputeHash(data.ToArray(), 0, (int)data.Length);
!
! data.Reset();
! // Write the signature
! Write(hash.CreateSignature(rsa));
! }
}
--- 61,73 ----
protected override void ProcessAsTls1()
{
! // Compute handshake messages hash
! HashAlgorithm hash = new MD5SHA1();
! hash.ComputeHash(
! this.Context.HandshakeMessages.ToArray(),
! 0,
! (int)this.Context.HandshakeMessages.Length);
! // Write message
! Write(hash.Hash);
}
|