Reintroduce a check in edit_fnc.
This commit is contained in:
parent
03bcb7f4c1
commit
c440b6792e
@ -78,28 +78,31 @@ edit_fnc (void *opaque, gpgme_status_code_t status, const char *args, int fd)
|
|||||||
|
|
||||||
fprintf (stdout, "[-- Code: %i, %s --]\n", status, args);
|
fprintf (stdout, "[-- Code: %i, %s --]\n", status, args);
|
||||||
|
|
||||||
if (!strcmp (args, "keyedit.prompt"))
|
if (fd >= 0)
|
||||||
{
|
{
|
||||||
static int step = 0;
|
if (!strcmp (args, "keyedit.prompt"))
|
||||||
|
|
||||||
switch (step)
|
|
||||||
{
|
{
|
||||||
case 0:
|
static int step = 0;
|
||||||
result = "fpr";
|
|
||||||
break;
|
switch (step)
|
||||||
case 1:
|
{
|
||||||
result = "expire";
|
case 0:
|
||||||
break;
|
result = "fpr";
|
||||||
default:
|
break;
|
||||||
result = "quit";
|
case 1:
|
||||||
break;
|
result = "expire";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
result = "quit";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
step++;
|
||||||
}
|
}
|
||||||
step++;
|
else if (!strcmp (args, "keyedit.save.okay"))
|
||||||
|
result = "Y";
|
||||||
|
else if (!strcmp (args, "keygen.valid"))
|
||||||
|
result = "0";
|
||||||
}
|
}
|
||||||
else if (!strcmp (args, "keyedit.save.okay"))
|
|
||||||
result = "Y";
|
|
||||||
else if (!strcmp (args, "keygen.valid"))
|
|
||||||
result = "0";
|
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user