Re: [twsocket] Aborting PUT

2017-06-16 Thread Angus Robertson - Magenta Systems Ltd
> I have a backup application that I am revamping. You got me > right, I am using both the Client and Server modules as my > application is loaded on Source machine and Destination too. I > get your point that I will have to work from the Client side > majorly and not from the Server

Re: [twsocket] ICS on macOS

2017-06-12 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* [twsocket] ICS on macOS > It appears that the latest ICS version was never tested on macOS. No, none of us has MacOS so it's untested, well known in this mailing list. If you want fix the broken units in SVN which is V8.48 and email them to me, I'll update them for V8.49 later

Re: [twsocket] FtpServer Event for Receiving File

2017-06-14 Thread Angus Robertson - Magenta Systems Ltd
> One more related question. In the OnStorSessionClosed the > Client.FilePath gives the Filename too. If this is standard > behavior then I do not need to concatenate the Path and Filename. Yes, that is standard, it will never change or lots of applications will break. Angus -- To

Re: [twsocket] SSL enabling SMTPCLi

2017-05-04 Thread Angus Robertson - Magenta Systems Ltd
> thanks for your valuable information! > Some of it indicates, that it might indeed be easier than feared > after looking at the demo project. ;-) Or look at the code of my mail queue component, which validates chains using either a PEM bundle or the windows store, just borrow the code. I've

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-25 Thread Angus Robertson - Magenta Systems Ltd
> I get the login data for the login page using "POST" and > "PostASync", but when doing a GET on the next page that > should be accessed with the logged in user Almost certainly cookies, these are not handled internally between requests, you need to repeat your line: HttpCli1.Cookie :=

Re: [twsocket] Stopping FTP upload

2017-05-31 Thread Angus Robertson - Magenta Systems Ltd
> What's the best way to stop TFTPServer from allowing a user (all > users) to upload a file ? TFtpCtrlSocket has a property AccountReadOnly which is not used in the actual component, but should be set in your application upon login depending on what rights the user should have. You then

Re: [twsocket] TSslHTTPCli and Sessions

2017-05-31 Thread Angus Robertson - Magenta Systems Ltd
> I need to make connections every 1 second, Data, and of that > received data make another connection depending on the content, > my question is, how to wait the data of the first connection and > only then make the second, third etc In the timer, you simply check State <> httpReady and give up

Re: [twsocket] Aborting PUT

2017-06-27 Thread Angus Robertson - Magenta Systems Ltd
> Only remaining is the Resume option. Thanks for the suggestion. > Question: With TFtpClient to Resume transfer do I have to know > the remote file size ? You only have to know the position from which you want to resume, ie the size of the file partially downloaded. But unless you know the

Re: [twsocket] Problem with linebreaks in TMimeDecode

2017-09-19 Thread Angus Robertson - Magenta Systems Ltd
> I'm using ICS TPop3Cli/TSslPop3Cli components together with a > TMimeDecodeW component to handle incoming mails. Please forward two or three of these emails to my account, not the mailing list, so I can check them in my own MailMaint email reader that uses the latest ICS. Make sure the

Re: [twsocket] How to fill ICS SSL with different certificates ?

2017-09-22 Thread Angus Robertson - Magenta Systems Ltd
> 'd like to use a PKCS#7 certificate with ICS 8.44. and OpenSSL > 1.1.0f, but I don't know which properties to initialize. You should load OpenSSL at the start, before calling any SSL functions, otherwise it may get loaded and reloaded and be unpredictable. Your code is then confused about

Re: [twsocket] How to fill ICS SSL with different certificates ?

2017-09-22 Thread Angus Robertson - Magenta Systems Ltd
> So this sequence is not needed : For backward compatibly, there are several ways of loading certificates and private keys, and they may be in separate or bundled files. You only need to use the method that matches the files you are expecting, and only once. > Threre is a key file too, which

[twsocket] HTML unicode decoding

2017-09-20 Thread Angus Robertson - Magenta Systems Ltd
ICS V8.50 in the overnight zip now includes various new functions to assist with determining the character set and codepage for HTML content received from HTTP servers, and to convert correctly to Delphi unicode strings. The character set is determined according to the rules: 1 - HTTP

Re: [twsocket] ICS for MacOS target

2017-10-05 Thread Angus Robertson - Magenta Systems Ltd
> After a few minor modifications (see below), it compiles > successfully on MacOS. > > OverbyteIcsCryptuiApi:34 > - move {$IFDEF MSWINDOWS} to after "interface" > > OverbyteIcsFtpSvr.pas:2120 > - use System.SysUtils.DirectoryExists(Dir) > > OverbyteIcsSmtpProt.pas:2219: > - use ErrorCode

[twsocket] OT: QUIC protocol

