[fpc-pascal] Lazarus 2.0.10 FPC 3.2.0 TFPHTTPClient no longer supports https

Michael Van Canneyt michael at freepascal.org
Wed Aug 5 11:53:18 CEST 2020



On Wed, 5 Aug 2020, Dennis wrote:

>
>
> Michael Van Canneyt wrote:
>>
>>
>> On Wed, 5 Aug 2020, Dennis wrote:
>>
>>>
>>> Michael Van Canneyt wrote:
>>>> On Wed, 5 Aug 2020, Dennis wrote:
>>>>
>>>>> After upgrading to Lazarus 2.0.10 FPC 3.2.0 , my existing code 
>>>>> using TFPHTTPClient.Get('https://api.telegram.org/bot')
>>>>> returns the error "No SSL Socket support compiled in"
>>>>>
>>>>> How can I fix it?
>>>>
>>>> Simply add one of the units opensslsockets or gnutlssockets to the uses
>>>> clause of the program.
>>>>
>>> I added gnutlssockets  but when calling Get, i got this error:
>>>
>>> Could not load library: libgnutls.so
>>
>> Do you have gnutls installed, and does the symbolic link exist ?
>>
> I have not installed gnutls. The machine is running windows 64.
> So, the error message simply means  the *.dll files of gnutls are missing?

Yes.

if you previously used openssl, then use unit opensslsockets instead, it should work as before.

(although I think GnuTLS is easier and better; it has less legacy than openssl)

Michael.


More information about the fpc-pascal mailing list