[pgsqlclient-checkins] pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls TlsSessi
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-10-20 22:56:53
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1:/tmp/cvs-serv8934 Modified Files: TlsSession.cs TlsSessionContext.cs TlsSocket.cs Log Message: * TlsSessionContext.cs: - Added new MAX_FRAGMENT_SIZE constant. * TlsSession.cs: - Removed MaxFragmentSize property. * TlsSocket.cs: - Replaced use of TlsSesison.MaxFragmentSize by TlsSessionContext.MAX_FAGMENT_SIZE Index: TlsSession.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/TlsSession.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TlsSession.cs 20 Oct 2003 21:38:01 -0000 1.5 --- TlsSession.cs 20 Oct 2003 22:00:28 -0000 1.6 *************** *** 112,120 **** } - internal short MaxFragmentSize - { - get { return (short)System.Math.Pow(2, 14); } - } - #endregion --- 112,115 ---- Index: TlsSessionContext.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/TlsSessionContext.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TlsSessionContext.cs 20 Oct 2003 18:21:43 -0000 1.6 --- TlsSessionContext.cs 20 Oct 2003 22:00:29 -0000 1.7 *************** *** 72,75 **** --- 72,81 ---- #endregion + #region INTERNAL_CONSTANTS + + internal const short MAX_FRAGMENT_SIZE = 16384; // 2^14 + + #endregion + #region PROPERTIES Index: TlsSocket.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/TlsSocket.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TlsSocket.cs 14 Oct 2003 10:13:58 -0000 1.4 --- TlsSocket.cs 20 Oct 2003 22:00:32 -0000 1.5 *************** *** 426,432 **** short fragmentLength = 0; byte[] fragmentData; ! if ((messageData.Length - position) > session.MaxFragmentSize) { ! fragmentLength = session.MaxFragmentSize; } else --- 426,432 ---- short fragmentLength = 0; byte[] fragmentData; ! if ((messageData.Length - position) > TlsSessionContext.MAX_FRAGMENT_SIZE) { ! fragmentLength = TlsSessionContext.MAX_FRAGMENT_SIZE; } else |