2017-09-07 Thread Angus Robertson - Magenta Systems Ltd
Everyone has heard of TCP and UDP, now a new transport layer protocol has been developed by Google, QUIC which stands for 'Quick UDP Internet Connections'. https://en.wikipedia.org/wiki/QUIC QUIC aims to be nearly equivalent to an independent TCP connection, but with much reduced latency (goal:

Re: [twsocket] TDnsQuery and DnsQueryAAAA

2017-09-05 Thread Angus Robertson - Magenta Systems Ltd
> I need to resolve IPv6 address for domain name (google.com -> > 2607:f8b0:4006:80e:0:0:0:200e) > To do it I call: > DnsQuery.QueryAny('google.com',DnsQuery); The component does not currently support records directly. You can use WSocketIPv6ToStr to convert the 16 bytes of IPv6

Re: [twsocket] How to fill ICS SSL with different certificates ?

2017-09-24 Thread Angus Robertson - Magenta Systems Ltd
> But is it safe to upgrade to a SVN version rather to stay on the > stable version provided on the getit platform for our customers ? > A SVN version come with patches but with new bugs too, so;) > > Actually GetIt has the 8.44 and SVN is already on 8.50 I hope it > would be a stable

Re: [twsocket] FTP over SSH

2017-10-18 Thread Angus Robertson - Magenta Systems Ltd
> The server is owned by a state administration and we have no > choice possible or at least we can not offer another file tranfer > solution... FileZilla Client offers SSH FTP. Not looked for SSH FTP Delphi components, never used the protocol. Angus -- To unsubscribe or change your

[twsocket] ICS V8.50 is now latest stable release

2017-10-23 Thread Angus Robertson - Magenta Systems Ltd
ICS V8.50 has replaced V8.49 as the latest stable release. There are various bug fixes for changes in V8.49 and better compatibility with OS-X and C++. The only substantial new feature is HTML unicode decoding with various new functions to assist with determining the character set and

Re: [twsocket] THttpCli and Socks Proxy

2017-11-24 Thread Angus Robertson - Magenta Systems Ltd
> So today I have dived into OverByteIcsHttpProt.pas and made a few > small hacks as under to bypass the DNS lookup: Thanks, I will look at this, but not this month. Stuff like this is easy, it only got broken because SOCKS got forgotten. > For me, a cleaner way would be to get the IP address

Re: [twsocket] THttpCli and Socks Proxy

2017-11-23 Thread Angus Robertson - Magenta Systems Ltd
> I was quickly able to implement the telnet part using a TWSocket > component. This works successfully through the Socks proxy and I > am very happy with it. A particular point to note is that DNS > resolution is done by the proxy machine, which is a requirement > of the project. > > For the

Re: [twsocket] THttpCli and Socks Proxy

2017-11-25 Thread Angus Robertson - Magenta Systems Ltd
> Btw, isn't this line > > FCtrlSocket.SslEnable := ((FProxy = '') and (FProtocol = > > 'https')); > silently drops security transfer? A little googling suggests the SOCKS protocols do not officially support SSL, although some implementations like Wingate will accept an SSL/TLS connection

Re: [twsocket] LocalIPList on Mac

2017-12-20 Thread Angus Robertson - Magenta Systems Ltd
> It seems that LocalIPList on a Mac (POSIX) returns only a single > IP address > Note that it seems that gethostbyname() is also a documented as > depreciated function. > I switched and used IcsGetInterfaceList() which seems to work. I > can toss out the AF_INET6 records and the local loop

Re: [twsocket] Using the SslFTPClient

2017-12-20 Thread Angus Robertson - Magenta Systems Ltd
> I use the 01cert.pem etc. as example files SSL client applications don't need certificate or private key files, unless the server is high security and requires secure identification of remote users, like access to corporate LANs, money transfer services. You only need a root CA file bundle, and

Re: [twsocket] FTP Client

2017-11-17 Thread Angus Robertson - Magenta Systems Ltd
> If I try and connect to a FTP server and that computer isn't even > switch on, the FTP client gives up after about 25 seconds. Is > this timeout goverened by the FTP component or by something > deeper down in Windows networking. I was just wondering if I > could shorten this timeout period.

Re: [twsocket] Twsocket Problem over Internet.

2017-11-10 Thread Angus Robertson - Magenta Systems Ltd
> HI for all, i do a prototype to transfer a imagem overt internet > with Twsocket, > but in local network works fine, but when i test with a remote > computer in internet connection > the file is sended but dont receive or receive a image with lost > collor. Your code assumes that Send() will

Re: [twsocket] Twsocket Problem over Internet.

2017-11-14 Thread Angus Robertson - Magenta Systems Ltd
> anything is wrong ? Do you mean your code does not work correctly. We have made various suggestions about how it should be written to work correctly, but you have yet to implement any of them. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] TWSocket...

