Recent

Author Topic: SSL with IdPOP3 of Indy  (Read 9632 times)

everton

  • Jr. Member
  • **
  • Posts: 89
SSL with IdPOP3 of Indy
« on: October 20, 2011, 05:53:11 pm »
I'm geting the following error:

"Can't load library."

By the code:

    IdSSLIOHandler.SSLOptions.Method := sslvSSLv2;
    IdSSLIOHandler.SSLOptions.Mode := sslmClient;
    IdSSLIOHandler.SSLOptions.VerifyMode := [];
    IdSSLIOHandler.SSLOptions.VerifyDepth := 0;

    IdPOP3.Host := 'pop.gmail.com';
    IdPOP3.Username := usuario;
    IdPOP3.Password := senha;
    IdPOP3.Port := 995;
    IdPOP3.IOHandler := IdSSLIOHandler;
    IdPOP3.Connect;

everton

  • Jr. Member
  • **
  • Posts: 89
Re: SSL with IdPOP3 of Indy
« Reply #1 on: October 20, 2011, 05:54:55 pm »
I'm on linux and I've put inside the app folder the librarys: libcrypto.so and libssl.so and still can't load.

everton

  • Jr. Member
  • **
  • Posts: 89
Re: SSL with IdPOP3 of Indy
« Reply #2 on: October 20, 2011, 05:56:09 pm »
Anyone knows what to do to make the Indy POP3 work with SSL in linux?

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: SSL with IdPOP3 of Indy
« Reply #3 on: October 20, 2011, 05:57:35 pm »
I'm on linux and I've put inside the app folder the librarys: libcrypto.so and libssl.so and still can't load.
Putting your .dlls/.sos in your app folder works on Windows, not on Linux.

You'd need to put them in the library search path, or modify the search path, or load them with (IIRC) LoadLibrary..
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

everton

  • Jr. Member
  • **
  • Posts: 89
Re: SSL with IdPOP3 of Indy
« Reply #4 on: October 20, 2011, 06:11:19 pm »
The files are too in /lib/x86_64-linux-gnu

Is suppose to work like that?

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: SSL with IdPOP3 of Indy
« Reply #5 on: October 20, 2011, 06:39:07 pm »
Don't know, no experience with indy.... (or FPC on Linux, that much)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

otorres

  • Jr. Member
  • **
  • Posts: 94
Re: SSL with IdPOP3 of Indy
« Reply #6 on: October 20, 2011, 06:41:31 pm »
Install OpenSSL Lite for Linux.

everton

  • Jr. Member
  • **
  • Posts: 89
Re: SSL with IdPOP3 of Indy
« Reply #7 on: October 20, 2011, 06:46:14 pm »
The SSL are already instaled. The files are there. But the Indy can't load.

otorres

  • Jr. Member
  • **
  • Posts: 94
Re: SSL with IdPOP3 of Indy
« Reply #8 on: October 20, 2011, 06:52:30 pm »
Try using LNet, if this works fine, the problem is the call used for Indy to the library.

 

TinyPortal © 2005-2018