Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2020-08

Lazarus 2.0.10 FPC 3.2.0 TFPHTTPClient no longer supports https

11 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Dennis
Dennis wrote 5 lines
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.

You now have the choice between using openssl or gnutls for your SSL support..

Michael.

Reply by email

Michael Van Canneyt
to LacaK
LacaK wrote 13 lines
> >> 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. > Can this information being added into https://wiki.freepascal.org/User_Changes_3.2.0, please?

Done.

Michael.

Reply by email

LacaK
to Michael Van Canneyt
Show quoted text 17 lines
> >> >>> 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. >> > Can this information being added into > https://wiki.freepascal.org/User_Changes_3.2.0, please? Done.

Perfect!

L.

Reply by email

Dennis
to Michael Van Canneyt: Simply add one of the units opensslsockets or gnutlssockets to the uses clause of the…
Michael Van Canneyt wrote 11 lines
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

Please help.

Dennis Poon

This email has been checked for viruses by AVG. https://www.avg.com

Reply by email

Michael Van Canneyt
to Dennis
Dennis wrote 16 lines
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 ?

Michael.

Reply by email

Dennis
to Michael Van Canneyt
Michael Van Canneyt wrote 23 lines
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?

Dennis

This email has been checked for viruses by AVG. https://www.avg.com

Reply by email

Michael Van Canneyt
to Dennis
Dennis wrote 28 lines
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.

Reply by email

Tomas Hajny
to Dennis: I have not installed gnutls. The machine is running windows 64. So, the error message…
Dennis wrote 24 lines
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?

I'm afraid that it probably means that the authors of the gnutls unit forgot to pay attention to differences between Unix and non-Unix (at least as far as the dynamic library extension is concerned). :-( Nevertheless, even if this is corrected, you'd obviously need to have the respective DLL installed in order to use it. If you have used TFPHTTPClient in the past, you probably have the OpenSSL libraries installed, thus you may want to add that one instead of gnutlssockets.

Tomas

Reply by email

Michael Van Canneyt
to Tomas Hajny
Tomas Hajny wrote 29 lines
On 2020-08-05 11:38, 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? I'm afraid that it probably means that the authors of the gnutls unit forgot to pay attention to differences between Unix and non-Unix (at least as far as the dynamic library extension is concerned). :-(

Yes and no.

The name is just a default. You can specify the library name:

procedure LoadGnuTLS(alib : String = '');

so adding

LoadGnuTLS('libgnutls.dll')

at the start of your program will do the trick.

But of course the defaults should be correct for all platforms.

I changed that.

Michael.

Reply by email