2017-11-14 Thread Angus Robertson - Magenta Systems Ltd
> If I call TWSocket .Connect and Windows times out (about 25 > seconds), I get the TWSocket .SessionClosed callback. How do I > determine it was a timeout and not just a normal close? The onSessionConnected event is always called after Connect, with an Error number. If not zero, connection

Re: [twsocket] TWSocket...

2017-11-14 Thread Angus Robertson - Magenta Systems Ltd
> >That is 25 versions old, lines move. What function? > function TCustomWSocket.GetPeerAddr: String; Thanks, literal corrected. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website

Re: [twsocket] FTP Client

2017-11-20 Thread Angus Robertson - Magenta Systems Ltd
> ICS sockets have built-in timeout feature, just define > BUILTIN_TIMEOUT and use TimeoutIdle / TimeoutConnect / OnTimeout. I suspect TimeoutConnect has never been tested, it is not implemented in any ICS protocol components or samples. Components like FTP would need the OnTimeout event to

Re: [twsocket] Install V8.50 on C++ Builder 10.2.1

2017-11-18 Thread Angus Robertson - Magenta Systems Ltd
> So I can send you the complete package containing project group > and all six package project files. Thanks, please send to my email, not the list. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Twsocket Problem over Internet.

2017-11-11 Thread Angus Robertson - Magenta Systems Ltd
> I try send by block and have the same problem. > Sleep(100); If you changed that to Sleep(5000) it would probably work, but very slowly As I said originally, you should be using the OnDataSent to determine when the data is sent successfully, not just waiting and assuming the

[twsocket] OpenSSL 1.1.0g and 1.0.2m support

2017-11-03 Thread Angus Robertson - Magenta Systems Ltd
Four new zips for Win32 and Win64 versions of OpenSSL 1.1.0g and 1.0.2m can now be downloadable from the Wiki at: http://wiki.overbyte.eu/wiki/index.php/ICS_Download PLEASE NOTE the EU in the URL, not BE, this is a new wiki server. There is one moderate security fix relating to Intel

Re: [twsocket] I like to send emails with ssl/01cert.pem but certificate too weak according gmail, any solution?

2017-12-05 Thread Angus Robertson - Magenta Systems Ltd
> I_m trying to send email via gmail.com. Which perfectly worked > since a while ago. > but now it seems gmail (I think this is the reason) is rejecting > the 01cert.pem certificate Because the encryption is too weak. Client SSL applications rarely need to send certificates, so just leave

Re: [twsocket] I like to send emails with ssl/01cert.pem but certificate too weak according gmail, any solution?

2017-12-06 Thread Angus Robertson - Magenta Systems Ltd
> What happens if this value is left blank as well -- does it skip > checking validity of CA? Is there any way to have the components > instead use the CA roots that Windows maintains in the > Certificate Store? Yes, the sample OverbyteIcsMsVerify.dpr will Verify a certificate chain using the

Re: [twsocket] What's wrong in my code with SSL on some web site?

2017-12-09 Thread Angus Robertson - Magenta Systems Ltd
> I'm trying to post some data to some of my https web sites (for > sample https://www.millesimo.com/index.php) but I always get the > error "SSL handshake failed". My code works well with other sites > (https://www.microsoft.com/it-it, for sample). > > ICS: r20 | francois | 2009-09-10

Re: [twsocket] What's wrong in my code with SSL on some web site?

2017-12-10 Thread Angus Robertson - Magenta Systems Ltd
> In C++Builder 6.0 you can use (u)int64_t in your code This was 12 years ago now, but I think the main issue was 64-bit streams which did not work until Delphi 7, and I assume that is after CB6. But I never worked on C++. Angus -- To unsubscribe or change your settings for TWSocket mailing

Re: [twsocket] What's wrong in my code with SSL on some web site?

2017-12-09 Thread Angus Robertson - Magenta Systems Ltd
> I suppose that version 8 doesn't works with the old C++ Builder > 6.0 (I can't change this, for now), so I have no choice. I think you are stuck with ICS v5. ICS v6 in 2012 ceased support for CB6, with CB2006 the oldest, which we still support with v8. New versions have new language

Re: [twsocket] Major new automatic SSL/TLS X509 certificate component

2018-05-23 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* Re: [twsocket] Major new automatic SSL/TLS X509 > I'm a litte affraid to update, I have so many systems now running > with ICS and if something breaks. I do try to avoid changes that are not backward compatible, but do sometimes get caught out moving utility functions from protocol

[twsocket] Major new automatic SSL/TLS X509 certificate component

2018-05-23 Thread Angus Robertson - Magenta Systems Ltd
SVN and the overnight zip have been updated with a new TSslX509Certs component that automatically downloads SSL/TLS X509 certificates from various suppliers, and a new sample application to test it. This is still a beta component, with a number of planned improvements that should be done in June,

