I installed V8.70.
I created a new project, put TSslHttpRest on the form and was able to get a successful compilation and linking. To do this, among other things, I had to connect a copy of the OverbyteIcsWinCrypt.hpp file to the project and comment out a number of lines in it to avoid errors.
I included the files libssl-3.dll and libcrypto-3.dll to the project.
void __fastcall TForm1::Button1Click(TObject *Sender){
AnsiString ss;
int ii;
short nn;
bool async;
ss="..\\OpenSSL-Win32//";
GSSL_DLL_DIR=ss;
//GSSLEAY_DLL_IgnoreNew=true; // { ignore OpenSSL 3.0 and later }
GSSLEAY_DLL_IgnoreOld=false;
ss="https://google.com";
THttpRequest req=httpGET;
AnsiString raw_prams="";
async=false;
//async=true;
SslHttpRest1->RestParams->Clear();
ii=-1;
ii=SslHttpRest1->RestRequest(req, ss, async, raw_prams);
ii=SslHttpRest1->StatusCode; // 200
Edit1->Text=IntToStr(ii);
ss=SslHttpRest1->ContentType;
ss=SslHttpRest1->ResponseRaw;
}
I got the code working, but the application required the libssl-3.dll and libcrypto-3.dll files.
Then I downloaded YuOpenSSL.
As I understand it, the file YuOpenSSL\D2009\YuOpenSSL.dcu must be linked on build application (CB2009 is not there).
I tried to do as it is written in ReadMe8.txt.
In the Library Path project setup, I added the path to file YuOpenSSL.dcu.
I had to connect a copy of the OverbyteIcsDefs.inc file to the project and replace {.DEFINE YuOpenSSL} to {$DEFINE YuOpenSSL}.
But working code still requires the files libssl-3.dll and libcrypto-3.dll.
Could you tell me what I did wrong and how to do it right?