dnsmail-cvs Mailing List for DnsMail (Page 5)
Brought to you by:
ethem
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
(72) |
Jun
(22) |
Jul
(4) |
Aug
(52) |
Sep
|
Oct
|
Nov
|
Dec
(2) |
---|
From: Ethem E. <et...@us...> - 2006-05-23 09:29:45
|
Update of /cvsroot/dnsmail/projeler/test In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv18628/projeler/test Modified Files: test.txt Log Message: revision Index: test.txt =================================================================== RCS file: /cvsroot/dnsmail/projeler/test/test.txt,v retrieving revision 2.1 retrieving revision 2.2 diff -C2 -d -r2.1 -r2.2 *** test.txt 15 May 2006 14:01:26 -0000 2.1 --- test.txt 23 May 2006 09:29:39 -0000 2.2 *************** *** 1,4 **** --- 1,7 ---- // $Id$ + + $Revision$ + SÜRÜM 1.3'e geçiþ yapýyoruz. |
From: ozcanalkulak <ozc...@us...> - 2006-05-22 15:12:18
|
Update of /cvsroot/dnsmail/projeler/validator-io In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15187/validator-io Modified Files: Default.aspx Default.aspx.cs Log Message: yaþ kontrolünde mesaj hatasý vardý düzeltildi.... teþekkürler Index: Default.aspx.cs =================================================================== RCS file: /cvsroot/dnsmail/projeler/validator-io/Default.aspx.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Default.aspx.cs 22 May 2006 14:59:27 -0000 1.2 --- Default.aspx.cs 22 May 2006 15:11:29 -0000 1.3 *************** *** 21,25 **** String strinsert; OleDbCommand cmdinsert; ! baglanti = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("uyekayit.mdb") + ";Persist Security Info=True"); strinsert = "Insert Into uyebilgi(kullanýcýadý,sifre,adý,soyadý,email,dtarih,cinsiyet,yas,sehir) Values (@kullanýcýadý,@sifre,@adý,@soyadý,@email,@dtarih,@cinsiyet,@yas,@sehir)"; cmdinsert = new OleDbCommand(strinsert, baglanti); --- 21,25 ---- String strinsert; OleDbCommand cmdinsert; ! baglanti = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=uyekayit.mdb;Persist Security Info=True"); strinsert = "Insert Into uyebilgi(kullanýcýadý,sifre,adý,soyadý,email,dtarih,cinsiyet,yas,sehir) Values (@kullanýcýadý,@sifre,@adý,@soyadý,@email,@dtarih,@cinsiyet,@yas,@sehir)"; cmdinsert = new OleDbCommand(strinsert, baglanti); Index: Default.aspx =================================================================== RCS file: /cvsroot/dnsmail/projeler/validator-io/Default.aspx,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Default.aspx 22 May 2006 14:16:54 -0000 1.2 --- Default.aspx 22 May 2006 15:11:29 -0000 1.3 *************** *** 144,148 **** Display="None" ErrorMessage="Lütfen YaÅınızı Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator> <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="Tyas" ! Display="None" ErrorMessage="RangeValidator" Font-Size="7pt" MaximumValue="50" MinimumValue="18"></asp:RangeValidator></td> </tr> --- 144,148 ---- Display="None" ErrorMessage="Lütfen YaÅınızı Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator> <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="Tyas" ! Display="None" ErrorMessage="YaÅınız 18 ile 50 Arasında olmalıdır..." Font-Size="7pt" MaximumValue="50" MinimumValue="18"></asp:RangeValidator></td> </tr> |
From: Ethem E. <et...@us...> - 2006-05-22 14:59:31
|
Update of /cvsroot/dnsmail/projeler/validator-io In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv10760/validator-io Modified Files: Default.aspx.cs Log Message: Server.MapPath fonksiyonu ile dosyanýn tam yerini bulmasý saðlandý. Index: Default.aspx.cs =================================================================== RCS file: /cvsroot/dnsmail/projeler/validator-io/Default.aspx.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx.cs 22 May 2006 14:06:00 -0000 1.1 --- Default.aspx.cs 22 May 2006 14:59:27 -0000 1.2 *************** *** 21,25 **** String strinsert; OleDbCommand cmdinsert; ! baglanti = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=uyekayit.mdb;Persist Security Info=True"); strinsert = "Insert Into uyebilgi(kullanýcýadý,sifre,adý,soyadý,email,dtarih,cinsiyet,yas,sehir) Values (@kullanýcýadý,@sifre,@adý,@soyadý,@email,@dtarih,@cinsiyet,@yas,@sehir)"; cmdinsert = new OleDbCommand(strinsert, baglanti); --- 21,25 ---- String strinsert; OleDbCommand cmdinsert; ! baglanti = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("uyekayit.mdb") + ";Persist Security Info=True"); strinsert = "Insert Into uyebilgi(kullanýcýadý,sifre,adý,soyadý,email,dtarih,cinsiyet,yas,sehir) Values (@kullanýcýadý,@sifre,@adý,@soyadý,@email,@dtarih,@cinsiyet,@yas,@sehir)"; cmdinsert = new OleDbCommand(strinsert, baglanti); |
Update of /cvsroot/dnsmail/projeler/validator-io In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv28487/validator-io Added Files: Default2.aspx Default2.aspx.cs HPIM0023.JPG anasayfa.aspx anasayfa.aspx.cs ercan.JPG logo.jpg mahmut.JPG ozcan.JPG Log Message: ana sayfa ve kayýt listele bölümleri eklendi. ve aradaki baðlantýlar kuruldu. --- NEW FILE: Default2.aspx --- (This appears to be a binary file; contents omitted.) --- NEW FILE: anasayfa.aspx.cs --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mahmut.JPG --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ercan.JPG --- (This appears to be a binary file; contents omitted.) --- NEW FILE: HPIM0023.JPG --- (This appears to be a binary file; contents omitted.) --- NEW FILE: logo.jpg --- (This appears to be a binary file; contents omitted.) --- NEW FILE: anasayfa.aspx --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Default2.aspx.cs --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ozcan.JPG --- (This appears to be a binary file; contents omitted.) |
From: ozcanalkulak <ozc...@us...> - 2006-05-22 14:18:33
|
Update of /cvsroot/dnsmail/projeler/validator-io/App_Data In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27585/App_Data Log Message: Directory /cvsroot/dnsmail/projeler/validator-io/App_Data added to the repository |
From: ozcanalkulak <ozc...@us...> - 2006-05-22 14:17:03
|
Update of /cvsroot/dnsmail/projeler/validator-io In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv26808/validator-io Modified Files: Default.aspx Log Message: renk deðiþtirildi ve baðlantýlar kuruldu. Index: Default.aspx =================================================================== RCS file: /cvsroot/dnsmail/projeler/validator-io/Default.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx 22 May 2006 14:06:00 -0000 1.1 --- Default.aspx 22 May 2006 14:16:54 -0000 1.2 *************** *** 26,30 **** <td style="width: 309px"> Kullanıcı Adınızı Giriniz...(En Fazla 15 Karakter...)</td> ! <td style="width: 67px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Tkad" Display="None" ErrorMessage="Lütfen Kullanıcı Adınızı Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> --- 26,30 ---- <td style="width: 309px"> Kullanıcı Adınızı Giriniz...(En Fazla 15 Karakter...)</td> ! <td style="width: 84px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Tkad" Display="None" ErrorMessage="Lütfen Kullanıcı Adınızı Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> *************** *** 37,41 **** <td style="width: 309px"> Dört ile On Karakter Arasında Olmalıdır...</td> ! <td style="width: 67px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Tsfr" Display="None" ErrorMessage="Lütfen Åifrenizi Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> --- 37,41 ---- <td style="width: 309px"> Dört ile On Karakter Arasında Olmalıdır...</td> ! <td style="width: 84px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Tsfr" Display="None" ErrorMessage="Lütfen Åifrenizi Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> *************** *** 48,52 **** <td style="width: 309px"> Åifrenizi Tekrar Giriniz...</td> ! <td style="width: 67px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Tsfrt" Display="None" ErrorMessage="Lütfen Åifrenizi Tekrar Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator> --- 48,52 ---- <td style="width: 309px"> Åifrenizi Tekrar Giriniz...</td> ! <td style="width: 84px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Tsfrt" Display="None" ErrorMessage="Lütfen Åifrenizi Tekrar Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator> *************** *** 62,66 **** <td style="width: 309px"> </td> ! <td style="width: 67px"> </td> </tr> --- 62,66 ---- <td style="width: 309px"> </td> ! <td style="width: 84px"> </td> </tr> *************** *** 76,80 **** <td style="width: 309px"> Adınızı Giriniz...</td> ! <td style="width: 67px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Tad" Display="None" ErrorMessage="Lütfen Adınızı Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> --- 76,80 ---- <td style="width: 309px"> Adınızı Giriniz...</td> ! <td style="width: 84px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Tad" Display="None" ErrorMessage="Lütfen Adınızı Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> *************** *** 87,91 **** <td style="width: 309px"> Soyadınızı Giriniz...</td> ! <td style="width: 67px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="Tsad" Display="None" ErrorMessage="Lütfen Soyadınızı Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> --- 87,91 ---- <td style="width: 309px"> Soyadınızı Giriniz...</td> ! <td style="width: 84px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="Tsad" Display="None" ErrorMessage="Lütfen Soyadınızı Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> *************** *** 98,102 **** <td style="width: 309px"> "bo...@ya..." Formatında Yazınız...</td> ! <td style="width: 67px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="Temail" Display="None" ErrorMessage="Lütfen Email Adresinizi Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator> --- 98,102 ---- <td style="width: 309px"> "bo...@ya..." Formatında Yazınız...</td> ! <td style="width: 84px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="Temail" Display="None" ErrorMessage="Lütfen Email Adresinizi Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator> *************** *** 112,116 **** <td style="width: 309px; height: 15px"> "01.01.2006" Formatında Yazınız...</td> ! <td style="width: 67px; height: 15px;"> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="Tdtarih" Display="None" ErrorMessage="Lütfen DoÄum Tarihinizi Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator> --- 112,116 ---- <td style="width: 309px; height: 15px"> "01.01.2006" Formatında Yazınız...</td> ! <td style="width: 84px; height: 15px;"> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="Tdtarih" Display="None" ErrorMessage="Lütfen DoÄum Tarihinizi Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator> *************** *** 129,133 **** <td style="width: 309px; height: 8px"> Cinsiyetinizi Seçiniz...</td> ! <td style="width: 67px; height: 8px;"> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="cinsiyet" Display="None" ErrorMessage="Lütfen Cinsiyetinizi Seçiniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> --- 129,133 ---- <td style="width: 309px; height: 8px"> Cinsiyetinizi Seçiniz...</td> ! <td style="width: 84px; height: 8px;"> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="cinsiyet" Display="None" ErrorMessage="Lütfen Cinsiyetinizi Seçiniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> *************** *** 140,144 **** <td style="width: 309px"> YaÅınız 18 ile 50 arasında olmalıdır...</td> ! <td style="width: 67px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="Tyas" Display="None" ErrorMessage="Lütfen YaÅınızı Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator> --- 140,144 ---- <td style="width: 309px"> YaÅınız 18 ile 50 arasında olmalıdır...</td> ! <td style="width: 84px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="Tyas" Display="None" ErrorMessage="Lütfen YaÅınızı Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator> *************** *** 160,164 **** <td style="width: 309px; height: 24px"> YaÅadıÄınız Sehri Seçiniz...</td> ! <td style="width: 67px; height: 24px;"> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="sehir" Display="None" ErrorMessage="Lütfen YaÅadıÄınız Sehri Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> --- 160,164 ---- <td style="width: 309px; height: 24px"> YaÅadıÄınız Sehri Seçiniz...</td> ! <td style="width: 84px; height: 24px;"> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="sehir" Display="None" ErrorMessage="Lütfen YaÅadıÄınız Sehri Giriniz..." Font-Size="7pt"></asp:RequiredFieldValidator></td> *************** *** 167,171 **** </div> ! <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Kaydet" /> <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" /> --- 167,172 ---- </div> ! <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Kaydet" /> ! <asp:Button ID="Button2" runat="server" PostBackUrl="~/anasayfa.aspx" Text="Anasayfa" CausesValidation="False" /> <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" /> |
From: ozcanalkulak <ozc...@us...> - 2006-05-22 14:06:22
|
Update of /cvsroot/dnsmail/projeler/validator-io In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv22443/validator-io Added Files: Default.aspx Default.aspx.cs Web.Config uyekayit.mdb Log Message: bu dosyalar sadece üye kayýt bölümünü içeriyor --- NEW FILE: Web.Config --- <?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration> <appSettings/> <connectionStrings> <add name="uyekayitConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\uyekayit.mdb";Persist Security Info=True" providerName="System.Data.OleDb" /> <add name="uyekayitConnectionString2" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\uyekayit.mdb"" providerName="System.Data.OleDb" /> <add name="uyekayitConnectionString3" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\uyekayit.mdb"" providerName="System.Data.OleDb" /> </connectionStrings> <system.web> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <compilation debug="true"/> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Windows"/> <!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> --> </system.web> </configuration> --- NEW FILE: Default.aspx.cs --- using System; using System.Data; using System.Data.OleDb; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { OleDbConnection baglanti; String strinsert; OleDbCommand cmdinsert; baglanti = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=uyekayit.mdb;Persist Security Info=True"); strinsert = "Insert Into uyebilgi(kullanýcýadý,sifre,adý,soyadý,email,dtarih,cinsiyet,yas,sehir) Values (@kullanýcýadý,@sifre,@adý,@soyadý,@email,@dtarih,@cinsiyet,@yas,@sehir)"; cmdinsert = new OleDbCommand(strinsert, baglanti); cmdinsert.Parameters.Add("@kullanýcýadý", Tkad.Text); cmdinsert.Parameters.Add("@sifre", Tsfr.Text); cmdinsert.Parameters.Add("@adý", Tad.Text); cmdinsert.Parameters.Add("@soyadý", Tsad.Text); cmdinsert.Parameters.Add("@email", Temail.Text); cmdinsert.Parameters.Add("@dtarih", Tdtarih.Text); cmdinsert.Parameters.Add("@cinsiyet", cinsiyet.Text); cmdinsert.Parameters.Add("@yas", Tyas.Text); cmdinsert.Parameters.Add("@sehir",sehir.Text); baglanti.Open(); cmdinsert.ExecuteNonQuery(); baglanti.Close(); Tkad.Text=(""); Tsfr.Text = (""); Tsfrt.Text = (""); Tad.Text = (""); Tsad.Text = (""); Temail.Text = (""); Tdtarih.Text = (""); Tyas.Text = (""); sehir.Text = (""); } protected void Button2_Click(object sender, EventArgs e) { } protected void cinsiyet_SelectedIndexChanged(object sender, EventArgs e) { } } --- NEW FILE: uyekayit.mdb --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Default.aspx --- (This appears to be a binary file; contents omitted.) |
From: Ethem E. <et...@us...> - 2006-05-22 10:46:44
|
Update of /cvsroot/dnsmail/dnsmail/DnsMail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17736/dnsmail/DnsMail Modified Files: OpenSslStream.cs Log Message: PAramater validation. Merged from DNSMAIL_02. Index: OpenSslStream.cs =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/DnsMail/OpenSslStream.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** OpenSslStream.cs 6 Mar 2006 15:47:40 -0000 1.1 --- OpenSslStream.cs 22 May 2006 10:46:39 -0000 1.2 *************** *** 37,45 **** static OpenSslStream() { UnsafeOpenSsl.SSL_load_error_strings(); UnsafeOpenSsl.SSL_library_init(); String version = ""; ! IntPtr ctx = UnsafeOpenSsl.SSL_CTX_new(UnsafeOpenSsl.TLSv1_method()); ! if (ctx != IntPtr.Zero) { try --- 37,47 ---- static OpenSslStream() { + // Load OpenSsl libraries UnsafeOpenSsl.SSL_load_error_strings(); UnsafeOpenSsl.SSL_library_init(); + String version = ""; ! IntPtr tmpctx = UnsafeOpenSsl.SSL_CTX_new(UnsafeOpenSsl.TLSv1_method()); ! if (tmpctx != IntPtr.Zero) { try *************** *** 50,54 **** finally { ! UnsafeOpenSsl.SSL_CTX_free(ctx); } } --- 52,56 ---- finally { ! UnsafeOpenSsl.SSL_CTX_free(tmpctx); } } *************** *** 340,353 **** } ! unsafe public override int Read(byte[] buffer, int offset, int count) { if (!CanRead) return -1; fixed(byte* ptr = &buffer[offset]) { try { ! int read = UnsafeOpenSsl.SSL_read(sslSession, ptr, count); return read; } --- 342,369 ---- } ! unsafe public override int Read(byte[] buffer, int offset, int size) { if (!CanRead) return -1; + // param validation + if (buffer == null) + { + throw new ArgumentNullException("buffer"); + } + if (offset < 0 || offset > buffer.Length) + { + throw new ArgumentOutOfRangeException("offset"); + } + if (size < 0 || size > buffer.Length-offset) + { + throw new ArgumentOutOfRangeException("size"); + } + fixed(byte* ptr = &buffer[offset]) { try { ! int read = UnsafeOpenSsl.SSL_read(sslSession, ptr, size); return read; } *************** *** 359,384 **** } ! unsafe public override void Write(byte[] buffer, int offset, int count) { - Exception exp; if (!CanWrite) { ! exp = new Exception("ERR:SSL_write::handshake is not ok or connection closed"); ! throw exp; } ! fixed(byte* ptr = buffer) { ! while (count > 0) { ! int sent = UnsafeOpenSsl.SSL_write(sslSession, &ptr[offset], count); if (sent <= 0) { ! exp = new Exception("ERR::SSL_write::memory{0x" + ((int)ptr).ToString("x") + "} index[" + offset + "]"); ! throw exp; } - offset += sent; ! count -= sent; } } --- 375,410 ---- } ! unsafe public override void Write(byte[] buffer, int offset, int size) { if (!CanWrite) + { + throw new Exception("ERR:SSL_write::handshake is not ok or connection closed");; + } + + // param validation + if (buffer == null) { ! throw new ArgumentNullException("buffer"); ! } ! if (offset < 0 || offset > buffer.Length) ! { ! throw new ArgumentOutOfRangeException("offset"); ! } ! if (size < 0 || size > buffer.Length-offset) ! { ! throw new ArgumentOutOfRangeException("size"); } ! fixed(byte* ptr = &buffer[offset]) { ! while (size > 0) { ! int sent = UnsafeOpenSsl.SSL_write(sslSession, &ptr[offset], size); if (sent <= 0) { ! throw new Exception("ERR::SSL_write::memory{0x" + ((int)ptr).ToString("x") + "} index[" + offset + "]"); } offset += sent; ! size -= sent; } } |
From: Ethem E. <et...@us...> - 2006-05-22 10:39:39
|
Update of /cvsroot/dnsmail/dnsmail/DnsMail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15151/dnsmail/DnsMail Modified Files: Tag: DNSMAIL_02 OpenSslStream.cs Log Message: PAramater validation. Index: OpenSslStream.cs =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/DnsMail/OpenSslStream.cs,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** OpenSslStream.cs 6 Mar 2006 15:47:40 -0000 1.1 --- OpenSslStream.cs 22 May 2006 10:39:28 -0000 1.1.4.1 *************** *** 37,45 **** static OpenSslStream() { UnsafeOpenSsl.SSL_load_error_strings(); UnsafeOpenSsl.SSL_library_init(); String version = ""; ! IntPtr ctx = UnsafeOpenSsl.SSL_CTX_new(UnsafeOpenSsl.TLSv1_method()); ! if (ctx != IntPtr.Zero) { try --- 37,47 ---- static OpenSslStream() { + // Load OpenSsl libraries UnsafeOpenSsl.SSL_load_error_strings(); UnsafeOpenSsl.SSL_library_init(); + String version = ""; ! IntPtr tmpctx = UnsafeOpenSsl.SSL_CTX_new(UnsafeOpenSsl.TLSv1_method()); ! if (tmpctx != IntPtr.Zero) { try *************** *** 50,54 **** finally { ! UnsafeOpenSsl.SSL_CTX_free(ctx); } } --- 52,56 ---- finally { ! UnsafeOpenSsl.SSL_CTX_free(tmpctx); } } *************** *** 340,353 **** } ! unsafe public override int Read(byte[] buffer, int offset, int count) { if (!CanRead) return -1; fixed(byte* ptr = &buffer[offset]) { try { ! int read = UnsafeOpenSsl.SSL_read(sslSession, ptr, count); return read; } --- 342,369 ---- } ! unsafe public override int Read(byte[] buffer, int offset, int size) { if (!CanRead) return -1; + // param validation + if (buffer == null) + { + throw new ArgumentNullException("buffer"); + } + if (offset < 0 || offset > buffer.Length) + { + throw new ArgumentOutOfRangeException("offset"); + } + if (size < 0 || size > buffer.Length-offset) + { + throw new ArgumentOutOfRangeException("size"); + } + fixed(byte* ptr = &buffer[offset]) { try { ! int read = UnsafeOpenSsl.SSL_read(sslSession, ptr, size); return read; } *************** *** 359,384 **** } ! unsafe public override void Write(byte[] buffer, int offset, int count) { - Exception exp; if (!CanWrite) { ! exp = new Exception("ERR:SSL_write::handshake is not ok or connection closed"); ! throw exp; } ! fixed(byte* ptr = buffer) { ! while (count > 0) { ! int sent = UnsafeOpenSsl.SSL_write(sslSession, &ptr[offset], count); if (sent <= 0) { ! exp = new Exception("ERR::SSL_write::memory{0x" + ((int)ptr).ToString("x") + "} index[" + offset + "]"); ! throw exp; } - offset += sent; ! count -= sent; } } --- 375,410 ---- } ! unsafe public override void Write(byte[] buffer, int offset, int size) { if (!CanWrite) + { + throw new Exception("ERR:SSL_write::handshake is not ok or connection closed");; + } + + // param validation + if (buffer == null) { ! throw new ArgumentNullException("buffer"); ! } ! if (offset < 0 || offset > buffer.Length) ! { ! throw new ArgumentOutOfRangeException("offset"); ! } ! if (size < 0 || size > buffer.Length-offset) ! { ! throw new ArgumentOutOfRangeException("size"); } ! fixed(byte* ptr = &buffer[offset]) { ! while (size > 0) { ! int sent = UnsafeOpenSsl.SSL_write(sslSession, &ptr[offset], size); if (sent <= 0) { ! throw new Exception("ERR::SSL_write::memory{0x" + ((int)ptr).ToString("x") + "} index[" + offset + "]"); } offset += sent; ! size -= sent; } } |
From: Ethem E. <et...@us...> - 2006-05-22 10:35:54
|
Update of /cvsroot/dnsmail/dnsmail/DnsMail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13807/dnsmail/DnsMail Modified Files: OpenSslStream.cs Log Message: Merged from DNSMAIL_0200 Index: OpenSslStream.cs =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/DnsMail/OpenSslStream.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** OpenSslStream.cs 6 Mar 2006 15:47:40 -0000 1.1 --- OpenSslStream.cs 22 May 2006 10:35:43 -0000 1.2 *************** *** 37,45 **** static OpenSslStream() { UnsafeOpenSsl.SSL_load_error_strings(); UnsafeOpenSsl.SSL_library_init(); String version = ""; ! IntPtr ctx = UnsafeOpenSsl.SSL_CTX_new(UnsafeOpenSsl.TLSv1_method()); ! if (ctx != IntPtr.Zero) { try --- 37,47 ---- static OpenSslStream() { + // Load OpenSsl libraries UnsafeOpenSsl.SSL_load_error_strings(); UnsafeOpenSsl.SSL_library_init(); + String version = ""; ! IntPtr tmpctx = UnsafeOpenSsl.SSL_CTX_new(UnsafeOpenSsl.TLSv1_method()); ! if (tmpctx != IntPtr.Zero) { try *************** *** 50,54 **** finally { ! UnsafeOpenSsl.SSL_CTX_free(ctx); } } --- 52,56 ---- finally { ! UnsafeOpenSsl.SSL_CTX_free(tmpctx); } } *************** *** 340,353 **** } ! unsafe public override int Read(byte[] buffer, int offset, int count) { if (!CanRead) return -1; fixed(byte* ptr = &buffer[offset]) { try { ! int read = UnsafeOpenSsl.SSL_read(sslSession, ptr, count); return read; } --- 342,369 ---- } ! unsafe public override int Read(byte[] buffer, int offset, int size) { if (!CanRead) return -1; + // param validation + if (buffer == null) + { + throw new ArgumentNullException("buffer"); + } + if (offset < 0 || offset > buffer.Length) + { + throw new ArgumentOutOfRangeException("offset"); + } + if (size < 0 || size > buffer.Length-offset) + { + throw new ArgumentOutOfRangeException("size"); + } + fixed(byte* ptr = &buffer[offset]) { try { ! int read = UnsafeOpenSsl.SSL_read(sslSession, ptr, size); return read; } *************** *** 359,384 **** } ! unsafe public override void Write(byte[] buffer, int offset, int count) { - Exception exp; if (!CanWrite) { ! exp = new Exception("ERR:SSL_write::handshake is not ok or connection closed"); ! throw exp; } ! fixed(byte* ptr = buffer) { ! while (count > 0) { ! int sent = UnsafeOpenSsl.SSL_write(sslSession, &ptr[offset], count); if (sent <= 0) { ! exp = new Exception("ERR::SSL_write::memory{0x" + ((int)ptr).ToString("x") + "} index[" + offset + "]"); ! throw exp; } - offset += sent; ! count -= sent; } } --- 375,410 ---- } ! unsafe public override void Write(byte[] buffer, int offset, int size) { if (!CanWrite) + { + throw new Exception("ERR:SSL_write::handshake is not ok or connection closed");; + } + + // param validation + if (buffer == null) { ! throw new ArgumentNullException("buffer"); ! } ! if (offset < 0 || offset > buffer.Length) ! { ! throw new ArgumentOutOfRangeException("offset"); ! } ! if (size < 0 || size > buffer.Length-offset) ! { ! throw new ArgumentOutOfRangeException("size"); } ! fixed(byte* ptr = &buffer[offset]) { ! while (size > 0) { ! int sent = UnsafeOpenSsl.SSL_write(sslSession, &ptr[offset], size); if (sent <= 0) { ! throw new Exception("ERR::SSL_write::memory{0x" + ((int)ptr).ToString("x") + "} index[" + offset + "]"); } offset += sent; ! size -= sent; } } |
From: Ethem E. <et...@us...> - 2006-05-22 10:28:06
|
Update of /cvsroot/dnsmail/dnsmail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11100/dnsmail Modified Files: UnsafeNativeMethods.cs Log Message: Merged from DNSMAIL_0200 Index: UnsafeNativeMethods.cs =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/UnsafeNativeMethods.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** UnsafeNativeMethods.cs 6 Mar 2006 15:33:04 -0000 1.2 --- UnsafeNativeMethods.cs 22 May 2006 10:27:56 -0000 1.3 *************** *** 98,104 **** [In, MarshalAs(UnmanagedType.U2)] UInt16 wType, [In, MarshalAs(UnmanagedType.U4)] UInt32 fOptions, ! [In] IntPtr aipServers, ! [In, Out] ref IntPtr ppQueryResults, ! [In, Out] IntPtr pReserved ); #endregion --- 98,104 ---- [In, MarshalAs(UnmanagedType.U2)] UInt16 wType, [In, MarshalAs(UnmanagedType.U4)] UInt32 fOptions, ! [In] IntPtr aipServers, ! [In, Out] ref IntPtr ppQueryResults, ! [In, Out] IntPtr pReserved ); #endregion *************** *** 171,175 **** } else ! return new string[0]{}; //length=0 } finally --- 171,175 ---- } else ! return new string[0]{}; //length=0 } finally *************** *** 183,187 **** } } ! #endregion } --- 183,187 ---- } } ! #endregion } *************** *** 190,194 **** private UnsafeOpenSsl(){} private const String LIB_EAY = @"libeay32.dll"; ! private const String LIB_SSL = @"ssleay32.dll"; [DllImport(LIB_SSL)] internal static extern int SSL_library_init(); --- 190,194 ---- private UnsafeOpenSsl(){} private const String LIB_EAY = @"libeay32.dll"; ! private const String LIB_SSL = @"ssleay32.dll"; [DllImport(LIB_SSL)] internal static extern int SSL_library_init(); *************** *** 206,210 **** [DllImport(LIB_SSL)] internal static extern int SSL_read(IntPtr ssl, byte* buf, int num); [DllImport(LIB_SSL)] internal static extern int SSL_write(IntPtr ssl, byte* buf, int num); ! [DllImport(LIB_SSL)] internal static extern IntPtr SSL_get_peer_certificate(IntPtr ssl); [DllImport(LIB_SSL)] internal static extern int SSL_get_error(IntPtr ssl, int ret); --- 206,210 ---- [DllImport(LIB_SSL)] internal static extern int SSL_read(IntPtr ssl, byte* buf, int num); [DllImport(LIB_SSL)] internal static extern int SSL_write(IntPtr ssl, byte* buf, int num); ! [DllImport(LIB_SSL)] internal static extern IntPtr SSL_get_peer_certificate(IntPtr ssl); [DllImport(LIB_SSL)] internal static extern int SSL_get_error(IntPtr ssl, int ret); *************** *** 213,218 **** [DllImport(LIB_EAY)] internal static extern int ERR_peek_error(); [DllImport(LIB_EAY)] internal static extern String ERR_error_string_n(int e, System.Text.StringBuilder sb, int l); ! [DllImport(LIB_EAY)] internal static extern void X509_free(IntPtr x509); ! [DllImport(LIB_EAY)] internal static extern int i2d_X509(IntPtr cer, byte** ppOut); } }; --- 213,218 ---- [DllImport(LIB_EAY)] internal static extern int ERR_peek_error(); [DllImport(LIB_EAY)] internal static extern String ERR_error_string_n(int e, System.Text.StringBuilder sb, int l); ! [DllImport(LIB_EAY)] internal static extern void X509_free(IntPtr x509); ! [DllImport(LIB_EAY)] internal static extern int i2d_X509(IntPtr cer, byte** ppOut); } }; |
From: Ethem E. <et...@us...> - 2006-05-22 09:56:45
|
Update of /cvsroot/dnsmail/dnsmail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv32544/dnsmail Modified Files: Erle.DnsMail.csproj.user Log Message: Removed last empty line. Index: Erle.DnsMail.csproj.user =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/Erle.DnsMail.csproj.user,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Erle.DnsMail.csproj.user 2 Mar 2006 17:24:37 -0000 1.1 --- Erle.DnsMail.csproj.user 22 May 2006 09:56:39 -0000 1.2 *************** *** 46,48 **** </CSHARP> </VisualStudioProject> - --- 46,47 ---- |
From: Ethem E. <et...@us...> - 2006-05-22 09:55:00
|
Update of /cvsroot/dnsmail/dnsmail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv31854/dnsmail Modified Files: Erle.DnsMail.csproj Log Message: Removed last empty line. Index: Erle.DnsMail.csproj =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/Erle.DnsMail.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Erle.DnsMail.csproj 6 Mar 2006 15:35:34 -0000 1.2 --- Erle.DnsMail.csproj 22 May 2006 09:54:56 -0000 1.3 *************** *** 158,160 **** </CSHARP> </VisualStudioProject> - --- 158,159 ---- |
From: Ethem E. <et...@us...> - 2006-05-22 09:47:04
|
Update of /cvsroot/dnsmail/dnsmail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv28808/dnsmail Modified Files: AssemblyInfo.cs Log Message: Bumped to 0.3.0.0 Index: AssemblyInfo.cs =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/AssemblyInfo.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AssemblyInfo.cs 6 Mar 2006 15:37:08 -0000 1.2 --- AssemblyInfo.cs 22 May 2006 09:46:57 -0000 1.3 *************** *** 11,15 **** // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: ! [assembly: AssemblyVersion("0.2.0.0")] [assembly: AssemblyTitle("Erle.DnsMail")] --- 11,15 ---- // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: ! [assembly: AssemblyVersion("0.3.0.0")] [assembly: AssemblyTitle("Erle.DnsMail")] |
From: Ethem E. <et...@us...> - 2006-05-17 13:57:44
|
Update of /cvsroot/dnsmail/projeler/derskaydi-io In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13197/derskaydi-io Log Message: Directory /cvsroot/dnsmail/projeler/derskaydi-io added to the repository |
From: Ethem E. <et...@us...> - 2006-05-17 12:17:21
|
Update of /cvsroot/dnsmail/projeler/dosya-io In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv442/dosya-io Log Message: Directory /cvsroot/dnsmail/projeler/dosya-io added to the repository |
From: Ethem E. <et...@us...> - 2006-05-17 11:39:16
|
Update of /cvsroot/dnsmail/projeler/validator-io In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv19088/validator-io Log Message: Directory /cvsroot/dnsmail/projeler/validator-io added to the repository |
From: Ethem E. <et...@us...> - 2006-05-17 10:55:52
|
Update of /cvsroot/dnsmail/projeler/mobil-no In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv2093/mobil-no Log Message: Directory /cvsroot/dnsmail/projeler/mobil-no added to the repository |
From: Ethem E. <et...@us...> - 2006-05-17 10:55:52
|
Update of /cvsroot/dnsmail/projeler/alisveris-no In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv2093/alisveris-no Log Message: Directory /cvsroot/dnsmail/projeler/alisveris-no added to the repository |
From: Ethem E. <et...@us...> - 2006-05-15 15:26:49
|
Update of /cvsroot/dnsmail/dnsmail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv1816/dnsmail Modified Files: Tag: DNSMAIL_02 UnsafeNativeMethods.cs Log Message: Branch fix. Index: UnsafeNativeMethods.cs =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/UnsafeNativeMethods.cs,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -C2 -d -r1.2 -r1.2.4.1 *** UnsafeNativeMethods.cs 6 Mar 2006 15:33:04 -0000 1.2 --- UnsafeNativeMethods.cs 15 May 2006 15:26:41 -0000 1.2.4.1 *************** *** 98,104 **** [In, MarshalAs(UnmanagedType.U2)] UInt16 wType, [In, MarshalAs(UnmanagedType.U4)] UInt32 fOptions, ! [In] IntPtr aipServers, ! [In, Out] ref IntPtr ppQueryResults, ! [In, Out] IntPtr pReserved ); #endregion --- 98,104 ---- [In, MarshalAs(UnmanagedType.U2)] UInt16 wType, [In, MarshalAs(UnmanagedType.U4)] UInt32 fOptions, ! [In] IntPtr aipServers, ! [In, Out] ref IntPtr ppQueryResults, ! [In, Out] IntPtr pReserved ); #endregion *************** *** 171,175 **** } else ! return new string[0]{}; //length=0 } finally --- 171,175 ---- } else ! return new string[0]{}; //length=0 } finally *************** *** 183,187 **** } } ! #endregion } --- 183,187 ---- } } ! #endregion } *************** *** 190,194 **** private UnsafeOpenSsl(){} private const String LIB_EAY = @"libeay32.dll"; ! private const String LIB_SSL = @"ssleay32.dll"; [DllImport(LIB_SSL)] internal static extern int SSL_library_init(); --- 190,194 ---- private UnsafeOpenSsl(){} private const String LIB_EAY = @"libeay32.dll"; ! private const String LIB_SSL = @"ssleay32.dll"; [DllImport(LIB_SSL)] internal static extern int SSL_library_init(); *************** *** 206,210 **** [DllImport(LIB_SSL)] internal static extern int SSL_read(IntPtr ssl, byte* buf, int num); [DllImport(LIB_SSL)] internal static extern int SSL_write(IntPtr ssl, byte* buf, int num); ! [DllImport(LIB_SSL)] internal static extern IntPtr SSL_get_peer_certificate(IntPtr ssl); [DllImport(LIB_SSL)] internal static extern int SSL_get_error(IntPtr ssl, int ret); --- 206,210 ---- [DllImport(LIB_SSL)] internal static extern int SSL_read(IntPtr ssl, byte* buf, int num); [DllImport(LIB_SSL)] internal static extern int SSL_write(IntPtr ssl, byte* buf, int num); ! [DllImport(LIB_SSL)] internal static extern IntPtr SSL_get_peer_certificate(IntPtr ssl); [DllImport(LIB_SSL)] internal static extern int SSL_get_error(IntPtr ssl, int ret); *************** *** 213,218 **** [DllImport(LIB_EAY)] internal static extern int ERR_peek_error(); [DllImport(LIB_EAY)] internal static extern String ERR_error_string_n(int e, System.Text.StringBuilder sb, int l); ! [DllImport(LIB_EAY)] internal static extern void X509_free(IntPtr x509); ! [DllImport(LIB_EAY)] internal static extern int i2d_X509(IntPtr cer, byte** ppOut); } }; --- 213,218 ---- [DllImport(LIB_EAY)] internal static extern int ERR_peek_error(); [DllImport(LIB_EAY)] internal static extern String ERR_error_string_n(int e, System.Text.StringBuilder sb, int l); ! [DllImport(LIB_EAY)] internal static extern void X509_free(IntPtr x509); ! [DllImport(LIB_EAY)] internal static extern int i2d_X509(IntPtr cer, byte** ppOut); } }; |
From: Ethem E. <et...@us...> - 2006-05-15 15:16:35
|
Update of /cvsroot/dnsmail/dnsmail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv30783/dnsmail Modified Files: Tag: DNSMAIL_01 DNSAPI.cs Log Message: Branch fix. Index: DNSAPI.cs =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/DNSAPI.cs,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** DNSAPI.cs 2 Mar 2006 16:15:35 -0000 1.1 --- DNSAPI.cs 15 May 2006 15:16:28 -0000 1.1.4.1 *************** *** 117,128 **** if (api.Status == STRUCTURES.SUCCESS && pQuery != IntPtr.Zero) { - IntPtr pDnsRec = pQuery; //loop try { ArrayList tmp = new ArrayList(); ! while (pDnsRec != IntPtr.Zero) { ! STRUCTURES.DNS_RECORD dnsRec = (STRUCTURES.DNS_RECORD)Marshal.PtrToStructure(pDnsRec, typeof(STRUCTURES.DNS_RECORD)); ! if( dnsRec.wType == STRUCTURES.DNS_TYPE_MX ) { IntPtr pMxData = new IntPtr( pDnsRec.ToInt32() + STRUCTURES.DNS_RECORD.SIZE ); // jump to mxrecord --- 117,128 ---- if (api.Status == STRUCTURES.SUCCESS && pQuery != IntPtr.Zero) { try { + STRUCTURES.DNS_RECORD dnsRec; ArrayList tmp = new ArrayList(); ! for(IntPtr pDnsRec = pQuery; pDnsRec != IntPtr.Zero; pDnsRec = dnsRec.pNext) { ! dnsRec = (STRUCTURES.DNS_RECORD)Marshal.PtrToStructure(pDnsRec, typeof(STRUCTURES.DNS_RECORD)); ! if (dnsRec.wType == STRUCTURES.DNS_TYPE_MX) { IntPtr pMxData = new IntPtr( pDnsRec.ToInt32() + STRUCTURES.DNS_RECORD.SIZE ); // jump to mxrecord *************** *** 132,138 **** else break; // no additional record - - pDnsRec = dnsRec.pNext; } if (tmp.Count > 0) { --- 132,137 ---- else break; // no additional record } + if (tmp.Count > 0) { |
From: Ethem E. <et...@us...> - 2006-05-15 14:38:40
|
Update of /cvsroot/dnsmail/dnsmail/DnsMail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17965/dnsmail/DnsMail Modified Files: Tag: DNSMAIL_02 OpenSslStream.cs Log Message: Branch fix. Index: OpenSslStream.cs =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/DnsMail/OpenSslStream.cs,v retrieving revision 1.1.4.1 retrieving revision 1.1.4.2 diff -C2 -d -r1.1.4.1 -r1.1.4.2 *** OpenSslStream.cs 15 May 2006 14:26:32 -0000 1.1.4.1 --- OpenSslStream.cs 15 May 2006 14:38:37 -0000 1.1.4.2 *************** *** 342,355 **** } ! unsafe public override int Read(byte[] buffer, int offset, int count) { if (!CanRead) return -1; fixed(byte* ptr = &buffer[offset]) { try { ! int read = UnsafeOpenSsl.SSL_read(sslSession, ptr, count); return read; } --- 342,369 ---- } ! unsafe public override int Read(byte[] buffer, int offset, int size) { if (!CanRead) return -1; + // param validation + if (buffer == null) + { + throw new ArgumentNullException("buffer"); + } + if (offset < 0 || offset > buffer.Length) + { + throw new ArgumentOutOfRangeException("offset"); + } + if (size < 0 || size > buffer.Length-offset) + { + throw new ArgumentOutOfRangeException("size"); + } + fixed(byte* ptr = &buffer[offset]) { try { ! int read = UnsafeOpenSsl.SSL_read(sslSession, ptr, size); return read; } *************** *** 361,386 **** } ! unsafe public override void Write(byte[] buffer, int offset, int count) { - Exception exp; if (!CanWrite) { ! exp = new Exception("ERR:SSL_write::handshake is not ok or connection closed"); ! throw exp; } fixed(byte* ptr = &buffer[offset]) { ! while (count > 0) { ! int sent = UnsafeOpenSsl.SSL_write(sslSession, &ptr[offset], count); if (sent <= 0) { ! exp = new Exception("ERR::SSL_write::memory{0x" + ((int)ptr).ToString("x") + "} index[" + offset + "]"); ! throw exp; } - offset += sent; ! count -= sent; } } --- 375,410 ---- } ! unsafe public override void Write(byte[] buffer, int offset, int size) { if (!CanWrite) + { + throw new Exception("ERR:SSL_write::handshake is not ok or connection closed");; + } + + // param validation + if (buffer == null) { ! throw new ArgumentNullException("buffer"); ! } ! if (offset < 0 || offset > buffer.Length) ! { ! throw new ArgumentOutOfRangeException("offset"); ! } ! if (size < 0 || size > buffer.Length-offset) ! { ! throw new ArgumentOutOfRangeException("size"); } fixed(byte* ptr = &buffer[offset]) { ! while (size > 0) { ! int sent = UnsafeOpenSsl.SSL_write(sslSession, &ptr[offset], size); if (sent <= 0) { ! throw new Exception("ERR::SSL_write::memory{0x" + ((int)ptr).ToString("x") + "} index[" + offset + "]"); } offset += sent; ! size -= sent; } } |
From: Ethem E. <et...@us...> - 2006-05-15 14:26:35
|
Update of /cvsroot/dnsmail/dnsmail/DnsMail In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13962/dnsmail/DnsMail Modified Files: Tag: DNSMAIL_02 OpenSslStream.cs Log Message: Branch fix. Index: OpenSslStream.cs =================================================================== RCS file: /cvsroot/dnsmail/dnsmail/DnsMail/OpenSslStream.cs,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** OpenSslStream.cs 6 Mar 2006 15:47:40 -0000 1.1 --- OpenSslStream.cs 15 May 2006 14:26:32 -0000 1.1.4.1 *************** *** 37,45 **** static OpenSslStream() { UnsafeOpenSsl.SSL_load_error_strings(); UnsafeOpenSsl.SSL_library_init(); String version = ""; ! IntPtr ctx = UnsafeOpenSsl.SSL_CTX_new(UnsafeOpenSsl.TLSv1_method()); ! if (ctx != IntPtr.Zero) { try --- 37,47 ---- static OpenSslStream() { + // Load OpenSsl libraries UnsafeOpenSsl.SSL_load_error_strings(); UnsafeOpenSsl.SSL_library_init(); + String version = ""; ! IntPtr tmpctx = UnsafeOpenSsl.SSL_CTX_new(UnsafeOpenSsl.TLSv1_method()); ! if (tmpctx != IntPtr.Zero) { try *************** *** 50,54 **** finally { ! UnsafeOpenSsl.SSL_CTX_free(ctx); } } --- 52,56 ---- finally { ! UnsafeOpenSsl.SSL_CTX_free(tmpctx); } } *************** *** 368,372 **** } ! fixed(byte* ptr = buffer) { while (count > 0) --- 370,374 ---- } ! fixed(byte* ptr = &buffer[offset]) { while (count > 0) |
From: Ethem E. <et...@us...> - 2006-05-15 14:01:31
|
Update of /cvsroot/dnsmail/projeler/test In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5685 Modified Files: Tag: 2 test.txt Log Message: 2. revision. |
From: Ethem E. <et...@us...> - 2006-05-15 13:56:17
|
Update of /cvsroot/dnsmail/projeler/test In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv4027/projeler/test Modified Files: test.txt Log Message: Merged from TEST_20_STABLE Index: test.txt =================================================================== RCS file: /cvsroot/dnsmail/projeler/test/test.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** test.txt 15 May 2006 13:39:04 -0000 1.3 --- test.txt 15 May 2006 13:56:12 -0000 1.4 *************** *** 3,6 **** --- 3,12 ---- SÜRÜM 1.3'e geçiþ yapýyoruz. + BRANCH numaralarý verirken 2'þer 2'þer artýyor ve ilk branch + + X.Y.2.Z nolu sürümü, sonraki BRANClar ise X.Y.4. þeklinde sürüm no alýyor. + + + Bu ilk satýr. Bu dosyayý; |