Re: [twsocket] Angus TLS certificate works

2018-05-24 Thread Angus Robertson - Magenta Systems Ltd
> Use a public domain and certificate that does not generally > have any public facing servers, except for port 80 when you > collect the certificate. You can also authenticate commercial domain validated certificates by email so don't need a public server at all, ie use internal.mydomain.com

Re: [twsocket] ICS V8.52 allows testing of SSL TLSv1.3 protocol

2018-06-08 Thread Angus Robertson - Magenta Systems Ltd
I've fixed the ICS bug that stopped ICS servers negotiating TLSv1.3 connections with the last couple of OpenSSL betas, which sent new callback messages. Also client session caching should work now for TLSv1.3. SVN is updated, the overnight zip later this evening. You also need OpenSSL

[twsocket] TLSv1 deprecated

2018-06-13 Thread Angus Robertson - Magenta Systems Ltd
>From 30 June 2018, TLSv1 is being deprecated by the PCI Data Security Standard (PCI DSS) for safeguarding online payment data. Even if your servers do not accept online payments, most security scanning software will expect this standard. Note the TLS level is primarily determined by the server,

Re: [twsocket] New version

2018-06-13 Thread Angus Robertson - Magenta Systems Ltd
> I read on some website that the next version of ICS will be > compatible with Android. Already have some forecast of the next > version? Sorry, very little effort has gone into an Android version, it's really needs substantial financial or manpower support from a company that needs it to

Re: [twsocket] FTP upload speed

2018-05-29 Thread Angus Robertson - Magenta Systems Ltd
> I have this in my code (I think lifted from your example) You really don't need any code, the default is no bandwidth control. > Not sure what else to do to try and diagnose. Try a different server, such as mine which is the ICS FTP server. I'll email a login. Angus -- To unsubscribe

Re: [twsocket] FTP upload speed

2018-05-29 Thread Angus Robertson - Magenta Systems Ltd
> Is there any upload speed throttling built in to the TMagFTP > component (or Overbyte one) ? All ICS components have optional bandwidth limiting, it's part of WSocket, on the XferDemo3 it's set by the Bandwidth Limit field which should generally be zero. I do know from experience that ICS

Re: [twsocket] ICS V8.52 allows testing of SSL TLSv1.3 protocol

2018-05-30 Thread Angus Robertson - Magenta Systems Ltd
Another planned OpenSSL beta release this week. OpenSSL 1.1.1-pre7 (beta) is available for download, needs the overnight/SVN ICS V8.54 version to load. This beta support TLSv1.3 draft 28, which is hopefully he final version and is supported by several test web sites. Unfortunately TLSv1.3

Re: [twsocket] OverbyteICSSmtpProt IFNDEF missing?

2018-07-02 Thread Angus Robertson - Magenta Systems Ltd
> I'm wondering if there is some minor mistake in the > OverbyteSmtpProt.pas file of the ICS library. > I would expect that here also a check for the NO_DEBUG_LOG define > is required. This is now fixed in SVN, also for POP3 and three more recent units that are all fault. Finally built the

[twsocket] Testing the list

2018-05-02 Thread Angus Robertson - Magenta Systems Ltd
The mailing list has been down for a week or more, but should be working again if this message appears... Angus Original Message *Subject:* Re: [twsocket] C++Builder XE7. Just need TPing *From:* E P *To:* twsocket@lists.elists.org *Date:* Thu, 19 Apr 2018

[twsocket] Major new REST and OAuth components

2018-05-03 Thread Angus Robertson - Magenta Systems Ltd
SVN and the overnight zip have been updated with three new major units and two new demos for REST, OAuth2, Jose and Json, a fourth new unit and sample for getting X509 certificates automatically will follow soon. Please note these new units should be considered early betas, and may change to add

Re: [twsocket] ICS V8.52 allows testing of SSL TLSv1.3 protocol

2018-05-03 Thread Angus Robertson - Magenta Systems Ltd
Another planned OpenSSL beta release this week. OpenSSL 1.1.1-pre6 (beta) is available for download, needs the overnight/SVN ICS V8.54 version to load. This beta support TLSv1.3 draft 26, which is increasingly being supported by several test web sites. Unfortunately something in ICS has

Re: [twsocket] Wiki...

