[PATCH] Allow signing of files which are not present on the system

Steven J. Murdoch gnupg+Steven.Murdoch at cl.cam.ac.uk
Wed Jul 27 20:29:53 CEST 2011

On Wed, Jul 27, 2011 at 06:48:55PM +0200, Jerome Baum wrote:
> Why modify print-md to no longer print the "normal" hash?

This was the most expedient way to implement the prototype, but that is
certainly one thing that needs to be changed (as it will break software which
depends on the format).

The other option I was considering was for it to output the hash state to a
file, and for --detach-sign (with some extra option set) to expect such a file
as input. Currently, --detach-sign still expects a file, but ignores it (hence
why I pipe in /dev/null in the example).

Werner's other suggestion sounds good. I don't have any particular preference
about the UI (other than it be easily scriptable), so aiming for consistency
with existing functionality is a good principle to follow.



More information about the Gnupg-devel mailing list