lnet
lnet copied to clipboard
Example visual/tcpudp/testnet seems no longer working with lazarus 2.2.4 64 bits windows
Hello, when i try to load the Examples/visual/tcpudp/testnet project in Lazarus 2.2 i have a big crash because the property for TLSSLSessionComponent/Method in lfm file doesn't exist.
using a file editor removed the method setting from the lfm (around line 213) this will make it load. Then in line 234 of the .pas file change fnet,socketnet tro LTCP.socketnet to make it compile
But after all that the app will not work, some crash in the ssl session creation.
I suspect this has to do with SSL/openssl compatibility, but I don't have a windows to test with anymore.
Is there something i can do to help in order to solve it? I also have an old version and that one works correct.
unit lNetSSL;
comment out from line 501 (if Length(FKeyFile) > 0 ...) to line 515 (end of 514 is raise Exception.Create('Error creating SSL CTX: ..)
Then, here on my Windows PC, the example compiles and runs.
I know nothing about what these lines of code shall do, so be careful .. ;-)
AFAIK there is a problem with SSL library compatibility on windows. If you do not use SSL (https/ftps etc.) then doing this is fine but if you do it'll break.
I don't run windows at all anymore, so I'm unable to help I'm afraid.
Thanks for this hint about SSL.
In my case I only access my LAN. So it works for me. Maybe someone else is able to fix this ..