2017-10-26 Thread Angus Robertson - Magenta Systems Ltd
> Is it just me or has the Wiki > (http://wiki.overbyte.eu/wiki/index.php) disappeared? It was fine on Tuesday, but the VM has probably run out of disk space (again) so is currently dead, only Francois can fix it. As always, the latest overnight zip and SSL files may be downloaded from my web

[twsocket] Arno Garrels RIP

2017-10-27 Thread Angus Robertson - Magenta Systems Ltd
Many of you will remember Arno Garrels, who was a major contributor to ICS for many years. In April 2014, he privately told Francois and I that he was being treated for cancer, we heard from him a couple more times, but then nothing. I've just found an obituary from a old friend saying he

Re: [twsocket] tlsv1 unrecognized name

2017-10-27 Thread Angus Robertson - Magenta Systems Ltd
> A customer is reporting an issue. Perhaps someone understands > this error better than I do: > Error: 10053, Status: 404, Reason: SSL handshake failed - > error:14094458:SSL > routines:ssl3_read_bytes:tlsv1 unrecognized name SSL handshake failures are difficult to diagnose, despite the

Re: [twsocket] LocalIPList on Mac

2018-01-03 Thread Angus Robertson - Magenta Systems Ltd
> 1) It seems that IcsGetInterfaceList() would fail if, for some > odd reason, the computer only had IPv6 interfaces. This would only be on Windows not MacOS, and I suspect it's impossible to install Windows without IPv4, too much stuff is dependent on it. > 2) This is my function to replace

Re: [twsocket] Using the SslFTPClient

2018-01-10 Thread Angus Robertson - Magenta Systems Ltd
> I have 2 ftp components and both are logged into the server. The > first just does a LIST command every 3 seconds. The second does > the GET commands. > After 198 GETs I receive and error 10054. I re-connect both ftp > clients and after a further 198 GETs the same thing happens again. So you

Re: [twsocket] LocalIPList on Mac

2018-01-21 Thread Angus Robertson - Magenta Systems Ltd
ress BOTH Returns IPv6 link-local address but not IPv4. IcsGetInterfaceList: PC - Missing IPv6 addresses So if you don't care about IPv6, link-local and filter any duplicates, it seems to work! Bill -Original Message- From: TWSocket [mailto:twsocket-boun...@lists.elists.org] On Behalf O

Re: [twsocket] Active, Passive and Data Port Range

2018-01-29 Thread Angus Robertson - Magenta Systems Ltd
> Am I correct in assuming the following: > > In Active mode, the Data Port Range is set by the FTP client (if > required) > > In Passive Mode, the Data Port Range is set by the FTP server (if > required) The ICS FTP server has no concept of restricting Data Port Range, no idea if other

Re: [twsocket] Using the SslFTPClient

2018-01-28 Thread Angus Robertson - Magenta Systems Ltd
> It would appear that this is a Windows Firewall issue after all. > I am using Windows 10 and if I turn off the Private AND Public > Firewalls, the problem of "peer reset" after a certain number of > transfers does not occur. Is Windows Firewall aware of your application? You can add it to

Re: [twsocket] Using the SslFTPClient

2018-02-12 Thread Angus Robertson - Magenta Systems Ltd
> I see that the component supports MODE S and MODE Z. Is there any > way it can, or will in the future, support MODE B (Block)? Block mode goes back to the RFC959 written over 40 years ago, before the internet really existed and FTP was used by mainframe computers. I've never really come

Re: [twsocket] Using the SslFTPClient

2018-02-12 Thread Angus Robertson - Magenta Systems Ltd
> The only reason I mentioned it was, as you may remember, my > mission is to connect to a Linux FTP server using AUTH TLS. > Everything is fine except if I select "Passive" mode and > PROT=Private, I cannot login. I get SSL handshake errors. They > suggested that I should use BLOCK mode in

Re: [twsocket] Using the SslFTPClient

2018-02-11 Thread Angus Robertson - Magenta Systems Ltd
> I have set Active Mode and the Data Port Range to 1..10010 > I connect to the Demo Server and click on the "Get" button. > I have a breakpoint where the Data Port number is allocated so I > can see it increment through the above range. > When it gets to 10010 it loops back to 1. > The

Re: [twsocket] Using the SslFTPClient

2018-02-20 Thread Angus Robertson - Magenta Systems Ltd
> In response to the FEAT request, some servers just return "PROT" > and the current test for PROT P will always fail. > This is the minor change I have made to the FTP Client. It would > be nice if this could be added so I don't have to modify the > source after each update: I'll put it on my

Re: [twsocket] unable to link design time CB2007 as missing external file 'crypt32'

2018-02-24 Thread Angus Robertson - Magenta Systems Ltd
> These appear to external references to crypt32, yet I don't have > that file (I believe). OverbyteIcsMsSslUtils is used to verify SSL certificates using the Windows certificate store, if you don't need that functionality you can remove it. Most SSL samples don't use it. But if you do use

Re: [twsocket] Bug report. TSslSmptCli. Memory corruption on second connection after the first connection is aborted.

