Recent

Author Topic: ubuntu / lazarus / indy & ssl  (Read 7506 times)

izd

  • New Member
  • *
  • Posts: 12
ubuntu / lazarus / indy & ssl
« on: September 03, 2010, 11:50:59 am »
Hi everybody,

I migrate win32 apps to ubuntu under lazarus.

I have a problem with indy/ssl.

The app works fine to send email until it needs to use ssl (gmail).

I suppose problems with ssl library.

My question is : HOW TO SET UP CORRECTLY THE ENVIRONMENT FOR SSL ?

By this, i means :
Where to put library or where they should be there
Which name they supposed to have
Do i need to modify indy source code naming library name and/or path

Note that the porting from w32/delphi to ubuntu/lazarus looks very good but...ssl.

Thank in advance.

jarto

  • Full Member
  • ***
  • Posts: 106
Re: ubuntu / lazarus / indy & ssl
« Reply #1 on: September 17, 2010, 04:18:34 pm »
From IdSSLOpenSSLHeaders.pas:
Code: [Select]
  {$IFDEF UNIX}
  {This is a workaround for some Linux distributions and a few other things
  where the symbolic link libbsl.so and libcrypto.so do not exist}
  SSL_DLL_name         = 'libssl'; {Do not localize}
  SSLCLIB_DLL_name     = 'libcrypto'; {Do not localize}
  SSLDLLVers : array [0..4] of string = ('','0.9.9','.0.9.8','.0.9.7','0.9.6');
  {$ENDIF}

Indy first checks, if /usr/lib/libssl.so and /usr/lib/libcrypto.so are available. If so, they are used. Otherwise it tries to find the library using the version numbers above.

If the library name is different on your computer, you can add these symbolic links:

cd /usr/lib
sudo ln -s libssl.so.0.9.8-or-whatever-your-version-is libssl.so
sudo ln -s libcrypto.so.0.9.8-or-whatever-your-version-is libcrypto.so

If you can't find the libraries, make sure you've installed openssl on your computer.

 

TinyPortal © 2005-2018