/[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 219 by twoaday, Fri Apr 28 10:28:24 2006 UTC revision 220 by twoaday, Tue May 30 15:31:49 2006 UTC
# Line 341  cmd_passwd_handler (GpgKeyEdit *ctx, gpg Line 341  cmd_passwd_handler (GpgKeyEdit *ctx, gpg
341      }      }
342      if (ctx->cnt == 0 && !strcmp (key, "passphrase.enter")) {      if (ctx->cnt == 0 && !strcmp (key, "passphrase.enter")) {
343          ctx->cnt = 1;          ctx->cnt = 1;
344            /* it is possible that there is no old passphrase. */
345            if (!ctx->pass && ctx->flags)
346                return "";
347          return ctx->pass;          return ctx->pass;
348      }      }
349      if (!strcmp (key, "passphrase.enter" ))      if (!strcmp (key, "passphrase.enter" ))
# Line 359  cmd_passwd_handler (GpgKeyEdit *ctx, gpg Line 362  cmd_passwd_handler (GpgKeyEdit *ctx, gpg
362  static const char*  static const char*
363  cmd_setpref_handler (GpgKeyEdit *ctx, gpgme_status_code_t code, const char * key)  cmd_setpref_handler (GpgKeyEdit *ctx, gpgme_status_code_t code, const char * key)
364  {  {
365      static char buf[128];      static char buf[128] = {0};
366    
367      /* XXX: check the code. */      /* XXX: check the code. */
368  #if 0  #if 0
# Line 386  cmd_setpref_handler (GpgKeyEdit *ctx, gp Line 389  cmd_setpref_handler (GpgKeyEdit *ctx, gp
389          return "save";          return "save";
390      }      }
391  #endif  #endif
392      return NULL;      return buf;
393  }  }
394    
395    
# Line 721  editkey_command_handler (void *opaque, g Line 724  editkey_command_handler (void *opaque, g
724          break;          break;
725    
726      case GPGME_STATUS_BAD_PASSPHRASE:      case GPGME_STATUS_BAD_PASSPHRASE:
727            log_debug ("editkey_command_handler: bad passphrase\n");
728          ke->setResult (EDITKEY_ERR_BAD_PASSPHRASE);          ke->setResult (EDITKEY_ERR_BAD_PASSPHRASE);
729          break;          break;
730    

Legend:
Removed from v.219  
changed lines
  Added in v.220

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26