2018-02-21 Thread Angus Robertson - Magenta Systems Ltd
> After some investigation I've found the breakage commit > So, I propose this fix. I use the latest SMPT and POP3 components every few minutes and am not aware of any current issues with their proper use. But I've printed your email, and if I can reproduce your problem I will look at your

Re: [twsocket] Building OpenSSL

2018-02-19 Thread Angus Robertson - Magenta Systems Ltd
> Also any chance that wiki.overbyte.eu will be changed to work > over https? I'm kind of wary of downloading OpenSSL binaries over > unencrypted connection. The Overbyte web sites do need to support SSL in the next few months otherwise Chrome will refuse to open them. But there is no real

Re: [twsocket] Using the SslFTPClient

2017-12-26 Thread Angus Robertson - Magenta Systems Ltd
> Hold fire on what I said before. I am still in learning mode as > this is all new to me. I would suggest you at least try the compiled version of my high level TMagFtp component from: https://www.magsys.co.uk/delphi/magxfer.asp which handles all this stuff automatically. If TMagFtp works,

Re: [twsocket] ICS V8.52 allows testing of SSL TLSv1.3 protocol

2018-06-21 Thread Angus Robertson - Magenta Systems Ltd
Another planned OpenSSL beta release this week. OpenSSL 1.1.1-pre8 (beta) is available for download, needs the overnight/SVN ICS V8.55 version to load. This beta supports TLSv1.3 draft 28, which should be published as RFC8446 shortly, followed by one more OpenSSL beta, before the final long

[twsocket] TLSv1.3 published

2018-08-11 Thread Angus Robertson - Magenta Systems Ltd
Transport Layer Security (TLS) Protocol Version 1.3 has finally been published as RFC8446. https://tools.ietf.org/rfc/rfc8446.txt OpenSSL will be doing a final beta of 1.1.1 shortly followed by the final release later this month. New versions of ICS will be needed for both of these. A new

Re: [twsocket] using Twsocket with a few thousand clients

2018-08-11 Thread Angus Robertson - Magenta Systems Ltd
> i have created a tcp server using Twsocket but after 40 clients > connected the server stopped from listing How do you know that, I don't see anything in your code to check if the server is listening. And there is no error handling or logging, so you don't really know what is happening

[twsocket] OpenSSL 1.1.0i and 1.0.2p support

2018-08-15 Thread Angus Robertson - Magenta Systems Ltd
Four new zips for Win32 and Win64 versions of OpenSSL 1.1.0i and 1.0.2p can now be downloadable from the Wiki at: http://wiki.overbyte.eu/wiki/index.php/ICS_Download I have not added these to SVN since OpenSSL 1.1.1 is due to be released within the next month and will replace 1.1.0. There are

Re: [twsocket] Efficient bulk dns lookup

2018-08-14 Thread Angus Robertson - Magenta Systems Ltd
> I need to perform bulk dns lookup (for example get A and MX > records for several millions domains). > > How to use TDnsQuery most effective: > It's possible to reach at least 7000-8000 lookups per second ? > I use about 35 public DNS servers to perform my queries. You are probably reaching

Re: [twsocket] Erro in TService with TWSocketServer component in

2018-08-14 Thread Angus Robertson - Magenta Systems Ltd
> Could you inform me which ICS and Rad Studio XE version are you > using ? All versions of ICS and all versions of Delphi since 7. But you should be using the latest stable version which is V8.53 from: http://wiki.overbyte.eu/wiki/index.php/ICS_Download > and Could you give me sample source

Re: [twsocket] using Twsocket with a few thousand clients

2018-08-12 Thread Angus Robertson - Magenta Systems Ltd
> Is there any clear demo to run tcp server in threaded manner ? > The demos in the source confused me too much is there any updated > demo to better serv tcp with threading as you suggested ? Don't worry about a threaded server until you reach a slow down on your non-threaded version, get the

Re: [twsocket] Efficient bulk dns lookup

2018-08-15 Thread Angus Robertson - Magenta Systems Ltd
> So, if I create more than 200 http instances (with TCP sockets > inside) I will have same limit like with UDP, right ? And no see > any speed difference ! TCP is a streaming protocol, you open the socket once and can then send multiple HTTPS DNS requests without connecting again and starting

[twsocket] Please ignore

2018-08-06 Thread Angus Robertson - Magenta Systems Ltd
Just checking the mailing list is still behaving itself, and whether it can cope with the anti-spam DMARC (Domain-based Message Authentication, Reporting and Conformance) policies. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Erro in TService with TWSocketServer component in ICS V8

2018-08-12 Thread Angus Robertson - Magenta Systems Ltd
> I'm trying to make Service application using TWSocketServer > component in ICS V8 Revised: October 2, 2013 on RAD studio XE3 Why are you using a five year old version? > I just made simple service program which have just TWsocketServer > component only but when I install it with "testsvc

