Add an uid in batch mode

Werner Koch wk at
Mon Aug 8 09:25:52 CEST 2011

On Sun,  7 Aug 2011 10:19, jeanjacquesbrucker at said:

> Why the second way does not work ? it should make things simpler to use gpg in other scripts, no ?

What you call is a menu and it is subject to change.  Thus you may not
use any kind of canned commands.  The way to add a UID is by using
--status-fd and command-fd.  GPGME is helpful here but you need to
employ a FSM to make it actually working. See the course code of GPA for
an example on how to implement it.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-devel mailing list