Better support for encrypted archives: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
== Introduction ==
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.
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.



Latest revision as of 15:48, 10 January 2007

Introduction

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:
PK_OM_NON_INTERACTIVE = 2

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