Better support for encrypted archives

From TotalcmdWiki
Jump to: navigation, search


When performing a search with search in archives enabled archives where even file listing is encrypted ask for a password. This stops the search which is not suitable in all cases. A new option should be added to the search dialog which controls this behavior.

There are also other places where asking for the listing password is undesired.

Implementation suggestion

A new function must be added to the packer plug-in interface which allows plug-in to report that the archive cannot be opened when a search is performed.

HANDLE __stdcall OpenArchiveEx (tOpenArchiveData *ArchiveData);
// New OpenMode constant:

As you can see the declaration would be identical to OpenArchive but there is a new flag which informs the plug-in that all interactions must be suppressed. The new function is required because plug-in authors may not evaluate the OpenMode variable using a bitwise or.

Back to Packer plugins Ideas and suggestions