/[winpt]/trunk/MyGPGME/editkey.c
ViewVC logotype

Diff of /trunk/MyGPGME/editkey.c

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

revision 15 by twoaday, Mon May 9 08:53:51 2005 UTC revision 21 by twoaday, Wed Jul 27 11:17:44 2005 UTC
# Line 107  editkey_status_handler( gpgme_ctx_t ctx, Line 107  editkey_status_handler( gpgme_ctx_t ctx,
107  static const char *  static const char *
108  cmd_keyserv_handler (gpgme_editkey_t ctx, gpg_status_code_t code, const char * key)  cmd_keyserv_handler (gpgme_editkey_t ctx, gpg_status_code_t code, const char * key)
109  {  {
     if( do_check( code, GET_LINE, key, "keyedit.prompt" ) )      
   
110      if (do_check (code, GET_LINE, key, "keyedit.add_keyserver"))      if (do_check (code, GET_LINE, key, "keyedit.add_keyserver"))
111          return ctx->u.keyserv.url;          return ctx->u.keyserv.url;
112      if (do_check (code, GET_BOOL, key, "keyedit.confirm_keyserver"))      if (do_check (code, GET_BOOL, key, "keyedit.confirm_keyserver"))
# Line 649  editkey_command_handler (void * opaque, Line 647  editkey_command_handler (void * opaque,
647    
648      case GPGME_EDITKEY_SETPREF:      case GPGME_EDITKEY_SETPREF:
649          return cmd_setpref_handler (ctx, code, key);          return cmd_setpref_handler (ctx, code, key);
650    
651        case GPGME_EDITKEY_KEYSERV:
652            return cmd_keyserv_handler (ctx, code, key);
653      }      }
654            
655      return NULL;      return NULL;
# Line 701  editkey_start (gpgme_ctx_t ctx, const ch Line 702  editkey_start (gpgme_ctx_t ctx, const ch
702          break;          break;
703    
704      case GPGME_EDITKEY_LSIGN:      case GPGME_EDITKEY_LSIGN:
705          _gpgme_gpg_add_arg( ctx->gpg, "lsign" );          _gpgme_gpg_add_arg (ctx->gpg, "lsign");
706          break;          break;
707    
708      case GPGME_EDITKEY_NRSIGN:      case GPGME_EDITKEY_NRSIGN:
# Line 717  editkey_start (gpgme_ctx_t ctx, const ch Line 718  editkey_start (gpgme_ctx_t ctx, const ch
718          break;          break;
719    
720      case GPGME_EDITKEY_ADDKEY:      case GPGME_EDITKEY_ADDKEY:
721          _gpgme_gpg_add_arg( ctx->gpg, "addkey" );          _gpgme_gpg_add_arg (ctx->gpg, "addkey");
722          break;          break;
723    
724      case GPGME_EDITKEY_DELUID:      case GPGME_EDITKEY_DELUID:
# Line 929  edit_key_colon_handler (gpgme_uidinfo_t Line 930  edit_key_colon_handler (gpgme_uidinfo_t
930                      i->flags.no_ks_modify = 1;                      i->flags.no_ks_modify = 1;
931                      len -= 13; /* ,no-ks-modify */                      len -= 13; /* ,no-ks-modify */
932                  }                  }
933                  i->prefs = calloc (1, len);                  i->prefs = calloc (1, len+1);
934                  if (!i->prefs)                  if (!i->prefs)
935                      return;                      return;
936                  memcpy (i->prefs, pend, len);                  memcpy (i->prefs, pend, len);

Legend:
Removed from v.15  
changed lines
  Added in v.21

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26