[pgsqlclient-checkins] pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake TlsServerCertificate
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-10-08 20:27:08
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake In directory sc8-pr-cvs1:/tmp/cvs-serv19988 Modified Files: TlsServerCertificate.cs Log Message: Fixed certificate chain read Index: TlsServerCertificate.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake/TlsServerCertificate.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TlsServerCertificate.cs 3 Oct 2003 19:09:56 -0000 1.7 --- TlsServerCertificate.cs 8 Oct 2003 20:27:05 -0000 1.8 *************** *** 69,79 **** // Read Length int length = Reader.ReadInt24(); ! int count = 0; while (count < length) { - // Skip next 3 bytes - int skip = Reader.ReadInt24(); - // Read certificate length int certLength = Reader.ReadInt24(); --- 69,79 ---- // Read Length int length = Reader.ReadInt24(); ! int count = 3; ! ! // Skip next 3 bytes ! int skip = Reader.ReadInt24(); while (count < length) { // Read certificate length int certLength = Reader.ReadInt24(); *************** *** 85,89 **** certificates.Add(certificate); ! count += skip + 3; validateCertificate(certificate); --- 85,89 ---- certificates.Add(certificate); ! count += certLength + 3; validateCertificate(certificate); |