Recent

Author Topic: Could not load SSL library  (Read 10914 times)

usbdoo

  • New Member
  • *
  • Posts: 11
Could not load SSL library
« on: October 05, 2015, 12:08:29 pm »
/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
/usr/lib/x86_64-linux-gnu/libssl.so
Lazarus IDE V1.4.2
indy-10.2.0.3

Quote
Candidate: 1.0.1k-3+deb8u1
  Version table:
 *** 1.0.1k-3+deb8u1 0
        500 cdrom://[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 DVD Binary-1 20150906-11:13]/ jessie/main amd64 Packages
        500 http://ftp.si.debian.org/debian/ jessie/main amd64 Packages
        500 http://security.debian.org/ jessie/updates/main amd64 Packages
        100 /var/lib/dpkg/status
libssl-dev:
  Installed: 1.0.1k-3+deb8u1
  Candidate: 1.0.1k-3+deb8u1
  Version table:
 *** 1.0.1k-3+deb8u1 0
        500 cdrom://[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 DVD Binary-1 20150906-11:13]/ jessie/main amd64 Packages
        500 http://ftp.si.debian.org/debian/ jessie/main amd64 Packages
        500 http://security.debian.org/ jessie/updates/main amd64 Packages
        100 /var/lib/dpkg/status
usb@debian:~$
how to find a solution for this problem?



ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: Could not load SSL library
« Reply #1 on: October 05, 2015, 05:38:43 pm »
Have you looked at this recent topic concerning Indy, OpenSSL and another Linux distro : http://forum.lazarus.freepascal.org/index.php/topic,29548 ?

Relative topic (indicated at the end of the above one):
http://forums2.atozed.com/viewtopic.php?f=7&t=26922

usbdoo

  • New Member
  • *
  • Posts: 11
Re: Could not load SSL library
« Reply #2 on: October 06, 2015, 11:09:03 am »
I found a problem.
The problem is this.
http://www.pilotlogic.com/sitejoom/index.php/forum/pl-indy/3329-could-not-load-ssl-library
How to find a solution?

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: Could not load SSL library
« Reply #3 on: October 06, 2015, 02:14:46 pm »
I found a problem.
The problem is this.
http://www.pilotlogic.com/sitejoom/index.php/forum/pl-indy/3329-could-not-load-ssl-library
How to find a solution?

IMHO the problem is SSLv2. Which is exactly the same problem as for mbdev.

Solution : see https://indy.fulgan.com/indy10.changelog.txt   [ rev r5303 ]

Quote
Updating OpenSSLVersion() to call SSLeay_version() even if LoadOpenSSLLibrary() failed, as long as SSLeay_version() was able to be loaded, at least.

Updating TIdSSLContext.SetSSLMethod() to raise an EIdOSSLGetMethodError exception if the selected SSL/TLS method is not available at runtime.  The SSLv2, SSLv3, SSLv23, and TLSv1x methods are now all marked as non-critical when loading the OpenSSL library, since it is not known at that time which method(s) will actually be used at runtime, and not all platforms support all protocol versions.  In fact, it is becoming common that SSLv2 is now disabled and may not even be exported on all platforms, so Indy cannot mark SSLv2 methods as critical anymore.  Making SSLv3 and SSLv23 as non-critical for good measure.

Adding new IsOpenSSL_SSLv2_Available(), IsOpenSSL_SSLv3_Available(), IsOpenSSL_TLSv1_1_Available(), IsOpenSSL_TLSv1_2_Available(), and IsOpenSSL_DTLSv1_Available() functions.

So, update to a newer version of Indy, or modify your own version (seems to be a codetyphon one) according to the r5303 patch.


*** Edit *** According to Remy Lebeau, you can also modify IdSSLOpenSSLHeaders.pas concerning the loading of the SSLv2 functions:
Code: Pascal  [Select][+][-]
  1.     @SSLv2_method := LoadFunction(fn_SSLv2_method,False);                   //Used by Indy
  2.     @SSLv2_server_method := LoadFunction(fn_SSLv2_server_method,False);             //Used by Indy
  3.     @SSLv2_client_method := LoadFunction(fn_SSLv2_client_method,False);            //Used by Indy
  4.  
« Last Edit: October 06, 2015, 02:18:40 pm by ChrisF »

usbdoo

  • New Member
  • *
  • Posts: 11
Re: Could not load SSL library
« Reply #4 on: October 06, 2015, 06:52:57 pm »
You made me a wonderful day.
Thank you.

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1129
    • Lebeau Software
Re: Could not load SSL library
« Reply #5 on: November 12, 2015, 04:22:07 am »
FYI, the OpenSSL changes described in the rev 5303 changelog were also discussed on Indy's ChangeLog blog:

OpenSSL changes
http://www.indyproject.org/Sockets/Blogs/ChangeLog/20150907.aspx
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

 

TinyPortal © 2005-2018