Re: [twsocket] using Twsocket with a few thousand clients

2018-08-12 Thread Angus Robertson - Magenta Systems Ltd
> Its stopped from listening when I start loop through clients and > send back data to each one of connected cient > > I have a similar server that created with indy with the same code > logic and can run 1200 clients per port . The ICS server has been tested with over 1,200 simultaneous

Re: [twsocket] Efficient bulk dns lookup

2018-08-14 Thread Angus Robertson - Magenta Systems Ltd
> The new HTTPS REST OverbyteIcsHttpRestTst sample allows you to > make Json DNS look-up requests to Cloudflare. In the sample, set URL: https://cloudflare-dns.com/dns-query Then three REST parameters in the grid, all raw: name=www.bbc.co.uk type=A ct=application/dns-json set GET and URL

Re: [twsocket] Efficient bulk dns lookup

2018-08-14 Thread Angus Robertson - Magenta Systems Ltd
> I think Cloudflare not allow me millions dns lookups for free )) You can search their terms and conditions, but 1.1.1.1 is free. It should not take you long to write code to try DNS over HTTPS and find out how many lookups you can manage per second. If it blocks you, then you are correct.

Re: [twsocket] Freeze on TWSocketServer close

2018-08-17 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* [twsocket] Freeze on TWSocketServer close > *From:* Engi > *To:* "ICS support mailing," > *Date:* Fri, 17 Aug 2018 15:38:15 +0200 > > Hi, > > My program (a service) hosts 4 TWSocketServers in main thread. > Sometimes, when I ask the service to stop, the program freeze > after I

Re: [twsocket] TLSv1.3 published

2018-08-25 Thread Angus Robertson - Magenta Systems Ltd
> As I'm a neophyte on TLS evolution, could you make a small > summary of what v1.3 brings in? Briefly, TLSv1.3 is simplified and faster with fewer options, and more secure (harder to intercept with Wireshark and other tools) than TLSv1.2. From Wikipedia: Major differences from TLS 1.2

Re: [twsocket] TLSv1.3 published

2018-08-21 Thread Angus Robertson - Magenta Systems Ltd
Hopefully the last OpenSSL beta release of 1.1.1 today, with the final release in September. OpenSSL 1.1.1-pre9 (beta) is available for download as Win32 or Win64, needs the overnight/SVN ICS V8.57 version to load. http://wiki.overbyte.eu/wiki/index.php/ICS_Download This beta supports

Re: [twsocket] DnsResult hook for http and https connection

2018-09-05 Thread Angus Robertson - Magenta Systems Ltd
> Is there a better way to hook the DnsResult for THttpCli and > TSslHttpCli? There is new version in SVN, will get zipped this evening, that adds a new event, which will allow you to update DnsResult. >From the change log: When a host name is looked-up to get an IP address from a DNS

Re: [twsocket] ICS Sockets for sending receiving files

2018-09-08 Thread Angus Robertson - Magenta Systems Ltd
> I want to use ICS Sockets to send/receive files but can't see any > example. All examples are for Text.After working on developing my > application with FTP and getting to production stage I get to > know that AntiViruses hate FTP and they just throw my application > out. Therefore I am

Re: [twsocket] DnsResult hook for http and https connection

2018-09-02 Thread Angus Robertson - Magenta Systems Ltd
> Is there a better way to hook the DnsResult for THttpCli and > TSslHttpCli? There should really be an event to allow choice of which DNS result to use, specifically where several IP addresses are returned. We currently use the first and never try any alternates, so may fail if the first is

Re: [twsocket] HttpCli Request in Sync mode

2018-09-11 Thread Angus Robertson - Magenta Systems Ltd
> In thread mode, the DoRequestSync of httpcli and sslhttpcli will > spend more than 1000ms to wait for the http state chage, i think > the reason is the MsgWaitForMultipleObjects dont get QS_ALLINPUT > event in thread mode, I rarely use threaded mode for ICS components, except blocking stuff

Re: [twsocket] Error updating to last revision

2018-07-05 Thread Angus Robertson - Magenta Systems Ltd
> I'm trying to update ICS component to latest revision and get > errors when building design time component (no problems with run > time component). > Restoring my old revision (1 year old) I can build again both > components, You don't say what versions fail or work, the real latest is V8.55

Re: [twsocket] IPv6 support for Socks5 and Http proxy

2018-07-08 Thread Angus Robertson - Magenta Systems Ltd
> I added IPv6 support for TCustomSocksWSocket and > TCustomHttpTunnelWSocket Thanks, your changes have been merged and are now in SVN. I can not easily test SOCKS and tunnelling, so can you please confirm these changes work this week, otherwise I'll need to revert to the older version. You

Re: [twsocket] Error updating to last revision

