/[winpt]/trunk/Src/wptKeyEditCB.cpp
ViewVC logotype

Diff of /trunk/Src/wptKeyEditCB.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 327 by twoaday, Mon Jan 15 22:02:04 2007 UTC revision 328 by twoaday, Fri Sep 25 16:07:38 2009 UTC
# Line 146  cmd_sign_handler (GpgKeyEdit *ctx, gpgme Line 146  cmd_sign_handler (GpgKeyEdit *ctx, gpgme
146          return "Y";          return "Y";
147      if (!strcmp (key, "keyedit.sign_all.okay"))      if (!strcmp (key, "keyedit.sign_all.okay"))
148          return "Y";          return "Y";
149      if (!strcmp ( key, "passphrase.enter"))      if (!ctx->usePassphraseCallback() && !strcmp (key, "passphrase.enter"))    
150          return ctx->pass;          return ctx->pass;
151      if (!strcmp (key, "keyedit.prompt")) {      if (!strcmp (key, "keyedit.prompt")) {
152          ctx->reset ();          ctx->reset ();
153          return "save";          return "save";
# Line 538  cmd_revsig_handler (GpgKeyEdit *ctx, gpg Line 538  cmd_revsig_handler (GpgKeyEdit *ctx, gpg
538          ctx->cnt = 1;          ctx->cnt = 1;
539          return buf;          return buf;
540      }      }
541      if (ctx->cnt == 1 && !strcmp ( key, "keyedit.prompt" ) ) {      if (ctx->cnt == 1 && !strcmp (key, "keyedit.prompt")) {
542          ctx->cnt = 2;          ctx->cnt = 2;
543          return "revsig";          return "revsig";
544      }      }
545      if (ctx->cnt == 2 && !strcmp (key, "ask_revoke_sig.one" ) ) {      if (ctx->cnt == 2 && !strcmp (key, "ask_revoke_sig.one")) {
546          ctx->cnt = 3;          ctx->cnt = 3;
547          return "Y";          return "Y";
548      }      }
549      if (ctx->cnt == 3 && !strcmp (key, "ask_revoke_sig.okay" ) ) {      if (ctx->cnt == 3 && !strcmp (key, "ask_revoke_sig.okay")) {
550          ctx->cnt = 4;          ctx->cnt = 4;
551          return "Y";          return "Y";
552      }      }
553      if (ctx->cnt == 4 && !strcmp ( key, "ask_revocation_reason.code" ) ) {      if (ctx->cnt == 4 && !strcmp (key, "ask_revocation_reason.code")) {
554          ctx->cnt = 5;          ctx->cnt = 5;
555          return "0";          return "0";
556      }      }
557      if (ctx->cnt == 5 && !strcmp ( key, "ask_revocation_reason.text" ) ) {      if (ctx->cnt == 5 && !strcmp (key, "ask_revocation_reason.text" )) {
558          ctx->cnt = 6;          ctx->cnt = 6;
559          return "";          return "";
560      }      }
# Line 566  cmd_revsig_handler (GpgKeyEdit *ctx, gpg Line 566  cmd_revsig_handler (GpgKeyEdit *ctx, gpg
566          ctx->cnt = 8;          ctx->cnt = 8;
567          return ctx->pass;          return ctx->pass;
568      }      }
569      if (ctx->cnt == 8 && !strcmp ( key, "keyedit.prompt" ) ) {      if (ctx->cnt == 8 && !strcmp (key, "keyedit.prompt")) {
570          ctx->reset ();          ctx->reset ();
571          return "save";          return "save";
572      }      }

Legend:
Removed from v.327  
changed lines
  Added in v.328

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26