When using Delphi 2007 along with Indy 9, what are the latest OpenSSL libraries that can be loaded and where are they available?
-
I guess [`this thread`](https://forums.embarcadero.com/thread.jspa?threadID=59924) should help. – TLama Aug 21 '12 at 14:52
-
Just a sidenote, wouldn't be better for you to [`upgrade Indy to the latest version`](http://stackoverflow.com/a/3610176/960757) ? – TLama Aug 23 '12 at 16:22
-
Yes, it would be 'better' to upgrade. It would also be 'better' for everyone to also upgrade to Delphi XE2 Update 4 on everything... – Darian Miller Aug 23 '12 at 16:38
-
Yeah, but unlike the upgrade from Delphi 2007 to XE2, the upgrade of Indy is free :-) – TLama Aug 23 '12 at 16:41
-
5Definitely not free. Free to download, but not free to rewrite and redeploy what uses it – Darian Miller Aug 23 '12 at 18:26
2 Answers
You need the following two DLLs:
- libeay32.dll
- ssleay32.dll
You can download the source from the open-source organization OpenSSL.org, but then you have to compile the DLLs yourself. Indy maintains a site of compiled binaries for each version of Indy and OpenSSL (see indy.fulgan.com/SSL and indy.fulgan.com/SSL/Archive -- thanks to TLama for the links).
Older versions of Indy are not compatible with the OpenSSL libraries (see Indy "Could not load SSL Library" with Delphi 2007/Apache). TLama added a comment to your question to look at an Embarcadero discussion about this. In that discussion, Remy said "try the old 0.9.6 DLLs at http://indy.fulgan.com/SSL/Archive/". That's probably the version that you will need to use.
-
Or visit one of the official OpenSSL Indy library sites, either [`indy.fulgan.com/SSL`](http://indy.fulgan.com/SSL/) for current versions or [`indy.fulgan.com/SSL/Archive`](http://indy.fulgan.com/SSL/Archive/) for older versions of compiled binaries. However the question sounds more like *what is the most recent version that can be used with Indy 9 shipped with Delphi 2007*. – TLama Aug 21 '12 at 16:02
-
Thanks for the links @TLama. I'll start using that from now on! As for what version is compatible..., I have never had backwards compatibility issues. I have always used the latest DLLs without problems. The only time I did have issues was when I accidentally used different versions of the two DLLs. – James L. Aug 21 '12 at 16:12
-
I've also had no problems using the most recent versions with Delphi 2007 (about 3 years ago), but can't verify it now since I don't have Delphi 2007 at this time. About the links, feel free to add it to your answer... – TLama Aug 21 '12 at 16:16
-
Are you using these with Indy 9 and not Indy 10? From what I recall, Indy 9 required a special build. – Darian Miller Aug 21 '12 at 16:17
-
I haven't had issues with the Indy version, but I started using Indy in Delphi 2009... You may be right about the special build: http://stackoverflow.com/questions/952676/indy-could-not-load-ssl-library-with-delphi-2007-apache – James L. Aug 21 '12 at 16:31
This worked for me! I am working in Delphi 5 with Indy 9 and struggled to find the right DLLs, I downloaded http://indy.fulgan.com/SSL/Archive/indy_OpenSSL096m.zip and put both DLLs in my program dir and c:\Windows\System32. Thank you James L and Remy "Gambit" Lebeau, you awesome X-man.

- 11
- 1