06-13-2020, 08:25 PM
(This post was last modified: 06-13-2020, 09:23 PM by controlhorus.)
(06-13-2020, 08:12 PM)rlebeau Wrote:(06-13-2020, 03:11 PM)controlhorus Wrote: Solved in this way:
Code:procedure TForm.OnStatusInfoEx(ASender: TObject; const AsslSocket: PSSL;
const AWhere, Aret: TIdC_INT; const AType, AMsg: String);
begin
SSL_set_tlsext_host_name(AsslSocket, 'api.server.com');
end;
Indy calls SSL_set_tlsext_host_name() for you, you do not need to call it manually. Make sure you are using an up-to-date version of Indy.
I downloaded from SVN and updated it yesterday trying to solve the problem. It is 10.6.2.0 I think.
Code:
ShowMessage('Indy version: ' + IdHTTP1.Version);Thank you
Hi
I fear I did not see GIT change.
I downloaded SVN and I used tag Indy 10.6.2 - XE8 RTM for update. It has not that line:
Code:
IdSSLOpenSSL.pas
error := SSL_set_tlsext_host_name(fSSL, fHostName);Tag Indy 10.6.2 - Tokyo RTM had it. Bad luck.
I just downloaded GIT version and used Lib folders to update again. Now it is working without the added lines.
Thank you

