/[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 67 by werner, Thu Oct 27 15:25:13 2005 UTC revision 68 by twoaday, Sat Nov 5 12:00:55 2005 UTC
# Line 318  cmd_passwd_handler (GpgKeyEdit *ctx, gpg Line 318  cmd_passwd_handler (GpgKeyEdit *ctx, gpg
318  static const char*  static const char*
319  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)
320  {  {
     static char buf[128];  
   
321      /* XXX: check the code. */      /* XXX: check the code. */
322  #if 0  #if 0
323        static char buf[128];
324      if (!ctx->cmd_sent && !strcmp (key, "keyedit.prompt")) {      if (!ctx->cmd_sent && !strcmp (key, "keyedit.prompt")) {
325          ctx->cmd_sent = 1;          ctx->cmd_sent = 1;
326          return "";          return "";
# Line 653  editkey_command_handler (void *opaque, g Line 652  editkey_command_handler (void *opaque, g
652      case GPGME_STATUS_BAD_PASSPHRASE:      case GPGME_STATUS_BAD_PASSPHRASE:
653          ke->setResult (GPG_EDITRES_BAD_PASSPHRASE);          ke->setResult (GPG_EDITRES_BAD_PASSPHRASE);
654          break;          break;
655            
656        default:
657            break;
658      }      }
659    
660      if (ke->getResult () & GPG_EDITRES_BAD_PASSPHRASE) {      if (ke->getResult () & GPG_EDITRES_BAD_PASSPHRASE) {

Legend:
Removed from v.67  
changed lines
  Added in v.68

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26