We use delphi 2007 for win 32 and the Indy components ver
10.1.5 (included in Delphi).
Whenever we try to establish a ssl connection by using the
tidhttp component with a tidsslopenhandlersocketopenssl
iohandler, we get an error, depending on the version of the installed
ssl dlls, the error is different. with the dlls in the binary
distribution of openssl.org (version 0.98 and 0.97) the error is
"could not load ssl library".
With the version in the developer snapshot from atozed software, the
error is "cannot connect with ssl", and with the version we had
already installed from delphi 7 the error is "read timeout".
Has anyone faced this problem and/or has a solution?
Is there a working demo somewhere on the Internet, that
we can download and see how it is working?
The demos provided from the developer snapshot, also present the same
errors.
We try also to install the developer snapshot but we failed.
a) in the idglobal.pas it was a definition TthreadId that was
undefined. We change it to THandle, and we succeeded to compile all
the bpls but we failed to install the 2 dcl.. bpls because it couldn't
find some entry points in the ...system.bpl.
Please because we want to transfer our programs from d7 with indy9 to
d2007 with indy 10, is there any one that can help us.
Thanks in advance.
cannot say for sure but it seems to have something to do with d2007,
because d2006 and d7 does work ok with the openssl.org compiled library.
but the ssl libraries from atozed (if talking about those dated to
somewhere 2002) cannot be used with indy 10 at all.
> Has anyone faced this problem and/or has a solution?
i tested with d2007 too and when trying myself on same computer it
always fails, but on the server logs the clients were able to connect
using ssl - even i wasn't. anyway, as mentioned above already, d2006 it
worked ok on same computer also.
maby re-install d2007 would do, by first not installing indy at all with
the installer and then later on only installing the latest snapshot?
this i haven't tested, but could help anyway.
> We try also to install the developer snapshot but we failed.
> a) in the idglobal.pas it was a definition TthreadId that was
> undefined. We change it to THandle, and we succeeded to compile all
> the bpls but we failed to install the 2 dcl.. bpls because it couldn't
> find some entry points in the ...system.bpl.
Just make TthreadId as Longword then it all compiles ok.
/A
> We use delphi 2007 for win 32 and the Indy components ver
> 10.1.5 (included in Delphi).
I recall having similar problems and in my case had to get the
then-current version of Indy (later than what was shipped with Delphi).
I know you said you failed to get the development snapshot but I think
you need to resolve that problem first.
I'm successfully using the OpenSSL dlls with a version of 0.9.8.5
--
-Mike (TeamB)
use the build in delphi 2007 indy and the latest
installation of openssl from
http://www.slproweb.com/products/Win32OpenSSL.html.
it doesn't really matter if you are going to use the
"light" or "recommended for developers" version.
create a form with a TIdHTTP (eg, name it http) and a
TIdSSLIOHandlerSocketOpenSSL component. assign the iohandler
of TIdHTTP to be TIdSSLIOHandlerSocketOpenSSL and set any
other parameters you might think you need. in your main program's
uses clause, put the "IdSSLOpenSSLHeaders" library to use.
in the event you want to trigger the ssl connection put the
following code:
IdSSLOpenSSLHeaders.Load;
http.ReadTimeout:=0;
http.ConnectTimeout:=0;
showmessage(http.Get('https://any.securesite.com'));
of course you can manage whether or not to load the ssl headers
from the action that the tidhttp is going to take (http or https)
and also the unload (IdSSLOpenSSLHeaders.unload) of the
ssl headers.
hope this will help some people...
Antonis-Vassilis
"Mike Williams (TeamB)" <mlwi!!iams@gmail!.com> wrote in message
news:xn0fc3gvn...@newsgroups.borland.com...