32 and 64-bit TC in same directory and OpenSSL dlls

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Sob
Power Member
Power Member
Posts: 941
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

It does. Tested with both your dlls and my self-compiled dlls.

Only "what about plugins?" question remains unanswered.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Sob wrote:Only "what about plugins?" question remains unanswered.
If the plugins need same named external dlls for 32 and 64 bit, they could also create a 64 bit folder inside the plugin directory.
Sob
Power Member
Power Member
Posts: 941
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

If the plugin loads all dlls itself, then yes. But if plugin loads only some dlls and they load others, then I don't think it will work very well.

You can see the behaviour with Ghisler's own sftplug. If you use his dlls an put them into plugin folder, then it will fail, because libssh2.dll loads zlibwapi.dll and does not look for it in the same directory. And if you view libssh2.dll as general third-party dll that you can't modify (not really true in this case), then it may be a problem. I don't know if there's any API to modify PATH for current process, that would be possible solution.
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

ghisler(Author) wrote:Could someone try whether OpenSSL works with the 64-bit files in subdir "64" under the Totalcmd directory, please? This should work now with beta 2.
Seems to work fine. Tested with the libraries from
https://plugins.ghisler.com/addons/openssl+ssh64.zip
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for testing!
Author of Total Commander
https://www.ghisler.com
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Christian.

Sorry to say so, but I cannot confirm that SFTP v1.1 64-bit works fine if I put the 64-bit DLLs
+ libeay32.dll
+ libssh2.dll
+ ssleay32.dll
+ zlibwapi.dll
in the folder %COMMANDER_PATH%\64.
It works correctly only provided they are stored in the folder %COMMANDER_PATH%.

For more details, please, cf. => here <=

Total Commander 8.0ß3 64-bit
SFTP v1.1 plus the DLLs provided by you
Server 2008 R2

Cheers,
Karl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, the sftp plugin has NOT been changed to look for the dlls in '64'. It expects them in the TC directory. The fix was only for the internal FTPS client.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Christian, maybe it is possible to add 64 folder to PATH envvar? So plugins will search DLLs in it. :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The plugin still seems to do that. Try putting them in the 64-bit system32 directory.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think users of portable TC won't do that. :)

Hm-m, it is interesting to try use batch or script that will add that folder to PATH envvar and then start TC - will plugins work this way? If so, it will solve a problem. I can't test it since I have no plugins that require OpenSSL.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

For portable TC, you will have to put them in separate subdirs for the moment.
Author of Total Commander
https://www.ghisler.com
User avatar
petergus
Member
Member
Posts: 164
Joined: 2003-02-06, 16:28 UTC
Location: Sweden, Enköping
Contact:

Post by *petergus »

ghisler(Author) wrote:Could someone try whether OpenSSL works with the 64-bit files in subdir "64" under the Totalcmd directory, please? This should work now with beta 2.
What is the solution for tcmatch if I don't want separate configuration files?
What about just adding a new name in wincmd.ini: tcmatch64
Peter, Personal licence #84319
wlnx
Junior Member
Junior Member
Posts: 2
Joined: 2012-09-08, 15:16 UTC

Post by *wlnx »

Hello. Maybe, %COMMANDER_PATH%\x86 and %COMMANDER_PATH%\x64 folders for generally available resources (such as %COMMANDER_PATH%\*.exe and %COMMANDER_PATH%\*.dll) will help us? =)
Just let totalcmd search resources in x86 and totalcmd64 in x64... Plugins - yeah, they can create there own x86 and x64 folders inside their location. =))
Pleeease... I use portable installation and have already had problems with OpenSSL.
Post Reply