2018-07-06 Thread Angus Robertson - Magenta Systems Ltd
> I'm using RAD Studio 2009 and ICS from repository updated manualy > (using subversion). Thanks, however while the latest ICS is developed and tested using Delphi 2007 and 10.2 and should be compatible with Delphi 2009, I don't use C++ nor test with 2009. Several users here are using the

Re: [twsocket] Idle Socket is closed even with KeepAlive under windows

2018-07-11 Thread Angus Robertson - Magenta Systems Ltd
> I working on a device communication protocol using TCP with > TWSocketServer and TWSocket. (Delphi XE Project) > Small description: This device Sorry don't understand what you are doing. Is this two ICS applications talking together as client and server, or a physical device opening client

Re: [twsocket] FW: TSslFtpClient...

2018-07-13 Thread Angus Robertson - Magenta Systems Ltd
> Needs a space before 'bytes... > > Buffer:= IntToKByte(FByteCount) + ' bytes received/sent in '; Which would then say '14.5M bytes received/sent' rather than 14.5Mbytes at present. Ideally the function would be more intelligent to allow for small and large figures. But if you don't

Re: [twsocket] Idle Socket is closed even with KeepAlive under windows

2018-07-12 Thread Angus Robertson - Magenta Systems Ltd
(reply from original poster) Thanks for taking your time to help me! >> I working on a device communication protocol using TCP with >> TWSocketServer and TWSocket. (Delphi XE Project) >> Small description: This device > Sorry don't understand what you are doing. > > Is this two ICS applications

Re: [twsocket] FW: TSslFtpClient...

2018-07-12 Thread Angus Robertson - Magenta Systems Ltd
> I set up the properties and called SslFtpClient1.Receive; Which does not allow to control anything or make choices about what server commands to use, or indeed do more than a single file. You should use ConnectFeat, check the FEAT response for capabilities, then download your files. >

Re: [twsocket] FW: TSslFtpClient...

2018-07-12 Thread Angus Robertson - Magenta Systems Ltd
> Altered the settings to support FTPS Explicit SSL/TLS, set the > TSslFtpClient.SslType to sslTypeAuthTls, and getting the file > worked. > > Altered the setting TSslFtpClient.SslType to sslTypeAuthSsl, and > getting the file failed. sslTypeAuthTls and sslTypeAuthSsl do the same thing but

Re: [twsocket] Using the SslFTPClient

2018-01-23 Thread Angus Robertson - Magenta Systems Ltd
> Any clues as to whether or not there is something wrong with the > ICS components or is it my setup? Sorry no, I download hundreds of files a day from my servers using secure FTP, totalling hundreds of megs, and problems are very rare. I suggest you try and use FTP with a single component,

Re: [twsocket] Trying to install latest overnight into Tokyo 10.2.3 Rad Studio

2018-04-04 Thread Angus Robertson - Magenta Systems Ltd
> Hi folks, having a bit of trouble installing the overnight into > 10.2.3 Tokyo. I can build all the runtimes (VCL and Fmx) without > incident per the instructions, but when I attempt to install any > of the design time components, I get an error saying it can't > load the package, "The

Re: [twsocket] ICS V8.52 allows testing of SSL TLSv1.3 protocol

2018-04-04 Thread Angus Robertson - Magenta Systems Ltd
Another planned OpenSSL beta release yesterday. OpenSSL 1.1.1-pre4 (beta) is available for download, needs the overnight/SVN ICS V8.53 version to load. This beta support TLSv1.3 draft 26. TLSv1.3 is currently at draft 28 and has been submitted for final publication, but there are no

[twsocket] ICS V8.53 is now latest stable release

2018-04-06 Thread Angus Robertson - Magenta Systems Ltd
ICS V8.53 has replaced V8.50 as the latest stable release. and can be downloaded from: http://wiki.overbyte.eu/wiki/index.php/ICS_Download There are a lot of changes in readiness for OpenSSL 1.1.1 due to be released in May, this version only supports the latest beta version and another ICS

Re: [twsocket] ICS V8.52 allows testing of SSL TLSv1.3 protocol

2018-04-18 Thread Angus Robertson - Magenta Systems Ltd
Another planned OpenSSL beta release yesterday. OpenSSL 1.1.1-pre5 (beta) is available for download, needs the overnight/SVN ICS V8.54 version to load. This beta support TLSv1.3 draft 26, which is increasingly being supported by several test web sites. Building the latest Browser sample

[twsocket] SSL trusted root certificate bundles

2018-03-18 Thread Angus Robertson - Magenta Systems Ltd
The whole SSL certificate verification process depends upon finding a trusted root certificate that signed the next certificate up the chain, and so on. But who chooses those trusted roots? The answer is the author of the application that accepts an SSL certificate, or maybe the operating

<    1   2   3   4   5   >