[PATCH] Only removing the encryption envelope during decryption

Florian Weimer Florian.Weimer at rus.uni-stuttgart.de
Tue Apr 25 19:24:39 CEST 2000

The patch included below adds new functionally to the "--no-literal"
option (I chose it because the new functionally complements the
existing one): During OpenPGP message processing, when a decryption
packet is encountered, the OpenPGP data contained in it is not
processed by GnuPG, but simply dumped to the output file requested on
the command line.  (Following the tradition of the "--no-literal"
option, no further documentation is provided. ;)

Example usage: decrypt with "--no-literal --decrypt", and encrypt the
resulting OpenPGP data with "--no-literal --encrypt" for another
public key.  As a result, the message is encrypted to a new recipient,
but a signature which is perhaps present has been presevered (which
was impossible without this patch, I think).  I've already written a
tool which automates this process; it will be released shortly.  If
you want to test it, drop me a line.  But be warned: It requires
POSIX.5 support. ;)

I hope the names and placement of the new functions are acceptable.

Florian Weimer 	                  Florian.Weimer at RUS.Uni-Stuttgart.DE
University of Stuttgart           http://cert.uni-stuttgart.de/
RUS-CERT                          +49-711-685-5973/fax +49-711-685-5898

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnupg-reencrypt.diff
Type: text/x-patch
Size: 4178 bytes
Desc: not available
Url : /pipermail/attachments/20000425/f57f0b08/gnupg-reencrypt.bin

More information about the Gnupg-devel mailing list