pgsqlclient-checkins Mailing List for PostgreSqlClient (Page 42)
Status: Inactive
Brought to you by:
carlosga_fb
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(120) |
Aug
(95) |
Sep
(95) |
Oct
(213) |
Nov
(114) |
Dec
(64) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(6) |
Feb
(134) |
Mar
(88) |
Apr
(28) |
May
(22) |
Jun
(15) |
Jul
(23) |
Aug
(2) |
Sep
(15) |
Oct
(2) |
Nov
(6) |
Dec
|
| 2005 |
Jan
(8) |
Feb
(6) |
Mar
|
Apr
(42) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(84) |
Oct
|
Nov
|
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
(84) |
Apr
(46) |
May
(40) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <car...@us...> - 2003-10-08 12:20:14
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake In directory sc8-pr-cvs1:/tmp/cvs-serv13662 Added Files: TlsClientCertificate.cs TlsClientCertificateVerify.cs Log Message: - Added some code reorganization. - Started the work to implement Client Certificate and Client certificate verify handshake messages. --- NEW FILE: TlsClientCertificate.cs --- (This appears to be a binary file; contents omitted.) --- NEW FILE: TlsClientCertificateVerify.cs --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake
In directory sc8-pr-cvs1:/tmp/cvs-serv13155
Modified Files:
TlsClientCertificateType.cs TlsClientFinished.cs
TlsClientHandshakeMessage.cs TlsServerFinished.cs
Log Message:
- Added some code reorganization.
- Started the work to implement Client Certificate and Client certificate verify handshake messages.
Index: TlsClientCertificateType.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake/TlsClientCertificateType.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TlsClientCertificateType.cs 1 Sep 2003 10:21:20 -0000 1.2
--- TlsClientCertificateType.cs 8 Oct 2003 12:17:20 -0000 1.3
***************
*** 21,25 ****
namespace System.Security.Tls.Handshake
{
! public enum TlsClientCertificateType
{
RSA = 1,
--- 21,25 ----
namespace System.Security.Tls.Handshake
{
! internal enum TlsClientCertificateType
{
RSA = 1,
Index: TlsClientFinished.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake/TlsClientFinished.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TlsClientFinished.cs 16 Sep 2003 12:29:08 -0000 1.4
--- TlsClientFinished.cs 8 Oct 2003 12:17:20 -0000 1.5
***************
*** 27,33 ****
public TlsClientFinished(TlsSession session)
! : base(session,
! TlsHandshakeType.Finished,
! TlsContentType.Handshake)
{
}
--- 27,31 ----
public TlsClientFinished(TlsSession session)
! : base(session, TlsHandshakeType.Finished, TlsContentType.Handshake)
{
}
***************
*** 51,56 ****
TlsStreamWriter hashes = new TlsStreamWriter();
! hashes.Write(Session.HandshakeHashes.GetMD5Hash());
! hashes.Write(Session.HandshakeHashes.GetSHAHash());
Write(Session.Context.PRF(Session.Context.MasterSecret, "client finished", hashes.GetBytes(), 12));
--- 49,54 ----
TlsStreamWriter hashes = new TlsStreamWriter();
! hashes.Write(Session.Context.HandshakeHashes.GetMD5Hash());
! hashes.Write(Session.Context.HandshakeHashes.GetSHAHash());
Write(Session.Context.PRF(Session.Context.MasterSecret, "client finished", hashes.GetBytes(), 12));
***************
*** 58,62 ****
hashes.Reset();
! Session.HandshakeHashes.Reset();
}
--- 56,60 ----
hashes.Reset();
! Session.Context.HandshakeHashes.Reset();
}
Index: TlsClientHandshakeMessage.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake/TlsClientHandshakeMessage.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TlsClientHandshakeMessage.cs 15 Sep 2003 10:24:17 -0000 1.4
--- TlsClientHandshakeMessage.cs 8 Oct 2003 12:17:20 -0000 1.5
***************
*** 80,84 ****
public virtual void UpdateSession()
{
! this.session.HandshakeHashes.Update(this.EncodeMessage());
this.Reset();
}
--- 80,84 ----
public virtual void UpdateSession()
{
! this.session.Context.HandshakeHashes.Update(this.EncodeMessage());
this.Reset();
}
Index: TlsServerFinished.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake/TlsServerFinished.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** TlsServerFinished.cs 16 Sep 2003 12:29:08 -0000 1.6
--- TlsServerFinished.cs 8 Oct 2003 12:17:20 -0000 1.7
***************
*** 53,58 ****
TlsStreamWriter hashes = new TlsStreamWriter();
! hashes.Write(Session.HandshakeHashes.GetMD5Hash());
! hashes.Write(Session.HandshakeHashes.GetSHAHash());
byte[] clientPRF = Session.Context.PRF(Session.Context.MasterSecret, "server finished", hashes.GetBytes(), 12);
--- 53,58 ----
TlsStreamWriter hashes = new TlsStreamWriter();
! hashes.Write(Session.Context.HandshakeHashes.GetMD5Hash());
! hashes.Write(Session.Context.HandshakeHashes.GetSHAHash());
byte[] clientPRF = Session.Context.PRF(Session.Context.MasterSecret, "server finished", hashes.GetBytes(), 12);
***************
*** 73,77 ****
}
! Session.HandshakeHashes.Clear();
}
--- 73,77 ----
}
! Session.Context.HandshakeHashes.Clear();
}
|
|
From: <car...@us...> - 2003-10-08 12:16:51
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source
In directory sc8-pr-cvs1:/tmp/cvs-serv13048
Modified Files:
TlsSession.cs TlsSessionContext.cs TlsSocket.cs
Log Message:
- Added some code reorganization.
- Started the work to implement Client Certificate and Client certificate verify handshake messages.
Index: TlsSession.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsSession.cs,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** TlsSession.cs 3 Oct 2003 19:09:44 -0000 1.21
--- TlsSession.cs 8 Oct 2003 12:16:47 -0000 1.22
***************
*** 27,31 ****
using System.Security.Tls.Cryptography;
using System.Security.Tls.Alerts;
! using System.Security.Tls.Handshake;
namespace System.Security.Tls
--- 27,31 ----
using System.Security.Tls.Cryptography;
using System.Security.Tls.Alerts;
! // using System.Security.Tls.Handshake;
namespace System.Security.Tls
***************
*** 47,51 ****
private TlsSessionSettings settings;
private TlsCipherSuiteCollection supportedCiphers;
- private TlsHandshakeHashes handshakeHashes;
private TlsSocket socket;
private TlsNetworkStream networkStream;
--- 47,50 ----
***************
*** 70,79 ****
get { return supportedCiphers; }
}
!
! internal TlsHandshakeHashes HandshakeHashes
! {
! get { return handshakeHashes; }
! }
!
internal bool HelloDone
{
--- 69,73 ----
get { return supportedCiphers; }
}
!
internal bool HelloDone
{
***************
*** 113,117 ****
this.settings = settings;
this.context = new TlsSessionContext();
- this.handshakeHashes = new TlsHandshakeHashes();
this.sessionId = new byte[0];
--- 107,110 ----
***************
*** 198,251 ****
#endregion
- #region HANDSHAKE_MESSAGE_CREATION_METHODS
-
- internal TlsClientHandshakeMessage CreateClientHandshakeMessage(TlsHandshakeType type)
- {
- switch (type)
- {
- case TlsHandshakeType.ClientHello:
- return new TlsClientHello(this);
-
- case TlsHandshakeType.ClientKeyExchange:
- return new TlsClientKeyExchange(this);
-
- case TlsHandshakeType.Finished:
- return new TlsClientFinished(this);
-
- default:
- throw new InvalidOperationException("Unknown client handshake message type: " + type.ToString() );
- }
- }
-
- internal TlsServerHandshakeMessage CreateServerHandshakeMessage(TlsHandshakeType type, TlsStreamReader handMsg)
- {
- switch (type)
- {
- case TlsHandshakeType.Certificate:
- return new TlsServerCertificate(this, handMsg);
-
- case TlsHandshakeType.CertificateRequest:
- return new TlsServerCertificateRequest(this, handMsg);
-
- case TlsHandshakeType.ServerHello:
- return new TlsServerHello(this, handMsg);
-
- case TlsHandshakeType.ServerHelloDone:
- return new TlsServerHelloDone(this, handMsg);
-
- case TlsHandshakeType.ServerKeyExchange:
- return new TlsServerKeyExchange(this, handMsg);
-
- case TlsHandshakeType.Finished:
- return new TlsServerFinished(this, handMsg);
-
- default:
- throw CreateException("Unknown server handshake message received ({0})", type.ToString());
- }
- }
-
-
- #endregion
-
#region INTERNAL_METHODS
--- 191,194 ----
***************
*** 301,305 ****
this.handshakeFinished = false;
this.context = new TlsSessionContext();
- this.handshakeHashes = new TlsHandshakeHashes();
this.sessionId = new byte[0];
}
--- 244,247 ----
Index: TlsSessionContext.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsSessionContext.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TlsSessionContext.cs 16 Sep 2003 12:28:03 -0000 1.1
--- TlsSessionContext.cs 8 Oct 2003 12:16:47 -0000 1.2
***************
*** 22,25 ****
--- 22,26 ----
using System.Security.Tls.Cryptography;
+ using System.Security.Tls.Handshake;
namespace System.Security.Tls
***************
*** 31,34 ****
--- 32,37 ----
private TlsServerSettings serverSettings;
+ private TlsHandshakeHashes handshakeHashes;
+
private bool connectionEnd;
private TlsCipherSuite cipher;
***************
*** 66,69 ****
--- 69,77 ----
}
+ public TlsHandshakeHashes HandshakeHashes
+ {
+ get { return handshakeHashes; }
+ }
+
public TlsCipherSuite Cipher
{
***************
*** 156,160 ****
public TlsSessionContext()
{
! serverSettings = new TlsServerSettings();
}
--- 164,169 ----
public TlsSessionContext()
{
! this.serverSettings = new TlsServerSettings();
! this.handshakeHashes = new TlsHandshakeHashes();
}
Index: TlsSocket.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsSocket.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TlsSocket.cs 3 Oct 2003 19:09:44 -0000 1.7
--- TlsSocket.cs 8 Oct 2003 12:16:47 -0000 1.8
***************
*** 131,135 ****
}
- #warning "This needs testing"
if (base.Available == 0)
{
--- 131,134 ----
***************
*** 243,247 ****
}
// Update handshakes of current messages
! this.session.HandshakeHashes.Update(message.GetBytes());
break;
--- 242,246 ----
}
// Update handshakes of current messages
! this.session.Context.HandshakeHashes.Update(message.GetBytes());
break;
***************
*** 339,343 ****
private int sendRecord(TlsHandshakeType type)
{
! TlsClientHandshakeMessage msg = session.CreateClientHandshakeMessage(type);
// Write record
--- 338,342 ----
private int sendRecord(TlsHandshakeType type)
{
! TlsClientHandshakeMessage msg = createClientHandshakeMessage(type);
// Write record
***************
*** 451,455 ****
TlsServerHandshakeMessage message = null;
! message = session.CreateServerHandshakeMessage(handshakeType, handMsg);
if (message == null)
{
--- 450,454 ----
TlsServerHandshakeMessage message = null;
! message = createServerHandshakeMessage(handshakeType, handMsg);
if (message == null)
{
***************
*** 553,556 ****
--- 552,606 ----
#region HANDSHAKE_METHODS
+ private TlsClientHandshakeMessage createClientHandshakeMessage(TlsHandshakeType type)
+ {
+ switch (type)
+ {
+ case TlsHandshakeType.ClientHello:
+ return new TlsClientHello(session);
+
+ case TlsHandshakeType.ClientKeyExchange:
+ return new TlsClientKeyExchange(session);
+
+ case TlsHandshakeType.Certificate:
+ return new TlsClientCertificate(session);
+
+ case TlsHandshakeType.CertificateVerify:
+ return new TlsClientCertificateVerify(session);
+
+ case TlsHandshakeType.Finished:
+ return new TlsClientFinished(session);
+
+ default:
+ throw new InvalidOperationException("Unknown client handshake message type: " + type.ToString() );
+ }
+ }
+
+ private TlsServerHandshakeMessage createServerHandshakeMessage(TlsHandshakeType type, TlsStreamReader handMsg)
+ {
+ switch (type)
+ {
+ case TlsHandshakeType.Certificate:
+ return new TlsServerCertificate(session, handMsg);
+
+ case TlsHandshakeType.CertificateRequest:
+ return new TlsServerCertificateRequest(session, handMsg);
+
+ case TlsHandshakeType.ServerHello:
+ return new TlsServerHello(session, handMsg);
+
+ case TlsHandshakeType.ServerHelloDone:
+ return new TlsServerHelloDone(session, handMsg);
+
+ case TlsHandshakeType.ServerKeyExchange:
+ return new TlsServerKeyExchange(session, handMsg);
+
+ case TlsHandshakeType.Finished:
+ return new TlsServerFinished(session, handMsg);
+
+ default:
+ throw session.CreateException("Unknown server handshake message received ({0})", type.ToString());
+ }
+ }
+
internal void DoHandshake()
{
***************
*** 572,575 ****
--- 622,626 ----
{
#warning "Send client certificate if requested"
+ this.sendRecord(TlsHandshakeType.Certificate);
}
|
|
From: <car...@us...> - 2003-10-08 11:46:23
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source In directory sc8-pr-cvs1:/tmp/cvs-serv8762 Removed Files: System.Security.Tls.snk Log Message: removed file --- System.Security.Tls.snk DELETED --- |
|
From: <car...@us...> - 2003-10-08 11:45:11
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source In directory sc8-pr-cvs1:/tmp/cvs-serv8627 Removed Files: PostgreSql.Data.PgSqlClient.snk Log Message: removed file --- PostgreSql.Data.PgSqlClient.snk DELETED --- |
|
From: <car...@us...> - 2003-10-07 10:26:54
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1:/tmp/cvs-serv31885 Modified Files: changelog.txt Log Message: Updated CHANGELOG.TXT Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changelog.txt,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** changelog.txt 7 Oct 2003 09:43:43 -0000 1.35 --- changelog.txt 7 Oct 2003 10:26:48 -0000 1.36 *************** *** 6,9 **** --- 6,13 ---- * source/PgCommand.cs: + + - Simplify InternalSetOutputParameters implementation. + + * source/PgCommand.cs: * source/PgDataReader.cs: |
|
From: <car...@us...> - 2003-10-07 10:26:16
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv31775
Modified Files:
PgCommand.cs
Log Message:
Simplify InternalSetOutputParameters implementation
Index: PgCommand.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommand.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** PgCommand.cs 7 Oct 2003 09:05:01 -0000 1.8
--- PgCommand.cs 7 Oct 2003 10:26:06 -0000 1.9
***************
*** 542,546 ****
internal void InternalSetOutputParameters()
{
! if (this.CommandType == CommandType.StoredProcedure && parameters.Count > 0)
{
IEnumerator paramEnumerator = Parameters.GetEnumerator();
--- 542,547 ----
internal void InternalSetOutputParameters()
{
! if (this.CommandType == CommandType.StoredProcedure &&
! parameters.Count > 0)
{
IEnumerator paramEnumerator = Parameters.GetEnumerator();
***************
*** 550,558 ****
while (paramEnumerator.MoveNext())
! {
! if (((PgParameter)paramEnumerator.Current).Direction == ParameterDirection.Output ||
! ((PgParameter)paramEnumerator.Current).Direction == ParameterDirection.ReturnValue)
{
! ((PgParameter)paramEnumerator.Current).Value = values[i];
i++;
}
--- 551,562 ----
while (paramEnumerator.MoveNext())
! {
! PgParameter parameter = ((PgParameter)paramEnumerator.Current);
!
! if (parameter.Direction == ParameterDirection.Output ||
! parameter.Direction == ParameterDirection.InputOutput ||
! parameter.Direction == ParameterDirection.ReturnValue)
{
! parameter.Value = values[i];
i++;
}
|
|
From: <car...@us...> - 2003-10-07 09:44:31
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1:/tmp/cvs-serv24757 Modified Files: changes.txt Log Message: Updated CHANGES.TXT Index: changes.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changes.txt,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** changes.txt 2 Oct 2003 17:15:45 -0000 1.10 --- changes.txt 7 Oct 2003 09:44:00 -0000 1.11 *************** *** 9,13 **** - Better fit to ADO.NET ! - Improved design time support for PgParameter collection class. --- 9,21 ---- - Better fit to ADO.NET ! - Improved Command Builder implementation. ! ! - Improved design time support for PgParameterCollection class. ! ! - Implementd PgDataReader.NextResult method. ! ! - Added implementation for array data type parameters. ! ! - Added some improvements to the TLS library. |
|
From: <car...@us...> - 2003-10-07 09:44:21
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1:/tmp/cvs-serv24694 Modified Files: changelog.txt Log Message: Updated CHANGELOG.TXT Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changelog.txt,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** changelog.txt 7 Oct 2003 09:07:50 -0000 1.34 --- changelog.txt 7 Oct 2003 09:43:43 -0000 1.35 *************** *** 8,12 **** * source/PgDataReader.cs: ! - Implemented NextResult stuff --- 8,12 ---- * source/PgDataReader.cs: ! - Implemented NextResult stuff and added nunit test case for it. |
|
From: <car...@us...> - 2003-10-07 09:07:54
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1:/tmp/cvs-serv19492 Modified Files: changelog.txt Log Message: Updated CHANGELOG.TXT Index: changelog.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changelog.txt,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** changelog.txt 1 Oct 2003 20:42:13 -0000 1.33 --- changelog.txt 7 Oct 2003 09:07:50 -0000 1.34 *************** *** 3,6 **** --- 3,14 ---- + 2003-10-07 Carlos Guzmán Álvarez <car...@te...> + + * source/PgCommand.cs: + * source/PgDataReader.cs: + + - Implemented NextResult stuff + + 2003-10-01 Carlos Guzmán Álvarez <car...@te...> *************** *** 26,29 **** --- 34,38 ---- - Added better checking of command transaction ( matching SqlClient way ) + 2003-09-28 Carlos Guzmán Álvarez <car...@te...> *************** *** 34,37 **** --- 43,47 ---- by the SqlClient data provider. + 2003-09-27 Carlos Guzmán Álvarez <car...@te...> *************** *** 52,55 **** --- 62,66 ---- - Cleanup. + 2003-09-19 Carlos Guzmán Álvarez <car...@te...> |
|
From: <car...@us...> - 2003-10-07 09:06:23
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient
In directory sc8-pr-cvs1:/tmp/cvs-serv19255
Modified Files:
PgDbClient.cs PgOutputPacket.cs
Log Message:
Updated files
Index: PgDbClient.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgDbClient.cs,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** PgDbClient.cs 29 Sep 2003 14:33:01 -0000 1.18
--- PgDbClient.cs 7 Oct 2003 09:06:15 -0000 1.19
***************
*** 152,156 ****
// Create objects for read & write
receive = new BinaryReader(session.NetworkStream);
! send = new BinaryWriter(session.NetworkStream);
if (settings.SSL)
--- 152,156 ----
// Create objects for read & write
receive = new BinaryReader(session.NetworkStream);
! send = new BinaryWriter(session.NetworkStream);
if (settings.SSL)
Index: PgOutputPacket.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/NPgClient/PgOutputPacket.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** PgOutputPacket.cs 1 Oct 2003 20:41:47 -0000 1.6
--- PgOutputPacket.cs 7 Oct 2003 09:06:15 -0000 1.7
***************
*** 192,196 ****
this.WriteInt(packet.GetByteCount());
// Write parameter data
! this.Write(packet.GetBytes());
}
else
--- 192,196 ----
this.WriteInt(packet.GetByteCount());
// Write parameter data
! this.Write(packet.ToArray());
}
else
***************
*** 292,296 ****
}
! public byte[] GetBytes()
{
return ((MemoryStream)BaseStream).ToArray();
--- 292,296 ----
}
! public byte[] ToArray()
{
return ((MemoryStream)BaseStream).ToArray();
***************
*** 313,319 ****
// Write packet contents
packet.WriteInt(GetByteCount() + 4);
! packet.Write(GetBytes());
! return packet.GetBytes();
}
--- 313,319 ----
// Write packet contents
packet.WriteInt(GetByteCount() + 4);
! packet.Write(ToArray());
! return packet.ToArray();
}
***************
*** 324,330 ****
packet.Write((byte)format);
packet.WriteInt(GetByteCount() + 4);
! packet.Write(GetBytes());
! return packet.GetBytes();
}
--- 324,330 ----
packet.Write((byte)format);
packet.WriteInt(GetByteCount() + 4);
! packet.Write(ToArray());
! return packet.ToArray();
}
|
|
From: <car...@us...> - 2003-10-07 09:05:05
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv19013
Modified Files:
PgCommand.cs PgDataReader.cs
Log Message:
Implemented NextResult stuff
Index: PgCommand.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgCommand.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** PgCommand.cs 29 Sep 2003 18:15:36 -0000 1.7
--- PgCommand.cs 7 Oct 2003 09:05:01 -0000 1.8
***************
*** 40,43 ****
--- 40,45 ----
private CommandBehavior commandBehavior;
private bool disposed;
+ private int actualCommand;
+ private string[] commands;
private string commandText;
private CommandType commandType;
***************
*** 58,71 ****
public string CommandText
{
! get { return commandText; }
set
{
! if (statement != null && commandText != value &&
! commandText != null && commandText.Length != 0)
{
! InternalClose();
}
! commandText = value;
}
}
--- 60,75 ----
public string CommandText
{
! get { return this.commandText; }
set
{
! if (this.statement != null && this.commandText != value &&
! this.commandText != null && this.commandText.Length != 0)
{
! this.InternalClose();
}
! this.commandText = value;
! this.actualCommand = 0;
! this.splitBatchCommands();
}
}
***************
*** 76,81 ****
public CommandType CommandType
{
! get { return commandType; }
! set { commandType = value; }
}
--- 80,85 ----
public CommandType CommandType
{
! get { return this.commandType; }
! set { this.commandType = value; }
}
***************
*** 84,88 ****
public int CommandTimeout
{
! get { return commandTimeout; }
set
{
--- 88,92 ----
public int CommandTimeout
{
! get { return this.commandTimeout; }
set
{
***************
*** 100,105 ****
IDbConnection IDbCommand.Connection
{
! get { return Connection; }
! set { Connection = (PgConnection)value; }
}
--- 104,109 ----
IDbConnection IDbCommand.Connection
{
! get { return this.Connection; }
! set { this.Connection = (PgConnection)value; }
}
***************
*** 107,128 ****
public PgConnection Connection
{
! get { return connection; }
set
{
! if (transaction != null && !transaction.IsUpdated)
{
throw new InvalidOperationException("The Connection property was changed while a transaction was in progress.");
}
! if (connection != value)
{
! if (transaction != null)
{
! transaction = null;
}
! InternalClose();
}
! connection = value;
}
}
--- 111,137 ----
public PgConnection Connection
{
! get { return this.connection; }
set
{
! if (this.connection != null &&
! this.connection.DataReader != null)
! {
! throw new InvalidOperationException("There is already an open DataReader associated with this Connection which must be closed first.");
! }
! if (this.transaction != null && !this.transaction.IsUpdated)
{
throw new InvalidOperationException("The Connection property was changed while a transaction was in progress.");
}
! if (this.connection != value)
{
! if (this.transaction != null)
{
! this.transaction = null;
}
! this.InternalClose();
}
! this.connection = value;
}
}
***************
*** 139,143 ****
IDataParameterCollection IDbCommand.Parameters
{
! get { return Parameters; }
}
--- 148,152 ----
IDataParameterCollection IDbCommand.Parameters
{
! get { return this.Parameters; }
}
***************
*** 146,156 ****
public PgParameterCollection Parameters
{
! get { return parameters; }
}
IDbTransaction IDbCommand.Transaction
{
! get { return Transaction; }
! set { Transaction = (PgTransaction)value; }
}
--- 155,165 ----
public PgParameterCollection Parameters
{
! get { return this.parameters; }
}
IDbTransaction IDbCommand.Transaction
{
! get { return this.Transaction; }
! set { this.Transaction = (PgTransaction)value; }
}
***************
*** 160,174 ****
public PgTransaction Transaction
{
! get { return transaction; }
set
{
! if (transaction != null && transaction.IsUpdated)
! {
! transaction = value;
! }
! else
{
! transaction = value;
}
}
}
--- 169,182 ----
public PgTransaction Transaction
{
! get { return this.transaction; }
set
{
! if (this.connection != null &&
! this.connection.DataReader != null)
{
! throw new InvalidOperationException("There is already an open DataReader associated with this Connection which must be closed first.");
}
+
+ this.transaction = value;
}
}
***************
*** 177,197 ****
public UpdateRowSource UpdatedRowSource
{
! get { return updatedRowSource; }
! set { updatedRowSource = value; }
}
internal CommandBehavior CommandBehavior
{
! get { return commandBehavior; }
}
internal PgStatement Statement
{
! get { return statement; }
}
internal bool IsDisposed
{
! get { return disposed; }
}
--- 185,205 ----
public UpdateRowSource UpdatedRowSource
{
! get { return this.updatedRowSource; }
! set { this.updatedRowSource = value; }
}
internal CommandBehavior CommandBehavior
{
! get { return this.commandBehavior; }
}
internal PgStatement Statement
{
! get { return this.statement; }
}
internal bool IsDisposed
{
! get { return this.disposed; }
}
***************
*** 202,213 ****
public PgCommand()
{
! commandText = String.Empty;
! commandType = CommandType.Text;
! commandTimeout = 30;
! updatedRowSource = UpdateRowSource.Both;
! commandBehavior = CommandBehavior.Default;
! designTimeVisible = true;
! parameters = new PgParameterCollection();
! search = new Regex("(@([a-zA-Z-$][a-zA-Z0-9_$]*))");
}
--- 210,222 ----
public PgCommand()
{
! this.commandText = String.Empty;
! this.commandType = CommandType.Text;
! this.commandTimeout = 30;
! this.actualCommand = -1;
! this.updatedRowSource = UpdateRowSource.Both;
! this.commandBehavior = CommandBehavior.Default;
! this.designTimeVisible = true;
! this.parameters = new PgParameterCollection();
! this.search = new Regex("(@([a-zA-Z-$][a-zA-Z0-9_$]*))");
}
***************
*** 222,228 ****
public PgCommand(string cmdText, PgConnection connection, PgTransaction transaction) : this()
{
! CommandText = cmdText;
! Connection = connection;
! Transaction = transaction;
}
--- 231,237 ----
public PgCommand(string cmdText, PgConnection connection, PgTransaction transaction) : this()
{
! this.CommandText = cmdText;
! this.Connection = connection;
! this.Transaction = transaction;
}
***************
*** 239,243 ****
protected override void Dispose(bool disposing)
{
! if (!disposed)
{
try
--- 248,252 ----
protected override void Dispose(bool disposing)
{
! if (!this.disposed)
{
try
***************
*** 245,257 ****
if (disposing)
{
! if (connection.ActiveCommands != null)
{
! connection.ActiveCommands.Remove(this);
}
// release any managed resources
! InternalClose();
! commandText = String.Empty;
}
--- 254,269 ----
if (disposing)
{
! if (this.connection.ActiveCommands != null)
{
! this.connection.ActiveCommands.Remove(this);
}
// release any managed resources
! this.InternalClose();
! this.commandText = String.Empty;
! this.actualCommand = -1;
! this.search = null;
! this.commands = null;
}
***************
*** 274,278 ****
{
PgCommand command = new PgCommand(CommandText, Connection, Transaction);
! command.CommandType = commandType;
return command;
--- 286,290 ----
{
PgCommand command = new PgCommand(CommandText, Connection, Transaction);
! command.CommandType = this.commandType;
return command;
***************
*** 405,429 ****
try
{
! if (statement == null || statement.Status == PgStatementStatus.Initial ||
statement.Status == PgStatementStatus.Error)
{
if (commandType == CommandType.StoredProcedure)
{
! CommandText = parseSPCommandText();
}
// Get named parameters in CommandText
! namedParameters = search.Matches(CommandText);
!
! if (parameters.Count != 0 || namedParameters.Count != 0)
! {
! // Subst parameterNames with $position
! parseParameterNames();
! }
!
string prepareName = "PS" + getStmtName();
string portalName = "PR" + getStmtName();
! statement = connection.DbConnection.DB.CreateStatement(prepareName, portalName, commandText);
// Parse the statment
--- 417,439 ----
try
{
! if (statement == null ||
! statement.Status == PgStatementStatus.Initial ||
statement.Status == PgStatementStatus.Error)
{
if (commandType == CommandType.StoredProcedure)
{
! commands[actualCommand] = parseSPCommandText();
}
// Get named parameters in CommandText
! namedParameters = search.Matches(commands[actualCommand]);
!
string prepareName = "PS" + getStmtName();
string portalName = "PR" + getStmtName();
! statement = connection.DbConnection.DB.CreateStatement(
! prepareName,
! portalName,
! parseParameterNames());
// Parse the statment
***************
*** 499,505 ****
internal bool NextResult()
{
! /* TODO: Add implementation */
! return false;
}
--- 509,541 ----
internal bool NextResult()
{
! bool returnValue = false;
! if (commandBehavior != CommandBehavior.SingleResult)
! {
! this.actualCommand++;
!
! if (actualCommand >= commands.Length)
! {
! this.actualCommand--;
! }
! else
! {
! string commandText = this.commands[actualCommand];
!
! if (commandText != null && commandText.Trim().Length > 0)
! {
! statement.Close();
! statement.ClosePortal();
! statement = null;
!
! InternalPrepare();
! InternalExecute();
!
! returnValue = true;
! }
! }
! }
!
! return returnValue;
}
***************
*** 569,581 ****
}
! private void parseParameterNames()
{
if (namedParameters.Count != 0)
{
for (int i = 0; i < namedParameters.Count; i++)
{
! commandText = search.Replace(commandText, @"$$" + (i + 1).ToString(), 1);
}
}
}
--- 605,621 ----
}
! private string parseParameterNames()
{
+ string sql = commands[actualCommand];
+
if (namedParameters.Count != 0)
{
for (int i = 0; i < namedParameters.Count; i++)
{
! sql = search.Replace(sql, @"$$" + (i + 1).ToString(), 1);
}
}
+
+ return sql;
}
***************
*** 641,644 ****
--- 681,702 ----
{
throw new InvalidOperationException ("The command text for this Command has not been set.");
+ }
+ }
+
+ private void splitBatchCommands()
+ {
+ MatchCollection matches = Regex.Matches(
+ this.commandText,
+ "([^';]+('[^']*'))*[^';]*(?=;*)");
+
+ commands = new string[matches.Count/2];
+ int count = 0;
+ for (int i = 0; i < matches.Count; i++)
+ {
+ if (matches[i].Value.Trim() != String.Empty)
+ {
+ this.commands[count] = matches[i].Value.Trim();
+ count++;
+ }
}
}
Index: PgDataReader.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgDataReader.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** PgDataReader.cs 22 Aug 2003 15:13:50 -0000 1.7
--- PgDataReader.cs 7 Oct 2003 09:05:01 -0000 1.8
***************
*** 144,150 ****
// Set values of output parameters
command.InternalSetOutputParameters();
-
- // Close statement
- command.InternalClose();
if ((command.CommandBehavior & CommandBehavior.CloseConnection) == CommandBehavior.CloseConnection)
--- 144,147 ----
***************
*** 172,176 ****
if (returnValue)
{
! position = STARTPOS;
}
--- 169,178 ----
if (returnValue)
{
! fieldCount = command.Statement.RowDescriptor.Fields.Length;
! position = STARTPOS;
! }
! else
! {
! row = null;
}
|
|
From: <car...@us...> - 2003-10-06 18:47:04
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv32290
Modified Files:
PgConnection.cs
Log Message:
Close the active DataReader if it's not closed yet.
Index: PgConnection.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgConnection.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PgConnection.cs 29 Sep 2003 18:15:36 -0000 1.3
--- PgConnection.cs 6 Oct 2003 18:46:59 -0000 1.4
***************
*** 413,417 ****
{
// Close DataReader
! if (dataReader != null)
{
dataReader.Close();
--- 413,418 ----
{
// Close DataReader
! if (dataReader != null &&
! !dataReader.IsClosed)
{
dataReader.Close();
|
|
From: <car...@us...> - 2003-10-05 16:43:20
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10
In directory sc8-pr-cvs1:/tmp/cvs-serv9947
Modified Files:
makefile
Log Message:
Updated linux/mono makefile
Index: makefile
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/makefile,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** makefile 3 Oct 2003 22:55:22 -0000 1.5
--- makefile 5 Oct 2003 16:43:16 -0000 1.6
***************
*** 1,26 ****
TLS = System.Security.Tls.dll
LIBRARY = PostgreSql.Data.PgSqlClient.dll
! all: ${TLS} $(LIBRARY) $(PGTEST) install clean
CSC = mcs
COPY = cp
# References to assemblies
LD_FLAGS = -reference:System.dll -reference:System.Design.dll -reference:System.Data.dll -reference:System.Drawing.dll -reference:System.Xml.dll
! LD_TLS_FLAGS = -reference:System.dll -reference:System.Data.dll -reference:System.Drawing.dll -reference:System.Xml.dll
# Resources for the Toolbox
TOOL_RESOURCES = -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgConnection.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgConnection.bmp -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgCommand.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgCommand.bmp -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgDataAdapter.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgDataAdapter.bmp
# Source files
RECURSE_TLS = -recurse:./PgSqlClient.Security.Tls/source/*.cs
RECURSE_SOURCE = -recurse:./PostgreSql.Data.PgSqlClient/source/*.cs
# Defines
DEFINE = -define:_DEBUG
System.Security.Tls.dll:
! $(CSC) -target:library -out:$(TLS) $(LD_TLS_FLAGS) $(DEFINE) $(RECURSE_TLS)
PostgreSql.Data.PgSqlClient.dll:
$(CSC) -target:library -out:$(LIBRARY) $(LD_FLAGS) -reference:System.Security.Tls.dll $(DEFINE) $(TOOL_RESOURCES) $(RECURSE_SOURCE)
install:
rm -rf build
--- 1,39 ----
TLS = System.Security.Tls.dll
LIBRARY = PostgreSql.Data.PgSqlClient.dll
+ NUNIT_SUITE = PostgreSql.Data.PgSqlClient.UnitTests.dll
! all: ${TLS} $(LIBRARY) $(NUNIT_SUITE) install clean
CSC = mcs
COPY = cp
+
# References to assemblies
+ LD_BASIC_FLAGS = -reference:System.dll -reference:System.Data.dll -reference:System.Drawing.dll -reference:System.Xml.dll
LD_FLAGS = -reference:System.dll -reference:System.Design.dll -reference:System.Data.dll -reference:System.Drawing.dll -reference:System.Xml.dll
!
# Resources for the Toolbox
TOOL_RESOURCES = -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgConnection.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgConnection.bmp -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgCommand.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgCommand.bmp -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgDataAdapter.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgDataAdapter.bmp
+
# Source files
RECURSE_TLS = -recurse:./PgSqlClient.Security.Tls/source/*.cs
RECURSE_SOURCE = -recurse:./PostgreSql.Data.PgSqlClient/source/*.cs
+ RECURSE_TESTS = -recurse:./PostgreSql.Data.PgSqlClient.UnitTests/source/*.cs
+
+ # COnfiguration files
+ NUNIT_CONFIG=./PostgreSql.Data.PgSqlClient.UnitTests/PostgreSql.Data.PgSqlClient.UnitTests.dll.config
+
# Defines
DEFINE = -define:_DEBUG
System.Security.Tls.dll:
! $(CSC) -target:library -out:$(TLS) $(LD_BASIC_FLAGS) $(DEFINE) $(RECURSE_TLS)
PostgreSql.Data.PgSqlClient.dll:
$(CSC) -target:library -out:$(LIBRARY) $(LD_FLAGS) -reference:System.Security.Tls.dll $(DEFINE) $(TOOL_RESOURCES) $(RECURSE_SOURCE)
+ PostgreSql.Data.PgSqlClient.UnitTests.dll:
+
+ $(CSC) -target:library -out:$(NUNIT_SUITE) $(LD_BASIC_FLAGS) -reference:${LIBRARY} -reference:NUnit.Framework.dll $(DEFINE) $(TOOL_RESOURCES) $(RECURSE_TESTS)
+
install:
rm -rf build
***************
*** 28,33 ****
$(COPY) $(TLS) ./build
$(COPY) $(LIBRARY) ./build
clean:
rm $(TLS)
! rm $(LIBRARY)
\ No newline at end of file
--- 41,49 ----
$(COPY) $(TLS) ./build
$(COPY) $(LIBRARY) ./build
+ $(COPY) $(NUNIT_SUITE) ./build
+ $(COPY) ${NUNIT_CONFIG} ./build
clean:
rm $(TLS)
! rm $(LIBRARY)
! rm ${NUNIT_SUITE
\ No newline at end of file
|
|
From: <car...@us...> - 2003-10-03 22:55:37
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1:/tmp/cvs-serv23165 Modified Files: makefile Log Message: Updated makefile Index: makefile =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/makefile,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** makefile 2 Oct 2003 17:21:21 -0000 1.4 --- makefile 3 Oct 2003 22:55:22 -0000 1.5 *************** *** 1,3 **** ! TLS = PgSqlClient.Security.Tls.dll LIBRARY = PostgreSql.Data.PgSqlClient.dll --- 1,3 ---- ! TLS = System.Security.Tls.dll LIBRARY = PostgreSql.Data.PgSqlClient.dll *************** *** 17,25 **** DEFINE = -define:_DEBUG ! PgSqlClient.Security.Tls.dll: $(CSC) -target:library -out:$(TLS) $(LD_TLS_FLAGS) $(DEFINE) $(RECURSE_TLS) PostgreSql.Data.PgSqlClient.dll: ! $(CSC) -target:library -out:$(LIBRARY) $(LD_FLAGS) -reference:PgSqlClient.Security.Tls.dll $(DEFINE) $(TOOL_RESOURCES) $(RECURSE_SOURCE) install: --- 17,25 ---- DEFINE = -define:_DEBUG ! System.Security.Tls.dll: $(CSC) -target:library -out:$(TLS) $(LD_TLS_FLAGS) $(DEFINE) $(RECURSE_TLS) PostgreSql.Data.PgSqlClient.dll: ! $(CSC) -target:library -out:$(LIBRARY) $(LD_FLAGS) -reference:System.Security.Tls.dll $(DEFINE) $(TOOL_RESOURCES) $(RECURSE_SOURCE) install: |
|
From: <car...@us...> - 2003-10-03 19:10:01
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake
In directory sc8-pr-cvs1:/tmp/cvs-serv19068
Modified Files:
TlsServerCertificate.cs
Log Message:
Added some changes to exception handling
Index: TlsServerCertificate.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/Handshake/TlsServerCertificate.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** TlsServerCertificate.cs 16 Sep 2003 12:29:08 -0000 1.6
--- TlsServerCertificate.cs 3 Oct 2003 19:09:56 -0000 1.7
***************
*** 103,111 ****
DateTime effectiveDate = DateTime.Parse(certificate.GetEffectiveDateString());
DateTime expirationDate = DateTime.Parse(certificate.GetExpirationDateString());
! if (System.DateTime.Now < effectiveDate || System.DateTime.Now > expirationDate)
{
! throw new TlsException(TlsAlertLevel.Fatal,
! TlsAlertDescription.CertificateExpired,
! "Certificate received FromBase64Transform the server expired.");
}
--- 103,110 ----
DateTime effectiveDate = DateTime.Parse(certificate.GetEffectiveDateString());
DateTime expirationDate = DateTime.Parse(certificate.GetExpirationDateString());
! if (System.DateTime.Now < effectiveDate ||
! System.DateTime.Now > expirationDate)
{
! throw Session.CreateException("Certificate received FromBase64Transform the server expired.");
}
|
|
From: <car...@us...> - 2003-10-03 19:09:49
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source
In directory sc8-pr-cvs1:/tmp/cvs-serv19029
Modified Files:
TlsException.cs TlsSession.cs TlsSocket.cs
Log Message:
Added some changes to exception handling
Index: TlsException.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsException.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TlsException.cs 1 Sep 2003 11:11:08 -0000 1.3
--- TlsException.cs 3 Oct 2003 19:09:44 -0000 1.4
***************
*** 28,52 ****
public sealed class TlsException : Exception
{
- #region FIELDS
-
- private TlsAlertLevel alertLevel;
- private TlsAlertDescription alertDescription;
-
- #endregion
-
- #region PROPERTIES
-
- public TlsAlertLevel AlertLevel
- {
- get { return alertLevel; }
- }
-
- public TlsAlertDescription AlertDescription
- {
- get { return alertDescription; }
- }
-
- #endregion
-
#region CONSTRUCTORS
--- 28,31 ----
***************
*** 55,66 ****
}
- internal TlsException(TlsAlertLevel alertLevel,
- TlsAlertDescription alertDescription,
- string message) : base(message)
- {
- this.alertLevel = alertLevel;
- this.alertDescription = alertDescription;
- }
-
internal TlsException(SerializationInfo info, StreamingContext context) : base(info, context)
{
--- 34,37 ----
***************
*** 69,81 ****
internal TlsException(string message, Exception ex) : base(message, ex)
{
- }
-
- internal TlsException(TlsAlertLevel alertLevel,
- TlsAlertDescription alertDescription,
- string message,
- Exception ex) : base(message, ex)
- {
- this.alertLevel = alertLevel;
- this.alertDescription = alertDescription;
}
--- 40,43 ----
Index: TlsSession.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsSession.cs,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** TlsSession.cs 3 Oct 2003 18:45:29 -0000 1.20
--- TlsSession.cs 3 Oct 2003 19:09:44 -0000 1.21
***************
*** 124,141 ****
#region EXCEPTION_METHODS
! internal void ThrowException(TlsAlertLevel alertLevel, TlsAlertDescription alertDesc)
{
! // Throw an exception will made the connection unavailable
! // for this both streams will be closed
! closeStreams();
! // Throw exception
! throw new TlsException(
! alertLevel,
! alertDesc,
! TlsAlert.GetAlertMessage(alertDesc));
}
! internal void ThrowException(string message)
{
// Throw an exception will made the connection unavailable
--- 124,141 ----
#region EXCEPTION_METHODS
! internal TlsException CreateException(TlsAlertLevel alertLevel, TlsAlertDescription alertDesc)
{
! return CreateException(TlsAlert.GetAlertMessage(alertDesc));
! }
! internal TlsException CreateException(string format, params object[] args)
! {
! StringBuilder message = new StringBuilder();
! message.AppendFormat(format, args);
!
! return CreateException(message.ToString());
}
! internal TlsException CreateException(string message)
{
// Throw an exception will made the connection unavailable
***************
*** 143,148 ****
closeStreams();
! // Throw exception
! throw new TlsException(message);
}
--- 143,147 ----
closeStreams();
! return new TlsException(message);
}
***************
*** 242,246 ****
default:
! throw new InvalidOperationException("Unknown server handshake message type: " + type.ToString() );
}
}
--- 241,245 ----
default:
! throw CreateException("Unknown server handshake message received ({0})", type.ToString());
}
}
Index: TlsSocket.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsSocket.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** TlsSocket.cs 3 Oct 2003 18:45:29 -0000 1.6
--- TlsSocket.cs 3 Oct 2003 19:09:44 -0000 1.7
***************
*** 178,182 ****
if (session.Context.ConnectionEnd)
{
! session.ThrowException("The session is finished and it's no longer valid.");
}
--- 178,182 ----
if (session.Context.ConnectionEnd)
{
! throw session.CreateException("The session is finished and it's no longer valid.");
}
***************
*** 199,203 ****
if (protocol != TlsProtocol.Tls1)
{
! session.ThrowException("Invalid protocol version on message received from server");
}
--- 199,203 ----
if (protocol != TlsProtocol.Tls1)
{
! throw session.CreateException("Invalid protocol version on message received from server");
}
***************
*** 247,252 ****
default:
! session.ThrowException("Unknown record received from server.");
! break;
}
--- 247,251 ----
default:
! throw session.CreateException("Unknown record received from server.");
}
***************
*** 375,379 ****
if (session.Context.ConnectionEnd)
{
! session.ThrowException("The session is finished and it's no longer valid.");
}
--- 374,378 ----
if (session.Context.ConnectionEnd)
{
! throw session.CreateException("The session is finished and it's no longer valid.");
}
***************
*** 468,473 ****
{
case TlsAlertLevel.Fatal:
! session.ThrowException(alertLevel, alertDesc);
! break;
case TlsAlertLevel.Warning:
--- 467,471 ----
{
case TlsAlertLevel.Fatal:
! throw session.CreateException(alertLevel, alertDesc);
case TlsAlertLevel.Warning:
|
|
From: <car...@us...> - 2003-10-03 18:45:33
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source
In directory sc8-pr-cvs1:/tmp/cvs-serv14361
Modified Files:
TlsSession.cs TlsSocket.cs
Log Message:
Fixed Typo
Index: TlsSession.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsSession.cs,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** TlsSession.cs 30 Sep 2003 09:23:45 -0000 1.19
--- TlsSession.cs 3 Oct 2003 18:45:29 -0000 1.20
***************
*** 201,205 ****
#region HANDSHAKE_MESSAGE_CREATION_METHODS
! internal TlsClientHandshakeMessage CreateClientHandsakeMessage(TlsHandshakeType type)
{
switch (type)
--- 201,205 ----
#region HANDSHAKE_MESSAGE_CREATION_METHODS
! internal TlsClientHandshakeMessage CreateClientHandshakeMessage(TlsHandshakeType type)
{
switch (type)
***************
*** 215,223 ****
default:
! throw new InvalidOperationException("Unknown client handshake message type");
}
}
! internal TlsServerHandshakeMessage CreateServerHandsakeMessage(TlsHandshakeType type, TlsStreamReader handMsg)
{
switch (type)
--- 215,223 ----
default:
! throw new InvalidOperationException("Unknown client handshake message type: " + type.ToString() );
}
}
! internal TlsServerHandshakeMessage CreateServerHandshakeMessage(TlsHandshakeType type, TlsStreamReader handMsg)
{
switch (type)
***************
*** 242,248 ****
default:
! throw new InvalidOperationException("Unknown client handshake message type");
}
}
#endregion
--- 242,249 ----
default:
! throw new InvalidOperationException("Unknown server handshake message type: " + type.ToString() );
}
}
+
#endregion
Index: TlsSocket.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.Security.Tls/source/TlsSocket.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TlsSocket.cs 17 Sep 2003 14:44:17 -0000 1.5
--- TlsSocket.cs 3 Oct 2003 18:45:29 -0000 1.6
***************
*** 340,344 ****
private int sendRecord(TlsHandshakeType type)
{
! TlsClientHandshakeMessage msg = session.CreateClientHandsakeMessage(type);
// Write record
--- 340,344 ----
private int sendRecord(TlsHandshakeType type)
{
! TlsClientHandshakeMessage msg = session.CreateClientHandshakeMessage(type);
// Write record
***************
*** 452,456 ****
TlsServerHandshakeMessage message = null;
! message = session.CreateServerHandsakeMessage(handshakeType, handMsg);
if (message == null)
{
--- 452,456 ----
TlsServerHandshakeMessage message = null;
! message = session.CreateServerHandshakeMessage(handshakeType, handMsg);
if (message == null)
{
|
|
From: <car...@us...> - 2003-10-02 18:17:31
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source
In directory sc8-pr-cvs1:/tmp/cvs-serv24112
Modified Files:
PgParameterCollection.cs
Log Message:
Modified Desing time support
Index: PgParameterCollection.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgParameterCollection.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PgParameterCollection.cs 22 Aug 2003 15:13:50 -0000 1.3
--- PgParameterCollection.cs 2 Oct 2003 18:17:27 -0000 1.4
***************
*** 25,29 ****
namespace PostgreSql.Data.PgSqlClient
{
! [ListBindable(false)]
public sealed class PgParameterCollection : MarshalByRefObject, IDataParameterCollection, IList, ICollection, IEnumerable
{
--- 25,30 ----
namespace PostgreSql.Data.PgSqlClient
{
! [ListBindable(false),
! Editor(typeof(Design.PgParameterCollectionEditor), typeof(System.Drawing.Design.UITypeEditor))]
public sealed class PgParameterCollection : MarshalByRefObject, IDataParameterCollection, IList, ICollection, IEnumerable
{
|
|
From: <car...@us...> - 2003-10-02 18:17:03
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/Design/ParameterCollection In directory sc8-pr-cvs1:/tmp/cvs-serv24013 Added Files: PgParameterCollectionEditor.cs PgParameterConverter.cs Log Message: Desing time classes for PgParameterCollection class. --- NEW FILE: PgParameterCollectionEditor.cs --- (This appears to be a binary file; contents omitted.) --- NEW FILE: PgParameterConverter.cs --- (This appears to be a binary file; contents omitted.) |
|
From: <car...@us...> - 2003-10-02 18:15:16
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/Design/ParameterCollection In directory sc8-pr-cvs1:/tmp/cvs-serv23695/ParameterCollection Log Message: Directory /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/Design/ParameterCollection added to the repository |
|
From: <car...@us...> - 2003-10-02 18:14:58
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/Design In directory sc8-pr-cvs1:/tmp/cvs-serv23617 Removed Files: PgParameterConverter.cs Log Message: moved to other dir --- PgParameterConverter.cs DELETED --- |
|
From: <car...@us...> - 2003-10-02 17:21:25
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10
In directory sc8-pr-cvs1:/tmp/cvs-serv14574
Modified Files:
makefile PgSqlClient.build
Log Message:
Updated build files
Index: makefile
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** makefile 20 Sep 2003 14:43:51 -0000 1.3
--- makefile 2 Oct 2003 17:21:21 -0000 1.4
***************
*** 7,11 ****
COPY = cp
# References to assemblies
! LD_FLAGS = -reference:System.dll -reference:System.Data.dll -reference:System.Drawing.dll -reference:System.Xml.dll
# Resources for the Toolbox
TOOL_RESOURCES = -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgConnection.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgConnection.bmp -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgCommand.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgCommand.bmp -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgDataAdapter.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgDataAdapter.bmp
--- 7,12 ----
COPY = cp
# References to assemblies
! LD_FLAGS = -reference:System.dll -reference:System.Design.dll -reference:System.Data.dll -reference:System.Drawing.dll -reference:System.Xml.dll
! LD_TLS_FLAGS = -reference:System.dll -reference:System.Data.dll -reference:System.Drawing.dll -reference:System.Xml.dll
# Resources for the Toolbox
TOOL_RESOURCES = -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgConnection.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgConnection.bmp -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgCommand.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgCommand.bmp -resource:PostgreSql.Data.PgSqlClient/source/Resources/ToolBox/PgDataAdapter.bmp,PostgreSql.Data.PgSqlClient.Resources.ToolBox.PgDataAdapter.bmp
***************
*** 17,21 ****
PgSqlClient.Security.Tls.dll:
! $(CSC) -target:library -out:$(TLS) $(LD_FLAGS) $(DEFINE) $(RECURSE_TLS)
PostgreSql.Data.PgSqlClient.dll:
--- 18,22 ----
PgSqlClient.Security.Tls.dll:
! $(CSC) -target:library -out:$(TLS) $(LD_TLS_FLAGS) $(DEFINE) $(RECURSE_TLS)
PostgreSql.Data.PgSqlClient.dll:
Index: PgSqlClient.build
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PgSqlClient.build,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** PgSqlClient.build 1 Oct 2003 10:32:37 -0000 1.5
--- PgSqlClient.build 2 Oct 2003 17:21:21 -0000 1.6
***************
*** 152,155 ****
--- 152,156 ----
<absolute file="System.dll" />
<absolute file="System.Data.dll" />
+ <absolute file="System.Design.dll"/>
<absolute file="System.Drawing.dll" />
<absolute file="System.XML.dll" />
***************
*** 196,199 ****
--- 197,201 ----
<references>
<includes name="${nant.settings.currentframework.frameworkassemblydirectory}/System.dll" />
+ <includes name="${nant.settings.currentframework.frameworkassemblydirectory}/System.Design.dll" />
<includes name="${nant.settings.currentframework.frameworkassemblydirectory}/System.Data.dll" />
<includes name="${nant.settings.currentframework.frameworkassemblydirectory}/System.Drawing.dll" />
|
|
From: <car...@us...> - 2003-10-02 17:15:50
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10 In directory sc8-pr-cvs1:/tmp/cvs-serv13766 Modified Files: changes.txt Log Message: Updated CHANGES.TXT Index: changes.txt =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/changes.txt,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** changes.txt 18 Sep 2003 14:21:26 -0000 1.9 --- changes.txt 2 Oct 2003 17:15:45 -0000 1.10 *************** *** 2,5 **** --- 2,15 ---- ------------------------------------------------------- + Beta 3 ( XX-10-2003 ) + ---- - - -- -- ---- - + + - Bug fixes. + + - Better fit to ADO.NET + + - Improved design time support for PgParameter collection class. + + Beta 2 ( 18-09-2003 ) ---- - - -- -- ---- - |
|
From: <car...@us...> - 2003-10-02 17:14:43
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/Design
In directory sc8-pr-cvs1:/tmp/cvs-serv13535
Modified Files:
PgParameterConverter.cs
Log Message:
Updated
Index: PgParameterConverter.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/Design/PgParameterConverter.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PgParameterConverter.cs 29 Sep 2003 19:41:21 -0000 1.1
--- PgParameterConverter.cs 2 Oct 2003 17:14:36 -0000 1.2
***************
*** 26,30 ****
namespace PostgreSql.Data.PgSqlClient.Design
{
! public class PgParameterConverter : TypeConverter
{
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
--- 26,30 ----
namespace PostgreSql.Data.PgSqlClient.Design
{
! internal class PgParameterConverter : TypeConverter
{
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
|