Thank you Sergio for quick response!
I am using Delphi 11.
When I wanted to make an example project based on your TCP Server/Client example, it turns out that it suddenly worked. Then I analyzed what I did differently in my app and noticed one difference:
IdServerIOHandlerSSLOpenSSL1.Init; // Assertion failed error shows up if this code is used
IdTCPServer1.Active := True;
I guess setting this global variable does the magic of initalization already.
OPENSSL_API_VERSION := opSSL_3_0;
Attached is the updated demo TCP project to force using OpenSSL 3.0 and TLS 1.3 with the appropriate binaries needed.
There is a slight access violation when I want to close the client. Not sure if you can replicate it.
Best,
+adnan