Wich version of FPC?On fpc 3.0.4, stTLSv1_1 is declared in "....... / fpc / 3.0.4 / source / packages / openssl / src / fpopenssl.pp"
Hi, If I comment it out it compiles and runs but when it runs I get SSL errors.I tried the project on Windows and there it works 100%. I then tried it on The Raspbarian Desktop in a virtual machine. There I get the same error that the variable does not exist.I then tried it on Debian Desktop. There it compiles but I get SSL error also.On Raspberry Pi I use it on Raspbian Buster (Debian 10) and FPC is 3.3.1 and Lazarus is 2.0.1
I think that last commit (with OpenSSL in uses clause) is invalid for trunk FPC. Unit fpopenssl has many changes in trunk version of freepascal
Quote from: Renat.Su on August 28, 2019, 09:53:01 amI think that last commit (with OpenSSL in uses clause) is invalid for trunk FPC. Unit fpopenssl has many changes in trunk version of freepascalWell not too many: the only thing that is affected is the protocol defaults. Must be tls 1.1 or higher.I suppose telegram adheres to this too.