Recent

Author Topic: Debian 10 Indy and SSL, Not load library  (Read 7414 times)

dbannon

  • Hero Member
  • *****
  • Posts: 2802
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Debian 10 Indy and SSL, Not load library
« Reply #15 on: March 24, 2020, 01:03:45 pm »
Well, a lot depends on the server you are hitting. But you can 'sometimes' download just using httpdclient.  Quite simple. But as you will find if you poke around the forum, maybe not reliable.

Fixed if you go to FPC 320.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dbannon

  • Hero Member
  • *****
  • Posts: 2802
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Debian 10 Indy and SSL, Not load library
« Reply #16 on: March 26, 2020, 05:02:14 am »
Fixed if you go to FPC 320.

Yes, its fixed in 3.2.0.  And can be fixed with FPC304 as easily as installing libssl-dev or making a symlink from libssl.so.1.1 to libssl.so   

Try the attached ....

EDIT: Sorry, first version of this message incorrectly said there is still a problem with FPC320, there is not, it knows to look for libssl.so.1.1 so, no symlink is needed.

Davo
« Last Edit: March 26, 2020, 11:16:53 am by dbannon »
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1314
    • Lebeau Software
Re: Debian 10 Indy and SSL, Not load library
« Reply #17 on: May 05, 2021, 06:07:29 pm »
But I agree with you, it would be nice to have OpenSSL 1.1.1 in Indy but it's an open source project so it needs people who contribute changes like that ;D
But I'm sure that there will be OpenSSL 1.1.1 support soon ;)

Work in progress: https://github.com/IndySockets/Indy/pull/299
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

krzynio

  • Jr. Member
  • **
  • Posts: 99
    • Krzynio's home page
Re: Debian 10 Indy and SSL, Not load library
« Reply #18 on: January 11, 2022, 10:38:08 am »
Hi!

Maybe mistake is just here:
Code: Pascal  [Select][+][-]
  1. IdOpenSSLSetLibPath(ParamStr(0));
In my case this code is working fine under Debian 11:
Code: Pascal  [Select][+][-]
  1. IdOpenSSLSetLibPath(ExtractFilePath(ParamStr(0)));
Ubuntu 23.10 x64, / Windows 11 PL - latest updates
Lazarus 2.2.6, FPC 3.2.2

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1314
    • Lebeau Software
Re: Debian 10 Indy and SSL, Not load library
« Reply #19 on: January 11, 2022, 09:45:16 pm »
Maybe mistake is just here:
Code: Pascal  [Select][+][-]
  1. IdOpenSSLSetLibPath(ParamStr(0));
In my case this code is working fine under Debian 11:
Code: Pascal  [Select][+][-]
  1. IdOpenSSLSetLibPath(ExtractFilePath(ParamStr(0)));

Good point. ParamStr(0) returns the full path and filename of the calling process, whereas IdOpenSSLSetLibPath() expects just a folder path.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

 

TinyPortal © 2005-2018