Automating the generation of master keys

Werner Koch wk at gnupg.org
Thu Jun 2 07:50:08 CEST 2016


On Wed,  1 Jun 2016 21:48, dashohoxha at gmail.com said:

> I don't remember exactly why they didn't work, but I think that in gnupg-2.1

Because gpg inserts other prompts depending on version and options.

> make the logic of the scripts more complex, because my script would have
> to take care of all the possible outputs of --status-fd, in all the
> possible cases.

You need to write a FSM.  See gpa/src/gpgmeedit.c for examples.  Agreed,
this is a bit complex.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
    /* EFH in Erkrath: https://alt-hochdahl.de/haus */




More information about the Gnupg-users mailing list