These are chat archives for IndySockets/Indy

21st
Dec 2017
hrdware
@hrdware
Dec 21 2017 22:08
I was able to get indy10_5438 downloaded and installed, however I do not see a way to generate a sha256 hash with this version in Delphi 2007. Am I missing something in this version or did I misunderstand something I read about sha256 in this version/delphi version? Thx for any help.
Remy Lebeau
@rlebeau
Dec 21 2017 22:15
@hrdware there is a TIdHashSHA256 class in the IdHashSHA unit. But Indy does not natively implement SHA hashes other than SHA1 (that is a TODO item: IndySockets/Indy#169), other SHA hashes require external hashing code be hooked up to Indy at runtime. By default, Indy provides an implementation of SHA hashes using OpenSSL. Just add the IdSSLOpenSSLHeaders unit to your uses clause, call IdSSLOpenSSLHeaders.Load() at program startup, and deploy the 2 OpenSSL DLLs (ssleay32.dll and libeay32.dll) with your app. Then TIdHashSHA256 (and other TIdHashSHA... classes) should work. If you want to use a different hashing implementation, you can certainly do that, just hook up the SHA256 function pointers in the IdFIPS unit to whatever implementation you want.
hrdware
@hrdware
Dec 21 2017 22:17
@rlebeau I saw that somewhere, and I was looking for that unit but I don't seem to have it in the lib\protocols directory. Is it in some other location?
Remy Lebeau
@rlebeau
Dec 21 2017 22:20
@hrdware no, that is the correct folder. It does exist in Fulgan's ZIP, I just checked
hrdware
@hrdware
Dec 21 2017 22:22
So once I get to Fulgan, I went into the ZIP folder and then downloaded the Indy10_5438.zip file. Is there another file I need to get?
nevermind...I found it in one place I extracted my files to, but on the place I copied them to. I will remove the install and try it again
Remy Lebeau
@rlebeau
Dec 21 2017 22:30
@hrdware no, there is no other file, that is the correct one
hrdware
@hrdware
Dec 21 2017 22:36
@rlebeau OK, so now I'm confused....I am not super familiar with installing components so I am fumbling around a bit here. I opened all the DPK files and compiled them and installed the cdlIndyCore and dclIndyProtocols after compinling. I thought this would place all the files I needed into the correct Delphi Directories. Do I need to add some other directory to my application search path?
Remy Lebeau
@rlebeau
Dec 21 2017 22:47
@hrdware that depends on your IDE and its configured output paths when compiling the packages. Been a long time since I used 2007
hrdware
@hrdware
Dec 21 2017 22:54
@rlebeau OK, thanks, that gives me a direction to look in. Your help is much appreciated.