Jump to content
Registration disabled at the moment Read more... ×

Angus Robertson

Members
  • Content Count

    2099
  • Joined

  • Last visited

  • Days Won

    39

Everything posted by Angus Robertson

  1. Angus Robertson

    Spelling and search

    How do I spell check a post? How do I search for old posts? Angus
  2. USE_SSL is defined for the main ICS distribution, since most applications need it today. Angus
  3. Angus Robertson

    Win XP app fails to start -- missing bcrypt.dll

    bcrypt.dll is only used if OpenSSL is compiled for Windows 7 or later, but I'm afraid that is how our binaries are built, since Windows XP is long out of support. You will need to keep using an older version of OpenSSL for Windows XP, or perhaps find binaries built by someone else for Windows XP. ICS will cease supporting OpenSSL older than 1.1.1 from the end of the year, when support ceases, allowing us to remove old redundant code. Angus
  4. Angus Robertson

    ICS registration

    Where did you find that file, it was removed from the distributions 10 years ago when SSL become free? Angus
  5. Angus Robertson

    Hang problem

    If the server is written correctly, it will run for weeks without hanging, despite unfriendly clients and internet issues, and my servers do exactly that. The most likely explanation for hanging is you are ignoring all client socket errors, and writing so much data that the local buffers overflow. Generally, ICS applications are written to send data within the OnDataSent event which is fired when the buffers have space for more data to send, look at the HTTP and FTP client components. There is a property BufferedByteCount that shows unsent data, but you generally don't need to use this when using OnDataSent to send the next block from your stream. Angus
  6. Angus Robertson

    tls-srp with http?

    The latest OpenSSL still lists several SRP ciphers, but they are shown as only supporting SHA1 and SSLv3, neither of which are allowed any longer with TLS, so no idea if they still work. You would need a custom OpenSSL implementation to allow the session password to be specified somewhere, SRP is rarely used. Angus
  7. Angus Robertson

    TSslHttpCli

    > Is there a way to know that the TRestOAuth component has updated the authorization token if autoupdate is set?  Use the OnOAuthNewToken event and illustrated in the sample application. Angus
  8. Angus Robertson

    TCP Receiving Binary File

    The user made samples are 15 to 20 years old and few probably work with the latest version of ICS. You should really be looking at OverbyteIcsBinCliDemo.dpr in Samples\delphi\SocketDemos which is more up to date. But still does not use a stream. So perhaps look at a new sample OverbyteIcsIpStmLogTst.dpr in \Samples\delphi\sslinternet which does receive binary streams of unlimited size. Angus
  9. Angus Robertson

    TSslHttpCli

    SVN and the overnight zip are updated with a new version of TSslHttpRest heavily rewritten to be more user proof, also need changes to TSslHttpCli which was why it was originally written badly. But now the REST responses are available in both the OnRequestDone and OnRestRequestDone events. Angus
  10. Your earlier changes are already in SVN and the overnight zip, with slight modification, I'll add this change next time. Strangely, I could not find any ICS client samples that test authentication, the BrowserDemo using HtmlViewer did not actually work despite putting up a login dialog box, which I have now fixed. But I've not got NTLM authentication working, sure I set it up many years ago on my IIS server, but can not remember how. Think it might need NT permissions set-up on restricted directories, but I'm hazy on this Angus
  11. Not sure if François is still updating midware, there is nothing newer in SVN. I'll let him answer. Angus
  12. Angus Robertson

    TSslHttpCli

    The Failed to Generate App Token message presumably originated from the OAuth2 server and was displayed in your browser, so our application can not see it. So no easy way to handle it. The component sees success by the browser redirecting to the local web server, but there is no redirect on failure. It is possible to embed a Microsoft Internet Explorer window into your application to handle OAuth2 and check responses, but this is not best security practice and some authentication servers may block use of embedded browsers. Angus
  13. Angus Robertson

    TSslHttpCli

    It is already published. Angus
  14. Is this OverbyteApsCli 7.00 last updated 2008? Angus
  15. Exactly what did you add? It should have been: soapaction: http://nsess.public.cz/erms/v_02_00/DokumentZalozeni Angus
  16. Thanks for the new units, don't see a problem adding them to SVN this week. However I really need a way to test the changes, independently of ICS, My network does not have a domain controller. Angus
  17. Angus Robertson

    TSslHttpCli

    Sorry, busy doing other things that must be finished by month end, will look at this next week, Angus
  18. Angus Robertson

    TSslHttpCli

    And I should not nave written code that allowed you to break the component, will fix it next week. Angus
  19. Angus Robertson

    TSslHttpCli

    I just told you, your application probably has the OnRequestDone event assigned, remove that and it will work properly. Angus
  20. Angus Robertson

    TSslHttpCli

    If your application has OnRequestDone assigned, then that will override TSslHttpRest.onHttpRequestDone so it is never called, that is a design flaw of mine which I will fix next week. Angus
  21. Angus Robertson

    TSslHttpCli

    Perhaps you are confusing two different events. OnRequestDone is an event raised by the base component TSslHttpCli and is handled in TSslHttpRest to process the body stream response into ResponseRaw. The OnRestRequestDone event is then called by TSslHttpRest and that is where the REST response should be processed. If your application uses OnRequestDone instead of OnRestRequestDone, no content will be available. > autorefresh token not work if app in Idle, eg minimized to tray? Windows applications continue to run when minimised, but not if Windows goes to sleep or is suspended by power management. Angus
  22. Angus Robertson

    TSslHttpCli

    Sorry, but if the component works correctly in the ICS sample application returning the correct information, there is no reason why it should not work in your own application, provided all the correct parameters are passed and you use the same events. Angus
  23. Angus Robertson

    Remote Desktop with ICS

    > I have an old code that I'm trying to translate, make it work with ICS I'd suggest you look at the OverbyteIcsIpStmLogTst.dpr sample project in V8.60 which uses the new TIcsIpStrmLog component. This may be be configured as either a client or a server and allows you to send and receive data, hiding most of the complexity of setting up the SSL connection, so you just have an event where data arrives, and a function to send data. The sample behaves as a client or server, or both. Angus
  24. Angus Robertson

    TSslHttpCli

    slhtprest.RestRequest(httpGET, url, True, ''); The third parameter is 'AsyncReq: Boolean = False;' which you have set true so you making asynchronous requests still, as per your root message, But it is not clear from anything you posted whether you are waiting for a response to your requests, or assuming the content is available immediately the request starts and that function returns. Either change that parameter to false to make it a synchronous request which means it won't return until there is a response, or process the response in the OnRestRequestDone event as the demo application does. Angus
  25. Angus Robertson

    TSslHttpCli

    What is in ResponseRaw? Should be 236 bytes of data per the demo. If not, your code is different to the demo. Angus
×